From 3b5dcf7bbfb962e2b9cc610d406d3842d1d456d7 Mon Sep 17 00:00:00 2001 From: Kelvin Date: Sat, 4 Jan 2025 15:19:11 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E5=85=A5=E5=BA=93=E4=BB=BB=E5=8A=A1):?= =?UTF-8?q?=20=E6=89=A7=E8=A1=8C=E4=BB=BB=E5=8A=A1=E6=96=B9=E6=B3=95?= =?UTF-8?q?=EF=BC=8C=E4=BC=98=E5=8C=96=E5=AF=B9=E5=85=A5=E5=BA=93=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E7=9A=84=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ktg/mes/wm/controller/WmsInTaskController.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ktg-mes/src/main/java/com/ktg/mes/wm/controller/WmsInTaskController.java b/ktg-mes/src/main/java/com/ktg/mes/wm/controller/WmsInTaskController.java index d56f45f..657c363 100644 --- a/ktg-mes/src/main/java/com/ktg/mes/wm/controller/WmsInTaskController.java +++ b/ktg-mes/src/main/java/com/ktg/mes/wm/controller/WmsInTaskController.java @@ -220,7 +220,7 @@ public class WmsInTaskController extends BaseController { baseKnife.setCreateTime(DateUtils.getNowDate()); baseKnifeService.updateBaseKnife(baseKnife); }); - } else if (Objects.equals(wmsInTask.getPlanTypeId(), "9")) { + } else if (Objects.equals(wmsInTask.getPlanTypeId(), "9") || Objects.equals(wmsInTask.getPlanTypeCode(), "ZDHK")) { // 入库类型为整刀回库 wmsInPlanDetailEntityList.forEach(planDetailEntity -> { BaseKnife baseKnife = baseKnifeService.selectBaseKnifeByBaseKnifeId(planDetailEntity.getKnifeId()); @@ -283,7 +283,7 @@ public class WmsInTaskController extends BaseController { } } }); - } else if (Objects.equals(wmsInTask.getPlanTypeId(), "15")) { + } else if (Objects.equals(wmsInTask.getPlanTypeId(), "15") || Objects.equals(wmsInTask.getPlanTypeCode(), "CDHK")) { // 拆刀回库 wmsInPlanDetailEntityList.forEach(planDetailEntity -> { BaseKnife baseKnife = baseKnifeService.selectBaseKnifeByBaseKnifeId(planDetailEntity.getKnifeId()); @@ -300,7 +300,7 @@ public class WmsInTaskController extends BaseController { baseKnifeService.updateBaseKnife(bladeOpt.get()); } }); - } else if (Objects.equals(wmsInTask.getPlanTypeId(), "7")) { + } else if (Objects.equals(wmsInTask.getPlanTypeId(), "7") || Objects.equals(wmsInTask.getPlanTypeCode(), "DBRK")) { // 入库类型为刀柄入库 wmsInPlanDetailEntityList.forEach(planDetailEntity -> { // 生成台账