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