From 039b84258bd1bfdad0ef8a19209d93fb637497a2 Mon Sep 17 00:00:00 2001 From: Kelvin Date: Sun, 5 Jan 2025 20:41:33 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E5=85=A5=E5=BA=93=E8=AE=A1=E5=88=92):?= =?UTF-8?q?=20=E5=AE=9E=E4=BD=93=E7=B1=BB=E6=96=B9=E6=B3=95=E5=90=8D?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=EF=BC=8C=E7=A7=BB=E9=99=A4=E6=97=A0=E7=94=A8?= =?UTF-8?q?=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ktg/mes/md/controller/BaseKnifeController.java | 6 +++--- .../wm/service/impl/WmsInPlanDetailEntityServiceImpl.java | 2 +- .../com/ktg/mes/wm/service/impl/WmsZdTaskServiceImpl.java | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/controller/BaseKnifeController.java b/ktg-mes/src/main/java/com/ktg/mes/md/controller/BaseKnifeController.java index 0e9345f..c2b34d7 100644 --- a/ktg-mes/src/main/java/com/ktg/mes/md/controller/BaseKnifeController.java +++ b/ktg-mes/src/main/java/com/ktg/mes/md/controller/BaseKnifeController.java @@ -1102,12 +1102,12 @@ public class BaseKnifeController extends BaseController { wmsInPlanDetail.setQuantityIn(zdTask.getProductIdQty().toString()); wmsInPlanDetail.setPlanInStatus("0"); wmsInPlanDetailList.add(wmsInPlanDetail); - wmsInPlanTemp.setWmsInPlanDetailsList(wmsInPlanDetailList); + wmsInPlanTemp.setWmsInPlanDetailList(wmsInPlanDetailList); wmsInPlanService.insertWmsInPlan(wmsInPlanTemp); wmsInPlan = wmsInPlanTemp; } else { // 入库任务明细 - List wmsInPlanDetailList = wmsInPlan.getWmsInPlanDetailsList(); + List wmsInPlanDetailList = wmsInPlan.getWmsInPlanDetailList(); WmsInPlanDetail wmsInPlanDetail = new WmsInPlanDetail(); wmsInPlanDetail.setMaterialId(zdTask.getmProductId().toString()); wmsInPlanDetail.setBatch(batchNum); @@ -1116,7 +1116,7 @@ public class BaseKnifeController extends BaseController { wmsInPlanDetail.setQuantityIn(zdTask.getProductIdQty().toString()); wmsInPlanDetail.setPlanInStatus("0"); wmsInPlanDetailList.add(wmsInPlanDetail); - wmsInPlan.setWmsInPlanDetailsList(wmsInPlanDetailList); + wmsInPlan.setWmsInPlanDetailList(wmsInPlanDetailList); wmsInPlanService.updateWmsInPlan(wmsInPlan); } diff --git a/ktg-mes/src/main/java/com/ktg/mes/wm/service/impl/WmsInPlanDetailEntityServiceImpl.java b/ktg-mes/src/main/java/com/ktg/mes/wm/service/impl/WmsInPlanDetailEntityServiceImpl.java index 5dabc3c..ef22c43 100644 --- a/ktg-mes/src/main/java/com/ktg/mes/wm/service/impl/WmsInPlanDetailEntityServiceImpl.java +++ b/ktg-mes/src/main/java/com/ktg/mes/wm/service/impl/WmsInPlanDetailEntityServiceImpl.java @@ -70,7 +70,7 @@ public class WmsInPlanDetailEntityServiceImpl implements IWmsInPlanDetailEntityS // 获取入库计划 WmsBusinessType wmsBusinessType = wmsBusinessTypeMapper.selectWmsBusinessTypeByTypeId(wmsInPlan.getPlanTypeId().toString()); - for (WmsInPlanDetail detail : wmsInPlan.getWmsInPlanDetailsList()) { + for (WmsInPlanDetail detail : wmsInPlan.getWmsInPlanDetailList()) { // 匹配入库明细 if (detail.getDetailsId().equals(entity.getPlanDetailsId())) { System.out.println("---" + detail.getDetailsId() + "+测试+" + entity.getPlanDetailsId()); 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 775ae97..f5b4b2b 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 @@ -441,12 +441,12 @@ public class WmsZdTaskServiceImpl implements IWmsZdTaskService }); wmsInPlanDetail.setWmsInPlanDetailEntityList(wmsInPlanDetailEntityList); wmsInPlanDetailList.add(wmsInPlanDetail); - wmsInPlanTemp.setWmsInPlanDetailsList(wmsInPlanDetailList); + wmsInPlanTemp.setWmsInPlanDetailList(wmsInPlanDetailList); wmsInPlanService.insertWmsInPlan(wmsInPlanTemp); wmsInPlan = wmsInPlanTemp; } else { // 入库任务明细 - List wmsInPlanDetailList = wmsInPlan.getWmsInPlanDetailsList(); + List wmsInPlanDetailList = wmsInPlan.getWmsInPlanDetailList(); WmsInPlanDetail wmsInPlanDetail = new WmsInPlanDetail(); wmsInPlanDetail.setMaterialId(zdTask.getmProductId().toString()); wmsInPlanDetail.setBatch(batchNum); @@ -455,7 +455,7 @@ public class WmsZdTaskServiceImpl implements IWmsZdTaskService wmsInPlanDetail.setQuantityIn(zdTask.getProductIdQty().toString()); wmsInPlanDetail.setPlanInStatus("0"); wmsInPlanDetailList.add(wmsInPlanDetail); - wmsInPlan.setWmsInPlanDetailsList(wmsInPlanDetailList); + wmsInPlan.setWmsInPlanDetailList(wmsInPlanDetailList); wmsInPlanService.updateWmsInPlan(wmsInPlan); } @@ -479,7 +479,7 @@ public class WmsZdTaskServiceImpl implements IWmsZdTaskService wmsInTask.setPlanTypeId("9"); wmsInTask.setPlanTypeCode("ZDHK"); wmsInTask.setPlanInStatus("0"); - wmsInTask.setDetailInId(inPlanTemp.getWmsInPlanDetailsList().get(0).getDetailsId()); + wmsInTask.setDetailInId(inPlanTemp.getWmsInPlanDetailList().get(0).getDetailsId()); wmsInTask.setCreateBy(getUsername()); wmsInTask.setCreateTime(DateUtils.getNowDate()); wmsInTaskMapper.insertWmsInTask(wmsInTask);