cy
2023-10-30 a84c2a6d8298e67e43080ba71facd83b79f95809
consum-base/src/main/java/com/consum/base/controller/BaseCategoryController.java
@@ -86,11 +86,7 @@
        if (baseCategory.getOrderNumber() == null) {
            return ResponseValue.error("顺序号为空");
        }
        //判断同一父类id下分类名称是否重复
        BaseCategory category = this.baseCategoryService.getByCategoryNameAndFatherCategoryId(baseCategory.getCategoryName(), baseCategory.getFatherCategoryId());
        if (category != null) {
            return ResponseValue.error("分类名称已存在");
        }
        S_user_core currentUser = this.getCurrentUser();
        if (currentUser == null) {
            return ResponseValue.error("登录用户信息不存在");
@@ -101,9 +97,8 @@
    /**
     * 修改状态
     *
     * @author 卢庆阳
     * @date 2023/9/27
     * @date 2023/10/23
     */
    //分类下有正常状态的物品时,不允许禁用
    @PostMapping("/updStatus")
@@ -122,7 +117,7 @@
    }
    /**
     * @Description 根据节点id删除节点(逻辑删除)
     * @Description 根据id删除物品分类
     * @Author 卢庆阳
     * @Date 2023/10/23
     */
@@ -137,10 +132,9 @@
    }
    /**
     * 根据节点id查询节点详情
     *
     * 根据物品id查询节点详情
     * @author 卢庆阳
     * @date 2023/9/26
     * @Date 2023/10/23
     */
    @GetMapping("/detail")
    public ResponseValue getById(Long id) {