liu
2026-10-27 6a48d04a36bc459ed761d787ee3d537652185d36
yudao-module-mdm/src/main/java/cn/iocoder/yudao/module/mdm/api/category/MdmItemCategoryApi.java
@@ -2,6 +2,7 @@
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import cn.iocoder.yudao.module.mdm.api.category.dto.MdmItemCategoryRespDTO;
import cn.iocoder.yudao.module.mdm.api.category.dto.MdmItemCategorySaveReqDTO;
import java.util.Collection;
import java.util.List;
@@ -9,7 +10,7 @@
/**
 * MDM 物料分类 API 接口
 *
 * @author 芋道源码
 * @author 超级管理员
 */
public interface MdmItemCategoryApi {
@@ -22,6 +23,14 @@
     * @return 物料分类
     */
    CommonResult<MdmItemCategoryRespDTO> getItemCategory(Long id);
    /**
     * 根据编码获取物料分类
     *
     * @param code 分类编码
     * @return 物料分类
     */
    CommonResult<MdmItemCategoryRespDTO> getItemCategoryByCode(String code);
    /**
     * 获取物料分类列表
@@ -39,4 +48,41 @@
     */
    CommonResult<MdmItemCategoryRespDTO> validateItemCategoryExists(Long id);
}
    /**
     * 根据物料/产品标识获取分类
     *
     * @param itemOrProduct 物料/产品标识
     * @return 物料分类
     */
    CommonResult<MdmItemCategoryRespDTO> getItemCategoryByItemOrProduct(String itemOrProduct);
    /**
     * 获取全部分类列表(含禁用)
     *
     * @return 分类列表
     */
    CommonResult<List<MdmItemCategoryRespDTO>> getItemCategoryAllList();
    /**
     * 创建物料分类
     *
     * @param createReqDTO 创建信息
     * @return 分类编号
     */
    CommonResult<Long> createItemCategory(MdmItemCategorySaveReqDTO createReqDTO);
    /**
     * 更新物料分类
     *
     * @param updateReqDTO 更新信息
     */
    CommonResult<Boolean> updateItemCategory(MdmItemCategorySaveReqDTO updateReqDTO);
    /**
     * 删除物料分类
     *
     * @param id 分类编号
     */
    CommonResult<Boolean> deleteItemCategory(Long id);
}