From 3d9e0ec1c1e457ed3fd2b334cf4c4dd66c10eead Mon Sep 17 00:00:00 2001
From: guoyujie <guoyujie@ng.com>
Date: 星期二, 23 十二月 2025 11:09:46 +0800
Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10101/r/ERP_override

---
 north-glass-erp/src/main/resources/mapper/pp/DamageDetails.xml |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/north-glass-erp/src/main/resources/mapper/pp/DamageDetails.xml b/north-glass-erp/src/main/resources/mapper/pp/DamageDetails.xml
index 6f8d0f5..ac4583a 100644
--- a/north-glass-erp/src/main/resources/mapper/pp/DamageDetails.xml
+++ b/north-glass-erp/src/main/resources/mapper/pp/DamageDetails.xml
@@ -17,6 +17,7 @@
     <if test="needOrderNumber!=null">
     and a.order_number = #{orderNumber}
     </if>
+    and a.available=0
     and a.technology_number =#{technologyNumber}
     and a.breakage_quantity>0
     and b.reviewed_state>=0
@@ -44,9 +45,10 @@
   <if test="orderNumber!= null || orderNumber!=''">
       and a.order_number = #{orderNumber}
   </if>
+    and a.available=0
     and a.technology_number = #{technologyNumber}
     and a.breakage_quantity>0
-    and c.review_status = 0
+    and ifnull(c.review_status,0) = 0
 
     </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.8.0