From c9f6f336af818031c2967a524392f51d16a24324 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E5=BF=83=E6=B4=81?= Date: Tue, 10 Mar 2020 10:30:32 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=8A=A8=E6=80=81=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=EF=BC=9A=E8=A7=A3=E5=86=B3=E4=BA=86BUG#7658,7660,7661,7663,766?= =?UTF-8?q?4=203D=E4=BB=93=E5=BA=93=EF=BC=9A=E8=81=94=E8=B0=83=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../i3plus/pojo/model/wms/WmsTdChangeModel.java | 25 +++++++++++++++++++ .../estsh/i3plus/pojo/wms/bean/WmsFurniture.java | 29 ++++++++++++++++++++++ .../cn/estsh/i3plus/pojo/wms/bean/WmsLocate.java | 16 +++++++++++- .../cn/estsh/i3plus/pojo/wms/bean/WmsZones.java | 4 +++ .../estsh/i3plus/pojo/wms/sqlpack/WmsHqlPack.java | 2 +- 5 files changed, 74 insertions(+), 2 deletions(-) create mode 100644 modules/i3plus-pojo-model/src/main/java/cn/estsh/i3plus/pojo/model/wms/WmsTdChangeModel.java diff --git a/modules/i3plus-pojo-model/src/main/java/cn/estsh/i3plus/pojo/model/wms/WmsTdChangeModel.java b/modules/i3plus-pojo-model/src/main/java/cn/estsh/i3plus/pojo/model/wms/WmsTdChangeModel.java new file mode 100644 index 0000000..a6f69a8 --- /dev/null +++ b/modules/i3plus-pojo-model/src/main/java/cn/estsh/i3plus/pojo/model/wms/WmsTdChangeModel.java @@ -0,0 +1,25 @@ +package cn.estsh.i3plus.pojo.model.wms; + +import cn.estsh.i3plus.pojo.wms.bean.WmsFurniture; +import cn.estsh.i3plus.pojo.wms.bean.WmsLocate; +import cn.estsh.i3plus.pojo.wms.bean.WmsZones; +import lombok.Data; + +import java.io.Serializable; +import java.util.List; + +/** + * @Description 更改三维坐标MoDel + * @Reference + * @Author dragon + * @CreateDate 2020/3/6 17:57 + * @Modify + */ +@Data +public class WmsTdChangeModel implements Serializable { + private static final long serialVersionUID = -2682858106052506217L; + + private List wmsZonesList; + private List wmsFurnitureList; + private List wmsLocateList; +} diff --git a/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/bean/WmsFurniture.java b/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/bean/WmsFurniture.java index a6f6904..8dd97f8 100644 --- a/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/bean/WmsFurniture.java +++ b/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/bean/WmsFurniture.java @@ -11,6 +11,7 @@ import org.hibernate.annotations.DynamicUpdate; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Table; +import javax.persistence.Transient; /** * @Description 家具实体 @@ -49,7 +50,35 @@ public class WmsFurniture extends BaseBean { @ApiParam(value = "是否储物") private Integer isSaveGoods; + @Column(name = "POSITION") + @ApiParam(value = "三维位置") + private String position; + + @Transient + @ApiParam(value = "层") + private Integer storey; + + @Transient + @ApiParam(value = "列") + private Integer fntCol; + + public int getIsSaveGoodsVal() { return this.isSaveGoods == null ? 0 : this.isSaveGoods; } + + public WmsFurniture() { + } + + public WmsFurniture(String whNo, String zoneNo, String typeCode, String furnitureNo, + Integer isSaveGoods, String position, Integer storey, Integer fntCol) { + this.whNo = whNo; + this.zoneNo = zoneNo; + this.typeCode = typeCode; + this.furnitureNo = furnitureNo; + this.isSaveGoods = isSaveGoods; + this.position = position; + this.storey = storey; + this.fntCol = fntCol; + } } diff --git a/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/bean/WmsLocate.java b/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/bean/WmsLocate.java index 41092ce..ea6891b 100644 --- a/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/bean/WmsLocate.java +++ b/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/bean/WmsLocate.java @@ -47,7 +47,7 @@ public class WmsLocate extends BaseBean { */ @Column(name = "LOCATE_TYPE") @ApiParam(value = "库位类型") - @DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, entityName = "LOCATE_TYPE") + @DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, entityName = "LOCATE_TYPE") private Integer locateType; @Column(name = "WH_NO") @@ -147,6 +147,10 @@ public class WmsLocate extends BaseBean { @DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.DATETIME, isRequire = 2) private String lastCsTime; + @Column(name = "POSITION") + @ApiParam(value = "三维位置") + private String position; + // 导入用 @ApiParam(value = "工厂") @Transient @@ -254,5 +258,15 @@ public class WmsLocate extends BaseBean { return this.frequency == null ? 0 : this.frequency.intValue(); } + public Integer getXVal() { + return this.x == null ? 0 : this.x.intValue(); + } + public Integer getYVal() { + return this.y == null ? 0 : this.y.intValue(); + } + public Integer getZVal() { + return this.z == null ? 0 : this.z.intValue(); + } + } diff --git a/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/bean/WmsZones.java b/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/bean/WmsZones.java index 4c9e00d..c00ff31 100644 --- a/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/bean/WmsZones.java +++ b/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/bean/WmsZones.java @@ -113,6 +113,10 @@ public class WmsZones extends BaseBean { @DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER) private Double zoneWidth; + @Column(name = "POSITION") + @ApiParam(value = "三维位置") + private String position; + @Transient @ApiParam(value = "子存储区列表") private List childList; diff --git a/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/sqlpack/WmsHqlPack.java b/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/sqlpack/WmsHqlPack.java index 6e717a9..9808095 100644 --- a/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/sqlpack/WmsHqlPack.java +++ b/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/sqlpack/WmsHqlPack.java @@ -541,7 +541,7 @@ public class WmsHqlPack { DdlPreparedPack.getNumEqualPack(wmsLocate.getLocateType(), "locateType", result); DdlPreparedPack.getStringEqualPack(wmsLocate.getWhNo(), "whNo", result); if (wmsLocate.getZoneNo() != null) { - DdlPreparedPack.getInPack(StringUtils.join(new ArrayList(Arrays.asList(wmsLocate.getZoneNo().split(","))), ","), "", result); + DdlPreparedPack.getInPack(StringUtils.join(new ArrayList(Arrays.asList(wmsLocate.getZoneNo().split(","))), ","), "zoneNo", result); } if (wmsLocate.getLocateNoArr() != null) { DdlPreparedPack.getInPack(StringUtils.join(wmsLocate.getLocateNoArr()), "", result); From 2c0ef55e85e32afe6f2705e2853fc0b2d5420cd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E5=BF=83=E6=B4=81?= Date: Wed, 11 Mar 2020 15:00:49 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=8A=A8=E6=80=81?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2BUG#7674,#7676+=20=E6=B5=81=E7=A8=8B=E5=AF=BC?= =?UTF-8?q?=E5=85=A5BUG#7682?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cn/estsh/i3plus/pojo/wms/bean/WareHouse.java | 51 +++++++++++++--------- .../estsh/i3plus/pojo/wms/bean/WmsFurniture.java | 10 ++--- .../i3plus/pojo/wms/bean/WmsFurnitureType.java | 38 +++++++++++----- .../cn/estsh/i3plus/pojo/wms/bean/WmsLocate.java | 30 ++++++------- .../cn/estsh/i3plus/pojo/wms/bean/WmsZones.java | 16 +++---- 5 files changed, 85 insertions(+), 60 deletions(-) diff --git a/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/bean/WareHouse.java b/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/bean/WareHouse.java index e3ddc5b..30d7725 100644 --- a/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/bean/WareHouse.java +++ b/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/bean/WareHouse.java @@ -28,52 +28,63 @@ import java.util.List; @DynamicInsert @DynamicUpdate @EqualsAndHashCode(callSuper = true) -@Table(name="WMS_WAREHOUSE") +@Table(name = "WMS_WAREHOUSE") @Api("工厂仓库信息") public class WareHouse extends BaseBean { private static final long serialVersionUID = 7914396535326597148L; - @Column(name="CODE") + @Column(name = "CODE") @ApiParam("仓库代码") @DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT) public String code; - @Column(name="NAME") + @Column(name = "NAME") @ApiParam("仓库名称") @DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT) public String name; - @Column(name="ADDRESS") + @Column(name = "ADDRESS") @ApiParam("仓库地址") @DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isRequire = 2) public String address; - @Column(name = "WH_LENGTH", columnDefinition = "decimal(18,8)") - @ApiParam(value = "长") + @Column(name = "WH_LENGTH") + @ApiParam(value = "长(单位:全局设置参数中的基本单元)") @DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER) - private Double whLength; + private Integer whLength; - @Column(name = "WH_WIDTH", columnDefinition = "decimal(18,8)") - @ApiParam(value = "宽") + @Column(name = "WH_WIDTH") + @ApiParam(value = "宽(单位:全局设置参数中的基本单元)") @DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER) - private Double whWidth; + private Integer whWidth; - @Column(name = "WH_HEIGHT", columnDefinition = "decimal(18,8)") - @ApiParam(value = "高") + @Column(name = "WH_HEIGHT") + @ApiParam(value = "高(单位:全局设置参数中的基本单元)") @DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER) - private Double whHeight; + private Integer whHeight; + + @Column(name = "BASE_UNIT", columnDefinition = "decimal(18,8)") + @ApiParam(value = "基本单元(米)") + @DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER) + private Double baseUnit; @Transient - @ApiParam(value ="存储区列表") + @ApiParam(value = "存储区列表") private List zoneList; - public double getWhLengthVal() { - return this.whLength == null ? 0 : this.whLength.doubleValue(); + public Integer getWhLengthVal() { + return this.whLength == null ? 0 : this.whLength.intValue(); + } + + public Integer getWhWidthVal() { + return this.whWidth == null ? 0 : this.whWidth.intValue(); } - public double getWhWidthVal() { - return this.whWidth == null ? 0 : this.whWidth.doubleValue(); + + public Integer getWhHeightVal() { + return this.whHeight == null ? 0 : this.whHeight.intValue(); } - public double getWhHeightVal() { - return this.whHeight == null ? 0 : this.whHeight.doubleValue(); + + public Double getBaseUnitVal() { + return this.baseUnit == null ? 0 : this.baseUnit.doubleValue(); } } diff --git a/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/bean/WmsFurniture.java b/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/bean/WmsFurniture.java index 8dd97f8..929b274 100644 --- a/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/bean/WmsFurniture.java +++ b/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/bean/WmsFurniture.java @@ -62,11 +62,6 @@ public class WmsFurniture extends BaseBean { @ApiParam(value = "列") private Integer fntCol; - - public int getIsSaveGoodsVal() { - return this.isSaveGoods == null ? 0 : this.isSaveGoods; - } - public WmsFurniture() { } @@ -81,4 +76,9 @@ public class WmsFurniture extends BaseBean { this.storey = storey; this.fntCol = fntCol; } + + public Integer getIsSaveGoodsVal() { + return this.isSaveGoods == null ? 0 : this.isSaveGoods; + } + } diff --git a/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/bean/WmsFurnitureType.java b/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/bean/WmsFurnitureType.java index 2ee5b0f..d9dd033 100644 --- a/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/bean/WmsFurnitureType.java +++ b/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/bean/WmsFurnitureType.java @@ -37,17 +37,17 @@ public class WmsFurnitureType extends BaseBean { @ApiParam(value = "类型名称") private String typeName; - @Column(name = "FNT_LENGTH", columnDefinition = "decimal(18,8)") + @Column(name = "FNT_LENGTH") @ApiParam(value = "长") - private Double fntLength; + private Integer fntLength; - @Column(name = "FNT_WIDTH", columnDefinition = "decimal(18,8)") + @Column(name = "FNT_WIDTH") @ApiParam(value = "宽") - private Double fntWidth; + private Integer fntWidth; - @Column(name = "FNT_HEIGHT", columnDefinition = "decimal(18,8)") + @Column(name = "FNT_HEIGHT") @ApiParam(value = "高") - private Double fntHeight; + private Integer fntHeight; @Column(name = "STOREY") @ApiParam(value = "层") @@ -61,14 +61,28 @@ public class WmsFurnitureType extends BaseBean { @ApiParam(value = "是否储物") private Integer isSaveGoods; - public Double getFntLengthVal() { - return this.fntLength == null ? 0 : this.fntLength.doubleValue(); + public Integer getStoreyVal() { + return this.storey == null ? 0 : this.storey.intValue(); } - public Double getFntWidthVal() { - return this.fntWidth == null ? 0 : this.fntWidth.doubleValue(); + + public Integer getFntColVal() { + return this.fntCol == null ? 0 : this.fntCol.intValue(); + } + + public Integer getFntLengthVal() { + return this.fntLength == null ? 0 : this.fntLength.intValue(); + } + + public Integer getFntWidthVal() { + return this.fntWidth == null ? 0 : this.fntWidth.intValue(); + } + + public Integer getFntHeightVal() { + return this.fntHeight == null ? 0 : this.fntHeight.intValue(); } - public Double getFntHeightVal() { - return this.fntHeight == null ? 0 : this.fntHeight.doubleValue(); + + public Integer getIsSaveGoodsVal() { + return this.isSaveGoods == null ? 0 : this.isSaveGoods.intValue(); } } diff --git a/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/bean/WmsLocate.java b/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/bean/WmsLocate.java index ea6891b..a5b6221 100644 --- a/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/bean/WmsLocate.java +++ b/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/bean/WmsLocate.java @@ -82,20 +82,20 @@ public class WmsLocate extends BaseBean { @DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER, isRequire = 2) private Integer z; - @Column(name = "LC_LENGTH", columnDefinition = "decimal(18,8)") + @Column(name = "LC_LENGTH") @ApiParam(value = "长") @DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER, isRequire = 2) - private Double lcLength; + private Integer lcLength; - @Column(name = "LC_WIDTH", columnDefinition = "decimal(18,8)") + @Column(name = "LC_WIDTH") @ApiParam(value = "宽") @DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER, isRequire = 2) - private Double lcWidth; + private Integer lcWidth; - @Column(name = "LC_HEIGHT", columnDefinition = "decimal(18,8)") + @Column(name = "LC_HEIGHT") @ApiParam(value = "高") @DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER, isRequire = 2) - private Double lcHeight; + private Integer lcHeight; @Column(name = "SEQ") @ApiParam(value = "序号", example = "-1") @@ -244,18 +244,18 @@ public class WmsLocate extends BaseBean { return this.locateType== null ? 0 : this.locateType.intValue(); } - public Double getLcLengthVal() { - return this.lcLength == null ? 0 : this.lcLength.doubleValue(); + public Integer getFrequencyVal() { + return this.frequency == null ? 0 : this.frequency.intValue(); } - public Double getLcWidthVal() { - return this.lcWidth == null ? 0 : this.lcWidth.doubleValue(); + + public Integer getLcLengthVal() { + return this.lcLength == null ? 0 : this.lcLength.intValue(); } - public Double getLcHeightVal() { - return this.lcHeight == null ? 0 : this.lcHeight.doubleValue(); + public Integer getLcWidthVal() { + return this.lcWidth == null ? 0 : this.lcWidth.intValue(); } - - public Integer getFrequencyVal() { - return this.frequency == null ? 0 : this.frequency.intValue(); + public Integer getLcHeightVal() { + return this.lcHeight == null ? 0 : this.lcHeight.intValue(); } public Integer getXVal() { diff --git a/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/bean/WmsZones.java b/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/bean/WmsZones.java index c00ff31..e11133a 100644 --- a/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/bean/WmsZones.java +++ b/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/bean/WmsZones.java @@ -103,15 +103,15 @@ public class WmsZones extends BaseBean { @DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER, isRequire = 2, entityName = "TRUE_OR_FALSE") private Integer checkFifo; - @Column(name = "ZONE_LENGTH", columnDefinition = "decimal(18,8)") + @Column(name = "ZONE_LENGTH") @ApiParam(value = "长") @DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER) - private Double zoneLength; + private Integer zoneLength; - @Column(name = "ZONE_WIDTH", columnDefinition = "decimal(18,8)") + @Column(name = "ZONE_WIDTH") @ApiParam(value = "宽") @DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER) - private Double zoneWidth; + private Integer zoneWidth; @Column(name = "POSITION") @ApiParam(value = "三维位置") @@ -133,10 +133,10 @@ public class WmsZones extends BaseBean { public WmsZones() { } - public double getZoneLengthVal() { - return this.zoneLength == null ? 0 : this.zoneLength.doubleValue(); + public Integer getZoneLengthVal() { + return this.zoneLength == null ? 0 : this.zoneLength.intValue(); } - public double getZoneWidthVal() { - return this.zoneWidth == null ? 0 : this.zoneWidth.doubleValue(); + public Integer getZoneWidthVal() { + return this.zoneWidth == null ? 0 : this.zoneWidth.intValue(); } }