Merge branch 'test' of http://git.estsh.com/i3-IMPP/i3plus-pojo into ext-dev

yun-zuoyi
puxiao.liao 4 years ago
commit 43c3f3ffa0

@ -8,8 +8,10 @@ import cn.estsh.i3plus.pojo.base.enumutil.WmsEnumUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.ColumnDefault;
import org.hibernate.annotations.DynamicInsert;
@ -195,11 +197,22 @@ dataSrc ="cn.estsh.i3plus.pojo.wms.bean.WmsLocate",
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.TEXT, isRequire = 2)
private String bomVersion;
@ApiParam(value = "待出库数量", example = "0")
@ApiParam(value = "源库位余额")
@ColumnDefault("0")
@Column(name = "SRC_LOCATE_REST_QTY", columnDefinition = "decimal(18,8)")
private Double srcLocateRestQty = 0D;
@ApiParam(value = "目标库位余额")
@ColumnDefault("0")
@Column(name = "DEST_LOCATE_REST_QTY", columnDefinition = "decimal(18,8)")
private Double destLocateRestQty = 0D;
@ApiParam(value = "待出库数量")
@Transient
private Long waitingCounts;
@ApiParam(value = "已出库数量", example = "0")
@ApiParam(value = "已出库数量")
@Transient
private Long finishedCounts;
@ -371,6 +384,7 @@ dataSrc ="cn.estsh.i3plus.pojo.wms.bean.WmsLocate",
public Double getTransQty() {
return this.transQty == null ? 0 : this.transQty.doubleValue();
}
public Double getHandledQtyVal() {
return this.handledQty == null ? 0 : this.handledQty.doubleValue();
}

@ -4,8 +4,10 @@ import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.ColumnDefault;
import org.hibernate.annotations.DynamicInsert;
@ -190,6 +192,11 @@ public class WmsStockQuan extends BaseBean {
return areaNo;
}
public Double getTotalQty() {
return this.getQtyVal() + this.getFailQtyVal()+ this.getHoldQtyVal()+ this.getQcQtyVal()
+ this.getRinQtyVal()+ this.getFreezeQtyVal()+ this.getConsignQtyVal()+ this.getScrapQtyVal();
}
public Double getQtyVal() {
return this.qty == null ? 0 : this.qty;
}
@ -295,6 +302,7 @@ public class WmsStockQuan extends BaseBean {
this.prodCfgTypeName = prodCfgTypeName;
this.scrapQty = scrapQty;
}
public WmsStockQuan(Double qty, Double failQty, Double holdQty, Double qcQty, Double rinQty, Double freezeQty, Double consignQty, Double lockQty, Double scrapQty) {
this.qty = qty;
this.failQty = failQty;
@ -378,6 +386,7 @@ public class WmsStockQuan extends BaseBean {
this.partNameRdd = partNameRdd;
this.qty = qty;
}
public WmsStockQuan(String whNo, String zoneNo, String locateNo, String partNo, String partNameRdd) {
this.whNo = whNo;
this.zoneNo = zoneNo;

Loading…
Cancel
Save