组装任务生成出库任务绑定明细ID
This commit is contained in:
parent
7c3a232e11
commit
d5904db69a
@ -471,6 +471,9 @@ public class WmsZdTaskServiceImpl implements IWmsZdTaskService
|
|||||||
wmsInPlanService.updateWmsInPlan(wmsInPlan);
|
wmsInPlanService.updateWmsInPlan(wmsInPlan);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 复查一遍入库计划
|
||||||
|
WmsInPlan inPlanTemp = wmsInPlanService.selectWmsInPlanByPlanId(wmsInPlan.getPlanId());
|
||||||
|
|
||||||
// 入库任务
|
// 入库任务
|
||||||
MdItem mdItem = mdItemMapper.selectMdItemById(zdTask.getmProductId());
|
MdItem mdItem = mdItemMapper.selectMdItemById(zdTask.getmProductId());
|
||||||
WmsInTask wmsInTask = new WmsInTask();
|
WmsInTask wmsInTask = new WmsInTask();
|
||||||
@ -488,7 +491,7 @@ public class WmsZdTaskServiceImpl implements IWmsZdTaskService
|
|||||||
wmsInTask.setPlanTypeId("9");
|
wmsInTask.setPlanTypeId("9");
|
||||||
wmsInTask.setPlanTypeCode("ZDHK");
|
wmsInTask.setPlanTypeCode("ZDHK");
|
||||||
wmsInTask.setPlanInStatus("0");
|
wmsInTask.setPlanInStatus("0");
|
||||||
wmsInTask.setDetailInId(wmsInPlan.getWmsInPlanDetailsList().get(0).getDetailsId());
|
wmsInTask.setDetailInId(inPlanTemp.getWmsInPlanDetailsList().get(0).getDetailsId());
|
||||||
wmsInTask.setCreateBy(getUsername());
|
wmsInTask.setCreateBy(getUsername());
|
||||||
wmsInTask.setCreateTime(DateUtils.getNowDate());
|
wmsInTask.setCreateTime(DateUtils.getNowDate());
|
||||||
wmsInTaskMapper.insertWmsInTask(wmsInTask);
|
wmsInTaskMapper.insertWmsInTask(wmsInTask);
|
||||||
|
Loading…
Reference in New Issue
Block a user