3D可视化仓库

yun-zuoyi
许心洁 5 years ago
parent 709db0b573
commit 7f161e3bae

@ -0,0 +1,23 @@
package cn.estsh.i3plus.pojo.model.wms;
import cn.estsh.i3plus.pojo.wms.bean.WmsLocate;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* @Description 3D-
* @Reference
* @Author dragon
* @CreateDate 2020/2/21 18:39
* @Modify
*/
@Data
public class WmsCsStatusModel implements Serializable {
private static final long serialVersionUID = 1321068307797279909L;
private List<WmsLocate> noInventoryLocateList;
private List<WmsLocate> factTransLocateList;
}

@ -0,0 +1,24 @@
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 3DMoDel
* @Reference
* @Author dragon
* @CreateDate 2019/10/18 1:18
* @Modify
*/
@Data
public class WmsThreeDimenZoneModel implements Serializable {
private static final long serialVersionUID = -5490167040159056107L;
private WmsZones wmsZones;
private List<WmsFurniture> furnitureList;
private List<WmsLocate> locateList;
}

@ -43,8 +43,29 @@ public class WareHouse extends BaseBean {
@ApiParam("仓库地址")
public String address;
@Column(name = "WH_LENGTH", columnDefinition = "decimal(18,8)")
@ApiParam(value = "长")
private Double whLength;
@Column(name = "WH_WIDTH", columnDefinition = "decimal(18,8)")
@ApiParam(value = "宽")
private Double whWidth;
@Column(name = "WH_HEIGHT", columnDefinition = "decimal(18,8)")
@ApiParam(value = "高")
private Double whHeight;
@Transient
@ApiParam(value ="存储区列表")
private List<WmsZones> zoneList;
public double getWhLengthVal() {
return this.whLength == null ? 0 : this.whLength.doubleValue();
}
public double getWhWidthVal() {
return this.whWidth == null ? 0 : this.whWidth.doubleValue();
}
public double getWhHeightVal() {
return this.whHeight == null ? 0 : this.whHeight.doubleValue();
}
}

@ -0,0 +1,55 @@
package cn.estsh.i3plus.pojo.wms.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
/**
* @Description
* @Reference
* @Author dragon
* @CreateDate 2020/2/20 10:42
* @Modify
*/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "WMS_FURNITURE")
@Api("家具表")
public class WmsFurniture extends BaseBean {
private static final long serialVersionUID = -8428899843794155828L;
@Column(name = "WH_NO")
@ApiParam(value = "仓库代码")
private String whNo;
@Column(name = "ZONE_NO")
@ApiParam(value = "存储区代码")
private String zoneNo;
@Column(name = "TYPE_CODE")
@ApiParam(value = "家具类型编号")
private String typeCode;
@Column(name = "FURNITURE_NO")
@ApiParam(value = "家具代码")
private String furnitureNo;
@Column(name = "IS_SAVE_GOODS")
@ApiParam(value = "是否储物")
private Integer isSaveGoods;
public int getIsSaveGoodsVal() {
return this.isSaveGoods == null ? 0 : this.isSaveGoods;
}
}

@ -0,0 +1,74 @@
package cn.estsh.i3plus.pojo.wms.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
/**
* @Description
* @Reference
* @Author dragon
* @CreateDate 2020/2/20 10:42
* @Modify
*/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "WMS_FURNITURE_TYPE")
@Api("家具类型表")
public class WmsFurnitureType extends BaseBean {
private static final long serialVersionUID = 3573734032905328327L;
@Column(name = "TYPE_CODE")
@ApiParam(value = "类型编号")
private String typeCode;
@Column(name = "TYPE_NAME")
@ApiParam(value = "类型名称")
private String typeName;
@Column(name = "FNT_LENGTH", columnDefinition = "decimal(18,8)")
@ApiParam(value = "长")
private Double fntLength;
@Column(name = "FNT_WIDTH", columnDefinition = "decimal(18,8)")
@ApiParam(value = "宽")
private Double fntWidth;
@Column(name = "FNT_HEIGHT", columnDefinition = "decimal(18,8)")
@ApiParam(value = "高")
private Double fntHeight;
@Column(name = "STOREY")
@ApiParam(value = "层")
private Integer storey;
@Column(name = "FNT_COL")
@ApiParam(value = "列")
private Integer fntCol;
@Column(name = "IS_SAVE_GOODS")
@ApiParam(value = "是否储物")
private Integer isSaveGoods;
public Double getFntLengthVal() {
return this.fntLength == null ? 0 : this.fntLength.doubleValue();
}
public Double getFntWidthVal() {
return this.fntWidth == null ? 0 : this.fntWidth.doubleValue();
}
public Double getFntHeightVal() {
return this.fntHeight == null ? 0 : this.fntHeight.doubleValue();
}
}

