From 63ba72f5d65a3a4dcd56d9228582042448af61d7 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期一, 26 十月 2026 19:09:47 +0800
Subject: [PATCH] feat(mdm): 统一物料分类管理并迁移至MDM模块

---
 yudao-module-mdm/src/main/java/cn/iocoder/yudao/module/mdm/api/category/MdmItemCategoryApiImpl.java |   27 +++++++++++++++++++++++++++
 1 files changed, 27 insertions(+), 0 deletions(-)

diff --git a/yudao-module-mdm/src/main/java/cn/iocoder/yudao/module/mdm/api/category/MdmItemCategoryApiImpl.java b/yudao-module-mdm/src/main/java/cn/iocoder/yudao/module/mdm/api/category/MdmItemCategoryApiImpl.java
index c5195ef..44022cc 100644
--- a/yudao-module-mdm/src/main/java/cn/iocoder/yudao/module/mdm/api/category/MdmItemCategoryApiImpl.java
+++ b/yudao-module-mdm/src/main/java/cn/iocoder/yudao/module/mdm/api/category/MdmItemCategoryApiImpl.java
@@ -3,6 +3,8 @@
 import cn.iocoder.yudao.framework.common.pojo.CommonResult;
 import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
 import cn.iocoder.yudao.module.mdm.api.category.dto.MdmItemCategoryRespDTO;
+import cn.iocoder.yudao.module.mdm.api.category.dto.MdmItemCategorySaveReqDTO;
+import cn.iocoder.yudao.module.mdm.controller.admin.category.vo.MdmItemCategorySaveReqVO;
 import cn.iocoder.yudao.module.mdm.dal.dataobject.category.MdmItemCategoryDO;
 import cn.iocoder.yudao.module.mdm.service.category.MdmItemCategoryService;
 import jakarta.annotation.Resource;
@@ -58,4 +60,29 @@
         return success(BeanUtils.toBean(itemCategory, MdmItemCategoryRespDTO.class));
     }
 
+    @Override
+    public CommonResult<List<MdmItemCategoryRespDTO>> getItemCategoryAllList() {
+        List<MdmItemCategoryDO> list = itemCategoryService.getItemCategoryAllList();
+        return success(BeanUtils.toBean(list, MdmItemCategoryRespDTO.class));
+    }
+
+    @Override
+    public CommonResult<Long> createItemCategory(MdmItemCategorySaveReqDTO createReqDTO) {
+        MdmItemCategorySaveReqVO reqVO = BeanUtils.toBean(createReqDTO, MdmItemCategorySaveReqVO.class);
+        return success(itemCategoryService.createItemCategory(reqVO));
+    }
+
+    @Override
+    public CommonResult<Boolean> updateItemCategory(MdmItemCategorySaveReqDTO updateReqDTO) {
+        MdmItemCategorySaveReqVO reqVO = BeanUtils.toBean(updateReqDTO, MdmItemCategorySaveReqVO.class);
+        itemCategoryService.updateItemCategory(reqVO);
+        return success(true);
+    }
+
+    @Override
+    public CommonResult<Boolean> deleteItemCategory(Long id) {
+        itemCategoryService.deleteItemCategory(id);
+        return success(true);
+    }
+
 }

--
Gitblit v1.9.3