From a1db2ea6ccdafdffdf2ed4e52844179e72dc77a5 Mon Sep 17 00:00:00 2001
From: lty <876263681@qq.com>
Date: 星期二, 20 一月 2026 10:25:09 +0800
Subject: [PATCH] #

---
 src/main/resources/mapper/LocDetlMapper.xml |   19 +++++++++++++++++--
 1 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/src/main/resources/mapper/LocDetlMapper.xml b/src/main/resources/mapper/LocDetlMapper.xml
index 4b0009d..3df9079 100644
--- a/src/main/resources/mapper/LocDetlMapper.xml
+++ b/src/main/resources/mapper/LocDetlMapper.xml
@@ -66,6 +66,12 @@
         <include refid="batchSeq"></include>
     </select>
 
+    <select id="selectItemByLocNo" resultMap="BaseResultMap">
+        select *
+        from asr_loc_detl
+        where loc_no = #{locNo}
+    </select>
+
     <delete id="deleteItem">
         delete from asr_loc_detl
         where 1=1
@@ -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 appe_time
     </select>
 
     <select id="getStockOutPageCount" parameterType="java.util.Map" resultType="java.lang.Integer">
@@ -336,8 +343,8 @@
         INNER JOIN man_mat b ON a.matnr=#{matnrOld} AND b.matnr=#{matnr};
     </update>
 
-    <select id="selectSameDetlTodayBatch" resultType="java.lang.String">
-        SELECT ld.loc_no FROM asr_loc_detl ld
+    <select id="selectSameDetlTodayBatch" resultMap="BaseResultMap">
+        SELECT * FROM asr_loc_detl ld
         LEFT JOIN asr_loc_mast lm ON ld.loc_no = lm.loc_no
         WHERE 1 = 1
         AND ld.matnr = #{matnr}
@@ -402,4 +409,12 @@
         order by row1
     </select>
 
+    <select id="getSameDetlList" resultType="java.lang.String">
+        select ld.loc_no from asr_loc_detl as ld
+        left join asr_loc_mast as lm on ld.loc_no = lm.loc_no
+        where 1 = 1
+        and ld.matnr = #{matnr}
+        and lm.loc_sts = 'F'
+        order by ld.appe_time asc
+    </select>
 </mapper>

--
Gitblit v1.9.1