From 3eb5b1458fbd424f6b50f578805175c26150c1ac Mon Sep 17 00:00:00 2001 From: LJW Date: Fri, 22 Nov 2024 09:27:51 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E5=85=A5=E5=BA=93=E8=AE=A1=E5=88=92?= =?UTF-8?q?=E6=98=8E=E7=BB=86=E5=AE=9E=E4=BE=8B):=20=E5=A2=9E=E5=8A=A0=20?= =?UTF-8?q?=E5=BA=93=E4=BD=8D=20xyz?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mes/wm/domain/WmsInPlanDetailEntity.java | 30 +++++++++++++++++++ .../WmsInPlanDetailEntityServiceImpl.java | 3 ++ 2 files changed, 33 insertions(+) diff --git a/ktg-mes/src/main/java/com/ktg/mes/wm/domain/WmsInPlanDetailEntity.java b/ktg-mes/src/main/java/com/ktg/mes/wm/domain/WmsInPlanDetailEntity.java index df29a0d..3fa26b6 100644 --- a/ktg-mes/src/main/java/com/ktg/mes/wm/domain/WmsInPlanDetailEntity.java +++ b/ktg-mes/src/main/java/com/ktg/mes/wm/domain/WmsInPlanDetailEntity.java @@ -72,6 +72,9 @@ public class WmsInPlanDetailEntity extends BaseEntity { * 库位名称 */ private String cellName; + private String cellX; + private String cellY; + private String cellZ; /** * 明细批次 */ @@ -186,6 +189,30 @@ public class WmsInPlanDetailEntity extends BaseEntity { this.cellName = cellName; } + public String getCellX() { + return cellX; + } + + public void setCellX(String cellX) { + this.cellX = cellX; + } + + public String getCellY() { + return cellY; + } + + public void setCellY(String cellY) { + this.cellY = cellY; + } + + public String getCellZ() { + return cellZ; + } + + public void setCellZ(String cellZ) { + this.cellZ = cellZ; + } + public String getDetailBatch() { return detailBatch; } @@ -237,6 +264,9 @@ public class WmsInPlanDetailEntity extends BaseEntity { .append("planType", getPlanType()) .append("cellCode", getCellCode()) .append("cellName", getCellName()) + .append("cellX", getCellX()) + .append("cellY", getCellY()) + .append("cellZ", getCellZ()) .append("warehouseName", getWarehouseName()) .append("warehouseCode", getWarehouseCode()) .append("warehouseTypeName", getWarehouseTypeName()) 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 71f1331..9182d82 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 @@ -79,6 +79,9 @@ public class WmsInPlanDetailEntityServiceImpl implements IWmsInPlanDetailEntityS // 设置库位信息 entity.setCellCode(wmStorageArea.getAreaCode()); entity.setCellName(wmStorageArea.getAreaName()); + entity.setCellX(wmStorageArea.getPositionX().toString()); + entity.setCellY(wmStorageArea.getPositionY().toString()); + entity.setCellZ(wmStorageArea.getPositionZ().toString()); // 查询库区信息 WmStorageLocation wmStorageLocation = wmStorageLocationMapper.selectWmStorageLocationByLocationId(wmStorageArea.getLocationId()); // 查询库房信息