From f11994376f6122e51deee5b9bc790269ae92d19e Mon Sep 17 00:00:00 2001 From: Kelvin Date: Fri, 20 Dec 2024 14:11:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=87=AA=E5=8A=A8=E5=88=86=E9=85=8D?= =?UTF-8?q?=EF=BC=8C=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mes/wm/controller/WmsInTaskController.java | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 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 09452f5..42911f5 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 @@ -122,13 +122,15 @@ public class WmsInTaskController extends BaseController { } // 自动分配非临时库位 - WmStorageArea wmStorageArea = this.wmStorageLocationService.queryOneAreaByLocationCode("DDJ01", ucmCtBaseByCode.getAttr3() != null && ucmCtBaseByCode.getAttr3() == 1); - wmsInTask.setCellTgt(wmStorageArea.getAreaId()); - wmsInTask.setCellName(wmStorageArea.getAreaName()); - wmsInTask.setCellCode(wmStorageArea.getAreaCode()); - wmsInTask.setCellX(wmStorageArea.getPositionX().toString()); - wmsInTask.setCellY(wmStorageArea.getPositionY().toString()); - wmsInTask.setCellZ(wmStorageArea.getPositionZ().toString()); + if (wmsInTask.getCellCode().equals("TEMP")) { + WmStorageArea wmStorageArea = this.wmStorageLocationService.queryOneAreaByLocationCode("DDJ01", ucmCtBaseByCode.getAttr3() != null && ucmCtBaseByCode.getAttr3() == 1); + wmsInTask.setCellTgt(wmStorageArea.getAreaId()); + wmsInTask.setCellName(wmStorageArea.getAreaName()); + wmsInTask.setCellCode(wmStorageArea.getAreaCode()); + wmsInTask.setCellX(wmStorageArea.getPositionX().toString()); + wmsInTask.setCellY(wmStorageArea.getPositionY().toString()); + wmsInTask.setCellZ(wmStorageArea.getPositionZ().toString()); + } // 将料箱rfid绑定至任务 wmsInTask.setBoxRfid(rfid);