云
2026-10-25 d54fbc9d4f8981fa0f7f613b33a28a8cd4f764ea
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 编号
@@ -99,4 +107,19 @@
     */
    List<MdmItemCategoryDO> getItemCategoryChildrenList(Long id);
    /**
     * 获得启用的分类列表
     *
     * @return 分类列表
     */
    List<MdmItemCategoryDO> getSimpleItemList();
    /**
     * 根据物料/产品标识获取分类
     *
     * @param itemOrProduct 物料/产品标识
     * @return 物料分类
     */
    MdmItemCategoryDO getItemCategoryByItemOrProduct(String itemOrProduct);
}