自动化立体仓库 - WMS系统
zhou zhou
1 天以前 4e32eae9008b56a346f52710d86241890a0ae1a7
src/main/java/com/zy/asrs/entity/CheckOrderDetl.java
@@ -69,7 +69,8 @@
    private BigDecimal anfme;
    @ApiModelProperty(value= "")
    private BigDecimal qty;
    @TableField("diff_qty")
    private BigDecimal diffQty;
    /**
     * 商品编码
@@ -257,7 +258,7 @@
    /**
     * 状态 1: 未生成  0: 禁用  2:待盘  3:已盘
     */
    @ApiModelProperty(value= "状态 1: 未生成  0: 禁用  2:待盘  3:已盘")
    @ApiModelProperty(value= "状态 1: 未生成  0: 禁用  2:待盘  3:已盘  4:待调整 5:已调整")
    private Integer status;
    /**
@@ -389,11 +390,11 @@
    public CheckOrderDetl() {}
    public CheckOrderDetl(Long orderId,String orderNo,BigDecimal anfme,BigDecimal 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 manLength,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,BigDecimal workQty,String qrCode,Date startDate,Date endDate,Integer pakinPakoutStatus,Long lineNumber,String locNo,Long version) {
    public CheckOrderDetl(Long orderId,String orderNo,BigDecimal anfme,BigDecimal diffQty,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 manLength,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,BigDecimal workQty,String qrCode,Date startDate,Date endDate,Integer pakinPakoutStatus,Long lineNumber,String locNo,Long version) {
        this.orderId = orderId;
        this.orderNo = orderNo;
        this.anfme = anfme;
        this.qty = qty;
        this.diffQty = diffQty;
        this.matnr = matnr;
        this.maktx = maktx;
        this.batch = batch;
@@ -489,21 +490,6 @@
//            null    // [非空]
//    );
    public BigDecimal getDiffQty() {
        if (null == this.status || this.status == 1  ||  this.status == 0 ||  this.status == 2) {
            return BigDecimal.ZERO;
        }
        if (null != this.anfme && this.workQty != null) {
            BigDecimal subtract = new BigDecimal(this.workQty.toString()).subtract(new BigDecimal(this.anfme.toString()));
            return subtract;
        }
//        if (null != this.anfme && this.qty != null) {
//            return this.anfme - this.qty;
//        }
        return null;
    }
    public String getOrderId$(){
        OrderService service = SpringUtils.getBean(OrderService.class);
@@ -575,6 +561,10 @@
                return "待盘";
            case 3:
                return "已盘";
            case 4:
                return "待调整";
            case 5:
                return "已调整";
            default:
                return String.valueOf(this.status);
        }