refactor(入库计划明细实体): 增加入库计划校验

This commit is contained in:
Kelvin 2025-01-06 17:19:53 +08:00
parent 55b1024f4d
commit 60357038df

View File

@ -67,8 +67,11 @@ public class WmsInPlanDetailEntityServiceImpl implements IWmsInPlanDetailEntityS
wmsInPlanDetailEntityList.forEach(entity -> { wmsInPlanDetailEntityList.forEach(entity -> {
// 获取入库计划信息 // 获取入库计划信息
WmsInPlan wmsInPlan = wmsInPlanMapper.selectWmsInPlanByPlanId(entity.getPlanId()); WmsInPlan wmsInPlan = wmsInPlanMapper.selectWmsInPlanByPlanId(entity.getPlanId());
// 获取入库计划 if (Objects.isNull(wmsInPlan)) {
WmsBusinessType wmsBusinessType = wmsBusinessTypeMapper.selectWmsBusinessTypeByTypeId(wmsInPlan.getPlanTypeId().toString()); throw new RuntimeException("入库计划查询失败, planId: " + entity.getPlanId());
}
// 获取入库计划类型
WmsBusinessType wmsBusinessType = wmsBusinessTypeMapper.selectWmsBusinessTypeByCode(wmsInPlan.getPlanTypeCode());
for (WmsInPlanDetail detail : wmsInPlan.getWmsInPlanDetailList()) { for (WmsInPlanDetail detail : wmsInPlan.getWmsInPlanDetailList()) {
// 匹配入库明细 // 匹配入库明细