| | |
| | | private Integer danger; |
| | | |
| | | /** |
| | | * 状态 1: 正常 0: 禁用 |
| | | * 状态 1: 未生成 0: 禁用 2:待盘 3:已盘 |
| | | */ |
| | | @ApiModelProperty(value= "状态 1: 未生成 0: 禁用 2:待盘 3:已盘") |
| | | private Integer status; |
| | |
| | | // null // [非空] |
| | | // ); |
| | | |
| | | public Double getDiffQty() { |
| | | public BigDecimal getDiffQty() { |
| | | if (null == this.status || this.status == 1 || this.status == 0 ) { |
| | | return 0D; |
| | | return BigDecimal.ZERO; |
| | | } |
| | | if (null != this.anfme && this.workQty != null) { |
| | | |
| | | BigDecimal subtract = new BigDecimal(this.anfme.toString()).subtract(new BigDecimal(this.workQty.toString())); |
| | | BigDecimal subtract = new BigDecimal(this.workQty.toString()).subtract(new BigDecimal(this.anfme.toString())); |
| | | |
| | | return subtract.doubleValue(); |
| | | return subtract; |
| | | } |
| | | // if (null != this.anfme && this.qty != null) { |
| | | // return this.anfme - this.qty; |