From d54fbc9d4f8981fa0f7f613b33a28a8cd4f764ea Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期日, 25 十月 2026 16:29:53 +0800
Subject: [PATCH] feat(system): 优化用户搜索功能并完善ERP和MES模块验证逻辑

---
 yudao-module-mdm/src/main/java/cn/iocoder/yudao/module/mdm/api/category/MdmItemCategoryApiImpl.java |    8 +++++++-
 1 files changed, 7 insertions(+), 1 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 0604a97..c5195ef 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
@@ -35,6 +35,12 @@
     }
 
     @Override
+    public CommonResult<MdmItemCategoryRespDTO> getItemCategoryByCode(String code) {
+        MdmItemCategoryDO itemCategory = itemCategoryService.getItemCategoryByCode(code);
+        return success(BeanUtils.toBean(itemCategory, MdmItemCategoryRespDTO.class));
+    }
+
+    @Override
     public CommonResult<List<MdmItemCategoryRespDTO>> getItemCategoryList(Collection<Long> ids) {
         List<MdmItemCategoryDO> list = itemCategoryService.getItemCategoryList(ids);
         return success(BeanUtils.toBean(list, MdmItemCategoryRespDTO.class));
@@ -52,4 +58,4 @@
         return success(BeanUtils.toBean(itemCategory, MdmItemCategoryRespDTO.class));
     }
 
-}
\ No newline at end of file
+}

--
Gitblit v1.9.3