From b06233aa71b70f7a30ff382ae1ba19c29b134d7c Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期五, 28 十一月 2025 15:41:51 +0800
Subject: [PATCH] #库存调整完成

---
 src/main/java/com/zy/asrs/entity/LocDetl.java |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/zy/asrs/entity/LocDetl.java b/src/main/java/com/zy/asrs/entity/LocDetl.java
index 0a63eff..12178a7 100644
--- a/src/main/java/com/zy/asrs/entity/LocDetl.java
+++ b/src/main/java/com/zy/asrs/entity/LocDetl.java
@@ -246,9 +246,12 @@
 
 
     public BigDecimal getBookQty() {
-        if (diffQty.compareTo(BigDecimal.ZERO) == 0 || diffQty.compareTo(BigDecimal.ZERO) > 0) {
-            return new  BigDecimal(anfme.toString());
 
+        if (diffQty.compareTo(BigDecimal.ZERO) == 0 ) {
+            return BigDecimal.ZERO;
+        }
+        if ( diffQty.compareTo(BigDecimal.ZERO) > 0) {
+            return new  BigDecimal(anfme.toString());
         }
         return new BigDecimal(anfme.toString()).subtract(diffQty);
     }

--
Gitblit v1.9.1