云
2026-10-25 d54fbc9d4f8981fa0f7f613b33a28a8cd4f764ea
yudao-module-mdm/src/main/java/cn/iocoder/yudao/module/mdm/api/category/MdmItemCategoryApi.java
@@ -9,7 +9,7 @@
/**
 * MDM 物料分类 API 接口
 *
 * @author 芋道源码
 * @author 超级管理员
 */
public interface MdmItemCategoryApi {
@@ -22,6 +22,14 @@
     * @return 物料分类
     */
    CommonResult<MdmItemCategoryRespDTO> getItemCategory(Long id);
    /**
     * 根据编码获取物料分类
     *
     * @param code 分类编码
     * @return 物料分类
     */
    CommonResult<MdmItemCategoryRespDTO> getItemCategoryByCode(String code);
    /**
     * 获取物料分类列表
@@ -39,4 +47,12 @@
     */
    CommonResult<MdmItemCategoryRespDTO> validateItemCategoryExists(Long id);
}
    /**
     * 根据物料/产品标识获取分类
     *
     * @param itemOrProduct 物料/产品标识
     * @return 物料分类
     */
    CommonResult<MdmItemCategoryRespDTO> getItemCategoryByItemOrProduct(String itemOrProduct);
}