| | |
| | | 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; |
| | |
| | | /** |
| | | * MES 物料产品 Service 接口 |
| | | * |
| | | * @author 芋道源码 |
| | | * @author 超级管理员 |
| | | */ |
| | | public interface MesMdItemService { |
| | | |
| | |
| | | Long getItemCountByItemTypeId(Long itemTypeId); |
| | | |
| | | /** |
| | | * 批量导入物料 |
| | | * |
| | | * @param importItems 导入物料列表 |
| | | * @param updateSupport 是否支持更新 |
| | | * @return 导入结果 |
| | | */ |
| | | MesMdItemImportRespVO importItemList(List<MesMdItemImportExcelVO> importItems, boolean updateSupport); |
| | | |
| | | /** |
| | | * 基于计量单位编号,获得物料数量 |
| | | * |
| | | * @param unitMeasureId 计量单位编号 |
| | |
| | | */ |
| | | 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); |
| | | |
| | | } |