From d8b7e1ccee37e96e71c9072e53bc6fc736cdad2a Mon Sep 17 00:00:00 2001
From: zwl <1051256694@qq.com>
Date: 星期五, 21 十一月 2025 17:45:53 +0800
Subject: [PATCH] 1.自动勾选
---
src/main/resources/mapper/asrs/LocDetlMapper.xml | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/src/main/resources/mapper/asrs/LocDetlMapper.xml b/src/main/resources/mapper/asrs/LocDetlMapper.xml
index e3a03e4..a953f3b 100644
--- a/src/main/resources/mapper/asrs/LocDetlMapper.xml
+++ b/src/main/resources/mapper/asrs/LocDetlMapper.xml
@@ -89,7 +89,7 @@
and a.loc_no like '%' + #{loc_no} + '%'
</if>
<if test="matnr!=null and matnr!='' ">
- and a.matnr like '%' + #{matnr} + '%'
+ and a.matnr = #{matnr}
</if>
<if test="zpallet!=null and zpallet!='' ">
and a.zpallet like '%' + #{zpallet} + '%'
@@ -102,6 +102,12 @@
</if>
<if test="batch!=null and batch!='' ">
and a.batch like '%' + #{batch} + '%'
+ </if>
+ <if test="brand!=null and brand!=''">
+ and a.brand in
+ <foreach collection="brand.split(',')" item="item" open="(" close=")" separator=",">
+ #{item}
+ </foreach>
</if>
<if test="startTime!=null and endTime!=null">
and a.modi_time between #{startTime} and #{endTime}
@@ -123,6 +129,7 @@
and b.loc_sts = 'F'
<include refid="stockOutCondition"></include>
) t where t.row between ((#{pageNumber}-1)*#{pageSize}+1) and (#{pageNumber}*#{pageSize})
+ order by t.batch
</select>
<select id="getStockOutPageCount" parameterType="java.util.Map" resultType="java.lang.Integer">
--
Gitblit v1.9.1