Merge branch 'dev' of gragon.xu/i3plus-pojo into dev

yun-zuoyi
曾贞一 5 years ago committed by nancy.li
commit f16ac4a1d2

@ -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<WmsZones> wmsZonesList;
private List<WmsFurniture> wmsFurnitureList;
private List<WmsLocate> wmsLocateList;
}

@ -48,32 +48,43 @@ public class WareHouse extends BaseBean {
@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 = "存储区列表")
private List<WmsZones> 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();
}
}

@ -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;
public int getIsSaveGoodsVal() {
@Column(name = "POSITION")
@ApiParam(value = "三维位置")
private String position;
@Transient
@ApiParam(value = "层")
private Integer storey;
@Transient
@ApiParam(value = "列")
private Integer fntCol;
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;
}
public Integer getIsSaveGoodsVal() {
return this.isSaveGoods == null ? 0 : this.isSaveGoods;
}
}

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

@ -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")
@ -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")
@ -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
@ -240,18 +244,28 @@ 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 Integer getLcLengthVal() {
return this.lcLength == null ? 0 : this.lcLength.intValue();
}
public Double getLcWidthVal() {
return this.lcWidth == null ? 0 : this.lcWidth.doubleValue();
public Integer getLcWidthVal() {
return this.lcWidth == null ? 0 : this.lcWidth.intValue();
}
public Double getLcHeightVal() {
return this.lcHeight == null ? 0 : this.lcHeight.doubleValue();
public Integer getLcHeightVal() {
return this.lcHeight == null ? 0 : this.lcHeight.intValue();
}
public Integer getFrequencyVal() {
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();
}

@ -103,15 +103,19 @@ 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 = "三维位置")
private String position;
@Transient
@ApiParam(value = "子存储区列表")
@ -129,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();
}
}

@ -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<String>(Arrays.asList(wmsLocate.getZoneNo().split(","))), ","), "", result);
DdlPreparedPack.getInPack(StringUtils.join(new ArrayList<String>(Arrays.asList(wmsLocate.getZoneNo().split(","))), ","), "zoneNo", result);
}
if (wmsLocate.getLocateNoArr() != null) {
DdlPreparedPack.getInPack(StringUtils.join(wmsLocate.getLocateNoArr()), "", result);

Loading…
Cancel
Save