refactor(入库计划明细实例): 增加 库位 xyz

This commit is contained in:
LJW 2024-11-22 09:27:51 +08:00
parent f62ad17b71
commit 3eb5b1458f
2 changed files with 33 additions and 0 deletions

View File

@ -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())

View File

@ -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());
// 查询库房信息