From d5904db69ae59fc362417634a841b69ac85fe0e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=A4=E9=94=A6=E7=A7=91?= <32996823@qq.com> Date: Fri, 20 Dec 2024 10:54:51 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=84=E8=A3=85=E4=BB=BB=E5=8A=A1=E7=94=9F?= =?UTF-8?q?=E6=88=90=E5=87=BA=E5=BA=93=E4=BB=BB=E5=8A=A1=E7=BB=91=E5=AE=9A?= =?UTF-8?q?=E6=98=8E=E7=BB=86ID?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ktg/mes/wm/service/impl/WmsZdTaskServiceImpl.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ktg-mes/src/main/java/com/ktg/mes/wm/service/impl/WmsZdTaskServiceImpl.java b/ktg-mes/src/main/java/com/ktg/mes/wm/service/impl/WmsZdTaskServiceImpl.java index 2902e88..d6a5bc4 100644 --- a/ktg-mes/src/main/java/com/ktg/mes/wm/service/impl/WmsZdTaskServiceImpl.java +++ b/ktg-mes/src/main/java/com/ktg/mes/wm/service/impl/WmsZdTaskServiceImpl.java @@ -471,6 +471,9 @@ public class WmsZdTaskServiceImpl implements IWmsZdTaskService wmsInPlanService.updateWmsInPlan(wmsInPlan); } + // 复查一遍入库计划 + WmsInPlan inPlanTemp = wmsInPlanService.selectWmsInPlanByPlanId(wmsInPlan.getPlanId()); + // 入库任务 MdItem mdItem = mdItemMapper.selectMdItemById(zdTask.getmProductId()); WmsInTask wmsInTask = new WmsInTask(); @@ -488,7 +491,7 @@ public class WmsZdTaskServiceImpl implements IWmsZdTaskService wmsInTask.setPlanTypeId("9"); wmsInTask.setPlanTypeCode("ZDHK"); wmsInTask.setPlanInStatus("0"); - wmsInTask.setDetailInId(wmsInPlan.getWmsInPlanDetailsList().get(0).getDetailsId()); + wmsInTask.setDetailInId(inPlanTemp.getWmsInPlanDetailsList().get(0).getDetailsId()); wmsInTask.setCreateBy(getUsername()); wmsInTask.setCreateTime(DateUtils.getNowDate()); wmsInTaskMapper.insertWmsInTask(wmsInTask);