refactor(入库计划明细实体): 增加入库计划校验
This commit is contained in:
parent
55b1024f4d
commit
60357038df
@ -67,8 +67,11 @@ public class WmsInPlanDetailEntityServiceImpl implements IWmsInPlanDetailEntityS
|
||||
wmsInPlanDetailEntityList.forEach(entity -> {
|
||||
// 获取入库计划信息
|
||||
WmsInPlan wmsInPlan = wmsInPlanMapper.selectWmsInPlanByPlanId(entity.getPlanId());
|
||||
// 获取入库计划
|
||||
WmsBusinessType wmsBusinessType = wmsBusinessTypeMapper.selectWmsBusinessTypeByTypeId(wmsInPlan.getPlanTypeId().toString());
|
||||
if (Objects.isNull(wmsInPlan)) {
|
||||
throw new RuntimeException("入库计划查询失败, planId: " + entity.getPlanId());
|
||||
}
|
||||
// 获取入库计划类型
|
||||
WmsBusinessType wmsBusinessType = wmsBusinessTypeMapper.selectWmsBusinessTypeByCode(wmsInPlan.getPlanTypeCode());
|
||||
|
||||
for (WmsInPlanDetail detail : wmsInPlan.getWmsInPlanDetailList()) {
|
||||
// 匹配入库明细
|
||||
|
Loading…
Reference in New Issue
Block a user