| | |
| | | private BigDecimal anfme; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | private BigDecimal qty; |
| | | @TableField("diff_qty") |
| | | private BigDecimal diffQty; |
| | | |
| | | /** |
| | | * 商品编码 |
| | |
| | | private Integer danger; |
| | | |
| | | /** |
| | | * 状态 1: 正常 0: 禁用 |
| | | * 状态 1: 未生成 0: 禁用 2:待盘 3:已盘 |
| | | */ |
| | | @ApiModelProperty(value= "状态 1: 未生成 0: 禁用 2:待盘 3:已盘") |
| | | @ApiModelProperty(value= "状态 1: 未生成 0: 禁用 2:待盘 3:已盘 4:待调整 5:已调整") |
| | | private Integer status; |
| | | |
| | | /** |
| | |
| | | |
| | | 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; |
| | |
| | | // null // [非空] |
| | | // ); |
| | | |
| | | public Double getDiffQty() { |
| | | if (null == this.status || this.status == 1 || this.status == 0 ) { |
| | | return 0D; |
| | | } |
| | | if (null != this.anfme && this.workQty != null) { |
| | | |
| | | BigDecimal subtract = new BigDecimal(this.anfme.toString()).subtract(new BigDecimal(this.workQty.toString())); |
| | | |
| | | return subtract.doubleValue(); |
| | | } |
| | | // if (null != this.anfme && this.qty != null) { |
| | | // return this.anfme - this.qty; |
| | | // } |
| | | return null; |
| | | } |
| | | |
| | | public String getOrderId$(){ |
| | | OrderService service = SpringUtils.getBean(OrderService.class); |
| | |
| | | return "待盘"; |
| | | case 3: |
| | | return "已盘"; |
| | | case 4: |
| | | return "待调整"; |
| | | case 5: |
| | | return "已调整"; |
| | | default: |
| | | return String.valueOf(this.status); |
| | | } |