自动化立体仓库 - WMS系统
lty
7 天以前 9d38f2354b3a7267a2486d937bb7d256fcb949c1
src/main/java/com/zy/asrs/entity/OrderDetl.java
@@ -62,21 +62,21 @@
    private Double qty;
    /**
     * 商品编码
     * 物料号
     */
    @ApiModelProperty(value= "商品编码")
    @ApiModelProperty(value= "物料号")
    private String matnr;
    /**
     * 商品名称
     * 物料号
     */
    @ApiModelProperty(value= "商品名称")
    @ApiModelProperty(value= "物料号")
    private String maktx;
    /**
     * 批号
     * 序列码
     */
    @ApiModelProperty(value= "批号")
    @ApiModelProperty(value= "序列码")
    private String batch;
    /**
@@ -86,9 +86,9 @@
    private String specs;
    /**
     * 型号
     * 批次
     */
    @ApiModelProperty(value= "型号")
    @ApiModelProperty(value= "批次")
    private String model;
    /**
@@ -122,9 +122,9 @@
    private String sku;
    /**
     * 单位量
     * 包数
     */
    @ApiModelProperty(value= "单位量")
    @ApiModelProperty(value= "包数")
    private Double units;
    /**
@@ -134,9 +134,9 @@
    private String barcode;
    /**
     * 产地
     * 物料状态
     */
    @ApiModelProperty(value= "产地")
    @ApiModelProperty(value= "物料状态")
    private String origin;
    /**
@@ -146,9 +146,9 @@
    private String manu;
    /**
     * 生产日期
     * 单据时间
     */
    @ApiModelProperty(value= "生产日期")
    @ApiModelProperty(value= "单据时间")
    @TableField("manu_date")
    private String manuDate;
@@ -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) {