liu
2026-10-27 6a48d04a36bc459ed761d787ee3d537652185d36
yudao-module-mdm/src/main/java/cn/iocoder/yudao/module/mdm/service/category/MdmItemCategoryService.java
@@ -15,7 +15,7 @@
/**
 * MDM 物料分类 Service 接口
 *
 * @author 芋道源码
 * @author 超级管理员
 */
public interface MdmItemCategoryService {
@@ -58,6 +58,14 @@
    MdmItemCategoryDO getItemCategory(Long id);
    /**
     * 根据编码获得物料分类
     *
     * @param code 分类编码
     * @return 物料分类
     */
    MdmItemCategoryDO getItemCategoryByCode(String code);
    /**
     * 校验物料分类存在
     *
     * @param id 编号
@@ -82,6 +90,13 @@
    List<MdmItemCategoryDO> getItemCategoryList(Collection<Long> ids);
    /**
     * 获得全部分类列表(含禁用)
     *
     * @return 分类列表
     */
    List<MdmItemCategoryDO> getItemCategoryAllList();
    /**
     * 获得物料分类 Map
     *
     * @param ids 编号数组
@@ -99,4 +114,19 @@
     */
    List<MdmItemCategoryDO> getItemCategoryChildrenList(Long id);
    /**
     * 获得启用的分类列表
     *
     * @return 分类列表
     */
    List<MdmItemCategoryDO> getSimpleItemList();
    /**
     * 根据物料/产品标识获取分类
     *
     * @param itemOrProduct 物料/产品标识
     * @return 物料分类
     */
    MdmItemCategoryDO getItemCategoryByItemOrProduct(String itemOrProduct);
}