From 10f743992254890dc54ebf53f469d28a6e5c14f7 Mon Sep 17 00:00:00 2001
From: xiaoyi <908147524@qq.com>
Date: 星期一, 26 十月 2026 18:04:35 +0800
Subject: [PATCH] fix 修复部分上传
---
yudao-module-mdm/src/main/java/cn/iocoder/yudao/module/mdm/api/category/MdmItemCategoryApiImpl.java | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 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 8f70f31..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
@@ -18,7 +18,7 @@
/**
* MDM 鐗╂枡鍒嗙被 API 瀹炵幇绫�
*
- * @author 鑺嬮亾婧愮爜
+ * @author 瓒呯骇绠$悊鍛�
*/
@RestController
@RequestMapping(MdmItemCategoryApi.PREFIX)
@@ -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));
@@ -46,4 +52,10 @@
return success(BeanUtils.toBean(itemCategory, MdmItemCategoryRespDTO.class));
}
-}
\ No newline at end of file
+ @Override
+ public CommonResult<MdmItemCategoryRespDTO> getItemCategoryByItemOrProduct(String itemOrProduct) {
+ MdmItemCategoryDO itemCategory = itemCategoryService.getItemCategoryByItemOrProduct(itemOrProduct);
+ return success(BeanUtils.toBean(itemCategory, MdmItemCategoryRespDTO.class));
+ }
+
+}
--
Gitblit v1.9.3