From 58b23d18daa51a9837306fb0a8c03285fbd80e99 Mon Sep 17 00:00:00 2001
From: 1 <1>
Date: 星期一, 08 十二月 2025 09:16:49 +0800
Subject: [PATCH] #
---
src/main/resources/mapper/LocDetlMapper.xml | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
diff --git a/src/main/resources/mapper/LocDetlMapper.xml b/src/main/resources/mapper/LocDetlMapper.xml
index 958190a..51690b8 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>
@@ -342,6 +348,12 @@
<if test="specs!=null and specs!='' ">
and a.specs like '%' + #{specs} + '%'
</if>
+ <if test="standby1!=null and standby1!='' ">
+ and a.standby1 like '%' + #{standby1} + '%'
+ </if>
+ <if test="standby2!=null and standby2!='' ">
+ and a.standby2 like '%' + #{standby2} + '%'
+ </if>
</sql>
<select id="getStockOutPage" resultMap="BaseResultMap">
@@ -375,11 +387,13 @@
ROW_NUMBER() over (order by sum(a.anfme) desc) as row
, a.matnr
, a.batch
+ , a.standby1
+ , a.standby2
, sum(a.anfme) as anfme
from asr_loc_detl a
where 1=1
<include refid="stockOutCondition"></include>
- group by a.matnr, a.batch
+ group by a.matnr, a.batch, a.standby1, a.standby2
) t where t.row between ((#{pageNumber}-1)*#{pageSize}+1) and (#{pageNumber}*#{pageSize})
</select>
--
Gitblit v1.9.1