云
2026-10-25 d54fbc9d4f8981fa0f7f613b33a28a8cd4f764ea
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));
    }
}
    @Override
    public CommonResult<MdmItemCategoryRespDTO> getItemCategoryByItemOrProduct(String itemOrProduct) {
        MdmItemCategoryDO itemCategory = itemCategoryService.getItemCategoryByItemOrProduct(itemOrProduct);
        return success(BeanUtils.toBean(itemCategory, MdmItemCategoryRespDTO.class));
    }
}