2026-08-07 d65c665b483f9c7b57358d4ad2c4bf3c6e1f9608
yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/service/md/item/MesMdItemService.java
@@ -1,8 +1,6 @@
package cn.iocoder.yudao.module.mes.service.md.item;
import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.module.mes.controller.admin.md.item.vo.MesMdItemImportExcelVO;
import cn.iocoder.yudao.module.mes.controller.admin.md.item.vo.MesMdItemImportRespVO;
import cn.iocoder.yudao.module.mes.controller.admin.md.item.vo.MesMdItemPageReqVO;
import cn.iocoder.yudao.module.mes.controller.admin.md.item.vo.MesMdItemSaveReqVO;
import cn.iocoder.yudao.module.mes.dal.dataobject.md.item.MesMdItemDO;
@@ -17,7 +15,7 @@
/**
 * MES 物料产品 Service 接口
 *
 * @author 芋道源码
 * @author 超级管理员
 */
public interface MesMdItemService {
@@ -118,15 +116,6 @@
    Long getItemCountByItemTypeId(Long itemTypeId);
    /**
     * 批量导入物料
     *
     * @param importItems 导入物料列表
     * @param updateSupport 是否支持更新
     * @return 导入结果
     */
    MesMdItemImportRespVO importItemList(List<MesMdItemImportExcelVO> importItems, boolean updateSupport);
    /**
     * 基于计量单位编号,获得物料数量
     *
     * @param unitMeasureId 计量单位编号
@@ -134,4 +123,21 @@
     */
    Long getItemCountByUnitMeasureId(Long unitMeasureId);
    /**
     * 根据 MDM 物料 ID 获取 MES 产品
     *
     * @param mdmItemId MDM 物料 ID
     * @return MES 产品,不存在返回 null
     */
    MesMdItemDO getItemByMdmItemId(Long mdmItemId);
    /**
     * 根据 MDM 物料 ID 校验 MES 产品存在
     *
     * @param mdmItemId MDM 物料 ID
     * @return MES 产品
     * @throws cn.iocoder.yudao.framework.common.exception.ServiceException 如果产品不存在
     */
    MesMdItemDO validateItemExistsByMdmItemId(Long mdmItemId);
}