自动化立体仓库 - WMS系统
zhou zhou
2025-11-24 ec981eb34a7cf0853f4fd5d5fe377ad485a96969
src/main/java/com/zy/asrs/entity/CheckOrderDetl.java
@@ -489,15 +489,15 @@
//            null    // [非空]
//    );
    public Double getDiffQty() {
        if (null == this.status || this.status == 1  ||  this.status == 0 ) {
            return 0D;
    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.doubleValue();
            return subtract;
        }
//        if (null != this.anfme && this.qty != null) {
//            return this.anfme - this.qty;