@ -53,6 +53,10 @@ public class WmsLocate extends BaseBean {
@ApiParam(value = "存储区代码")
private String zoneNo;
@Column(name = "FURNITURE_NO")
@ApiParam(value = "家具代码")
private String furnitureNo;
@Column(name = "X")
@ApiParam(value = "X", example = "-1")
private Integer x;
@ -65,6 +69,18 @@ public class WmsLocate extends BaseBean {
@ApiParam(value = "Z", example = "-1")
private Integer z;
@Column(name = "LC_LENGTH", columnDefinition = "decimal(18,8)")
@ApiParam(value = "长")
private Double lcLength;
@Column(name = "LC_WIDTH", columnDefinition = "decimal(18,8)")
@ApiParam(value = "宽")
private Double lcWidth;
@Column(name = "LC_HEIGHT", columnDefinition = "decimal(18,8)")
@ApiParam(value = "高")
private Double lcHeight;
@Column(name = "SEQ")
@ApiParam(value = "序号", example = "-1")
private Integer seq;
@ -126,6 +142,18 @@ public class WmsLocate extends BaseBean {
@ApiParam(value = "末次盘点结束时间")
private String lastCsTimeEnd;
@Transient
@ApiParam(value = "库位数组集")
private String[] locateNoArr;
@Transient
@ApiParam(value = "移动频次")
private Integer frequency;
@Transient
@ApiParam(value = "库龄")
private String age;
public WmsLocate() {
}
@ -139,6 +167,33 @@ public class WmsLocate extends BaseBean {
this.partQty=partQty;
this.locateNo=locateNo;
}
public WmsLocate(String locateNo,Integer frequency,String organizeCode,
String whNo,String zoneNo,String furnitureNo,
Integer x,Integer y,Integer z){
this.locateNo=locateNo;
this.frequency=frequency;
this.organizeCode=organizeCode;
this.whNo=whNo;
this.zoneNo=zoneNo;
this.furnitureNo=furnitureNo;
this.x=x;
this.y=y;
this.z=z;
}
public WmsLocate(String locateNo,String age,String organizeCode,
String whNo,String zoneNo,String furnitureNo,
Integer x,Integer y,Integer z){
this.locateNo=locateNo;
this.age=age;
this.organizeCode=organizeCode;
this.whNo=whNo;
this.zoneNo=zoneNo;
this.furnitureNo=furnitureNo;
this.x=x;
this.y=y;
this.z=z;
}
public Integer getMaxPackageQty() {
return this.maxPackageQty == null ? 0 : this.maxPackageQty.intValue();
}
@ -158,4 +213,20 @@ public class WmsLocate extends BaseBean {
public Integer getLocateType() {
return this.locateType== null ? 0 : this.locateType.intValue();
}
public Double getLcLengthVal() {
return this.lcLength == null ? 0 : this.lcLength.doubleValue();
}
public Double getLcWidthVal() {
return this.lcWidth == null ? 0 : this.lcWidth.doubleValue();
}
public Double getLcHeightVal() {
return this.lcHeight == null ? 0 : this.lcHeight.doubleValue();
}
public Integer getFrequencyVal() {
return this.frequency == null ? 0 : this.frequency.intValue();
}
}

@ -87,6 +87,14 @@ public class WmsZones extends BaseBean {
@ApiParam(value = "校验先进先出", example = "1")
private Integer checkFifo;
@Column(name = "ZONE_LENGTH", columnDefinition = "decimal(18,8)")
@ApiParam(value = "长")
private Double zoneLength;
@Column(name = "ZONE_WIDTH", columnDefinition = "decimal(18,8)")
@ApiParam(value = "宽")
private Double zoneWidth;
@Transient
@ApiParam(value = "子存储区列表")
private List<WmsZones> childList;
@ -100,6 +108,13 @@ public class WmsZones extends BaseBean {
this.areaNo = areaNo;
}
public WmsZones(){}
public WmsZones() {
}
public double getZoneLengthVal() {
return this.zoneLength == null ? 0 : this.zoneLength.doubleValue();
}
public double getZoneWidthVal() {
return this.zoneWidth == null ? 0 : this.zoneWidth.doubleValue();
}
}

@ -0,0 +1,16 @@
package cn.estsh.i3plus.pojo.wms.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.wms.bean.WmsFurniture;
import org.springframework.stereotype.Repository;
/**
* @Description DAO
* @Reference
* @Author dragon
* @CreateDate 2020/2/20 10:56
* @Modify
*/
@Repository
public interface WmsFurnitureRepository extends BaseRepository<WmsFurniture, Long> {
}

@ -0,0 +1,16 @@
package cn.estsh.i3plus.pojo.wms.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.wms.bean.WmsFurnitureType;
import org.springframework.stereotype.Repository;
/**
* @Description DAO
* @Reference
* @Author dragon
* @CreateDate 2020/2/20 10:56
* @Modify
*/
@Repository
public interface WmsFurnitureTypeRepository extends BaseRepository<WmsFurnitureType, Long> {
}

@ -543,6 +543,9 @@ public class WmsHqlPack {
if (wmsLocate.getZoneNo() != null) {
DdlPreparedPack.getInPack(StringUtils.join(new ArrayList<String>(Arrays.asList(wmsLocate.getZoneNo().split(","))), ","), "", result);
}
if (wmsLocate.getLocateNoArr() != null) {
DdlPreparedPack.getInPack(StringUtils.join(wmsLocate.getLocateNoArr()), "", result);
}
// DdlPreparedPack.getStringEqualPack(wmsLocate.getZoneNo(), "zoneNo", result);
DdlPreparedPack.getNumEqualPack(wmsLocate.getStatus(), "status", result);

Loading…
Cancel
Save