futian.liu
2023-11-11 0c1dd25eabc4472c007951d528ee7385cc114e32
consum-base/src/main/java/com/consum/base/controller/BaseCategoryController.java
@@ -51,7 +51,7 @@
     */
    @GetMapping("/select/tree")
    public ResponseValue tree(String categoryName) {
        List<ProjectTreeResult> tree = this.baseCategoryService.tree(categoryName);
        List<ProjectTreeResult> tree = this.baseCategoryService.tree();
        return ResponseValue.success(tree);
    }
@@ -75,7 +75,9 @@
        }
        int result = this.baseCategoryService.add(param, this.getCurrentUser());
        if (result > 0) return ResponseValue.success(1);
        if (result > 0) {
            return ResponseValue.success(1);
        }
        return ResponseValue.error("新增失败!");
    }
@@ -123,6 +125,7 @@
    /**
     * 修改状态
     *
     * @author 卢庆阳
     * @date 2023/10/23
     */
@@ -159,6 +162,7 @@
    /**
     * 根据物品id查询节点详情
     *
     * @author 卢庆阳
     * @Date 2023/10/23
     */
@@ -168,7 +172,9 @@
            return ResponseValue.error("分类id为空");
        }
        BaseCategory baseCategory = this.baseCategoryService.getById(id);
        if (baseCategory == null) return ResponseValue.error("查询失败!");
        if (baseCategory == null) {
            return ResponseValue.error("查询失败!");
        }
        return ResponseValue.success("查询成功!", baseCategory);
    }