From 7deaef70a6d20a7f1fb86b3af3d58ad76135bc20 Mon Sep 17 00:00:00 2001
From: zhangchao <zc857179121@qq.com>
Date: 星期三, 28 八月 2024 10:27:42 +0800
Subject: [PATCH] 配置

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

diff --git a/src/main/resources/mapper/LocDetlMapper.xml b/src/main/resources/mapper/LocDetlMapper.xml
index 8e6b7de..b12be7f 100644
--- a/src/main/resources/mapper/LocDetlMapper.xml
+++ b/src/main/resources/mapper/LocDetlMapper.xml
@@ -64,6 +64,7 @@
         where 1=1
         and loc_no = #{locNo}
         and matnr = #{matnr}
+        and (batch IS NULL OR batch = '')
         <choose>
             <when test="suppCode != null and suppCode != ''">
                 and supp_code = #{suppCode}
@@ -180,9 +181,12 @@
         ROW_NUMBER() over (order by sum(a.anfme) desc) as row
         , a.matnr
         , sum(a.anfme) as anfme
+        , a.maktx
+        , a.specs
+        , model
         from asr_loc_detl a
         where 1=1
-        group by a.matnr
+        group by a.matnr,a.maktx,a.specs,model
     </select>
 
     <select id="selectPakoutByRule" resultMap="BaseResultMap">

--
Gitblit v1.9.1