| | |
| | | import cn.iocoder.yudao.module.mes.dal.dataobject.wm.batch.MesWmBatchDO; |
| | | |
| | | import java.util.List; |
| | | import java.util.Collection; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * 批次管理 Service 接口 |
| | |
| | | */ |
| | | MesWmBatchDO getBatch(Long id); |
| | | |
| | | List<MesWmBatchDO> getBatchList(Collection<Long> ids); |
| | | |
| | | default Map<Long, MesWmBatchDO> getBatchMap(Collection<Long> ids) { |
| | | return getBatchList(ids).stream().collect(Collectors.toMap(MesWmBatchDO::getId, batch -> batch)); |
| | | } |
| | | |
| | | /** |
| | | * 根据批次号获得批次 |
| | | * |
| | |
| | | * 根据物料批次配置,查询或生成批次记录 |
| | | * |
| | | * @param reqVO 批次参数(包含 itemId 及其他可选属性) |
| | | * @return 批次记录(如果物料未启用批次管理则返回 null) |
| | | * @return 批次记录(未启用批次管理且未传盘号时返回 null) |
| | | */ |
| | | MesWmBatchDO getOrGenerateBatchCode(MesWmBatchGenerateReqVO reqVO); |
| | | |