自动化立体仓库 - WMS系统
lty
8 天以前 9d38f2354b3a7267a2486d937bb7d256fcb949c1
src/main/java/com/zy/asrs/entity/OrderDetl.java
@@ -62,9 +62,9 @@
    private Double qty;
    /**
     * 单据号
     * 物料号
     */
    @ApiModelProperty(value= "单据号")
    @ApiModelProperty(value= "物料号")
    private String matnr;
    /**
@@ -279,6 +279,18 @@
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    @ApiModelProperty(value= "生产日期")
    @TableField("proddate")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date proddate;
    @ApiModelProperty(value= "到期日期")
    @TableField("deadline")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date deadline;
    /**
     * 备注
     */
@@ -287,7 +299,7 @@
    public OrderDetl() {}
    public OrderDetl(Long orderId, String orderNo, Double anfme, Double qty, String matnr, String maktx, String batch, String specs, String model, String color, String brand, String unit, Double price, String sku, Double units, String barcode, String origin, String manu, String manuDate, String itemNum, Double safeQty, Double weight, Double length, Double volume, String threeCode, String supp, String suppCode, Integer beBatch, String deadTime, Integer deadWarn, Integer source, Integer inspect, Integer danger, Integer status, Long createBy, Date createTime, Long updateBy, Date updateTime, String memo) {
    public OrderDetl(Long orderId, String orderNo, Double anfme, Double qty, String matnr, String maktx, String batch, String specs, String model, String color, String brand, String unit, Double price, String sku, Double units, String barcode, String origin, String manu, String manuDate, String itemNum, Double safeQty, Double weight, Double length, Double volume, String threeCode, String supp, String suppCode, Integer beBatch, String deadTime, Integer deadWarn, Integer source, Integer inspect, Integer danger, Integer status, Long createBy, Date createTime, Long updateBy, Date updateTime, String memo,Date proddate, Date deadline) {
        this.orderId = orderId;
        this.orderNo = orderNo;
        this.anfme = anfme;
@@ -327,6 +339,8 @@
        this.updateBy = updateBy;
        this.updateTime = updateTime;
        this.memo = memo;
        this.proddate = proddate;
        this.deadline = deadline;
    }
    public String getOrderId$(){
@@ -432,11 +446,29 @@
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime);
    }
    public Double getEnableQty() {
        if (null != this.anfme && this.qty != null) {
            return this.anfme - this.qty;
    public String getProddate$(){
        if (Cools.isEmpty(this.proddate)){
            return "";
        }
        return null;
        return new SimpleDateFormat("yyyy-MM-dd").format(this.proddate);
    }
    public String getDeadline$(){
        if (Cools.isEmpty(this.deadline)){
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd").format(this.deadline);
    }
    public Double getEnableQty() {
        Double enableQty = null;
        if (null != this.anfme && this.qty != null) {
            enableQty = this.anfme - this.qty;
            if (enableQty < 0) {
                enableQty = 0.0D;
            }
//            return this.anfme - this.qty;
        }
        return enableQty;
    }
    public void sync(Object source) {