From e86267955cdfb66abd8e807f0a9cd76d61680a84 Mon Sep 17 00:00:00 2001
From: dubin <bindu_bean@163.com>
Date: 星期三, 10 十二月 2025 14:13:58 +0800
Subject: [PATCH] 库存明细统计导出

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

diff --git a/src/main/resources/mapper/LocDetlMapper.xml b/src/main/resources/mapper/LocDetlMapper.xml
index 6b10d25..1d3839e 100644
--- a/src/main/resources/mapper/LocDetlMapper.xml
+++ b/src/main/resources/mapper/LocDetlMapper.xml
@@ -265,6 +265,12 @@
         <if test="payment != null">
             and t.payment = #{payment}
         </if>
+        <if test="sku != null">
+            and t.sku = #{sku}
+        </if>
+        <if test="supp != null">
+            and t.supp = #{supp}
+        </if>
 
     </sql>
 
@@ -408,9 +414,15 @@
         ROW_NUMBER() over (order by sum(a.anfme) desc) as row
         , a.matnr
         , sum(a.anfme) as anfme
+        , a.order_no as orderNo
+        , a.standby1
+        , a.standby2
+        , a.standby3
+        , a.box_type1 as boxType1
+        , a.box_type3 as boxType3
         from asr_loc_detl a
         where 1=1
-        group by a.matnr
+        group by a.matnr,a.order_no,a.box_type3,a.standby1,a.standby2,a.standby3,a.box_type1
     </select>
 
     <select id="selectPakoutByRule" resultMap="BaseResultMap">

--
Gitblit v1.9.1