自动化立体仓库 - WMS系统
zhou zhou
10 小时以前 64d6948806c3dd7d657c359354212fa3eadfaa8e
src/main/java/com/zy/asrs/entity/CheckOrderDetl.java
@@ -50,6 +50,11 @@
    @TableField("order_id")
    private Long orderId;
    @ApiModelProperty(value= "库存明细id")
    @TableField("loc_detl_id")
    private Long locDetlId;
    /**
     * 单据编号
     */
@@ -250,7 +255,7 @@
    private Integer danger;
    /**
     * 状态 1: 正常  0: 禁用
     * 状态 1: 未生成  0: 禁用  2:待盘  3:已盘
     */
    @ApiModelProperty(value= "状态 1: 未生成  0: 禁用  2:待盘  3:已盘")
    private Integer status;
@@ -484,15 +489,15 @@
//            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;