|
|
|
@ -9,7 +9,11 @@ import org.hibernate.annotations.ColumnDefault;
|
|
|
|
|
import org.hibernate.annotations.DynamicInsert;
|
|
|
|
|
import org.hibernate.annotations.DynamicUpdate;
|
|
|
|
|
|
|
|
|
|
import javax.persistence.*;
|
|
|
|
|
import javax.persistence.Column;
|
|
|
|
|
import javax.persistence.Entity;
|
|
|
|
|
import javax.persistence.Index;
|
|
|
|
|
import javax.persistence.Table;
|
|
|
|
|
import javax.persistence.Transient;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -154,6 +158,12 @@ public class WmsStockQuan extends BaseBean {
|
|
|
|
|
@Transient
|
|
|
|
|
private Integer isSnapshot;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Transient
|
|
|
|
|
@ApiParam(value = "应有数量")
|
|
|
|
|
private Double theoryQty;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Integer getIsSnapshot() {
|
|
|
|
|
return this.isSnapshot == null ? 0 : this.isSnapshot;
|
|
|
|
|
}
|
|
|
|
@ -229,11 +239,34 @@ public class WmsStockQuan extends BaseBean {
|
|
|
|
|
this.freezeQty = freezeQty;
|
|
|
|
|
this.consignQty = consignQty;
|
|
|
|
|
this.lockQty = lockQty;
|
|
|
|
|
this.sumQty = sumQty;
|
|
|
|
|
this.prodCfgTypeCode = prodCfgTypeCode;
|
|
|
|
|
this.prodCfgTypeName = prodCfgTypeName;
|
|
|
|
|
this.scrapQty = scrapQty;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public WmsStockQuan(String organizeCode, String whNo, String zoneNo, String unit, String partNo, String partName,
|
|
|
|
|
Double qty, Double failQty, Double holdQty, Double qcQty, Double rinQty, Double freezeQty,
|
|
|
|
|
Double consignQty, Double lockQty, Double sumQty, String prodCfgTypeCode, String prodCfgTypeName, Double scrapQty) {
|
|
|
|
|
this.organizeCode = organizeCode;
|
|
|
|
|
this.whNo = whNo;
|
|
|
|
|
this.zoneNo = zoneNo;
|
|
|
|
|
this.unit = unit;
|
|
|
|
|
this.partNo = partNo;
|
|
|
|
|
this.partNameRdd = partName;
|
|
|
|
|
this.qty = qty;
|
|
|
|
|
this.failQty = failQty;
|
|
|
|
|
this.holdQty = holdQty;
|
|
|
|
|
this.qcQty = qcQty;
|
|
|
|
|
this.rinQty = rinQty;
|
|
|
|
|
this.freezeQty = freezeQty;
|
|
|
|
|
this.consignQty = consignQty;
|
|
|
|
|
this.lockQty = lockQty;
|
|
|
|
|
this.sumQty = sumQty;
|
|
|
|
|
this.prodCfgTypeCode = prodCfgTypeCode;
|
|
|
|
|
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;
|
|
|
|
|