From 323d014b95241cd42dfa01227dd4a15575f58a2b Mon Sep 17 00:00:00 2001
From: zhang <zc857179121@qq.com>
Date: 星期二, 16 九月 2025 11:01:33 +0800
Subject: [PATCH] 1

---
 src/main/resources/mapper/OrderDetlMapper.xml |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main/resources/mapper/OrderDetlMapper.xml b/src/main/resources/mapper/OrderDetlMapper.xml
index e42a436..62d230b 100644
--- a/src/main/resources/mapper/OrderDetlMapper.xml
+++ b/src/main/resources/mapper/OrderDetlMapper.xml
@@ -345,12 +345,12 @@
         <include refid="pakOutPageCondition"></include>
     </select>
 
-    <select id="getReportDetl" resultMap="BaseResultMap">
+    <select id="getReportDetl" resultType="String">
         select DISTINCT o.order_no
         from man_order_detl d
-                 join man_order o on d.id = d.order_id
+                 join man_order o on o.id = d.order_id
         where o.doc_type = #{docType}
-          and d.qty > d.report_qty
+          and d.qty > ISNULL(d.report_qty, 0)
           and d.qty > 0
     </select>
 

--
Gitblit v1.9.1