From a4cfd6abc3e46cfff3170b9bd8d00a29e7c866c7 Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期一, 15 九月 2025 09:04:24 +0800
Subject: [PATCH] #
---
src/main/resources/mapper/LocMastMapper.xml | 21 ++++++++++++++++++---
1 files changed, 18 insertions(+), 3 deletions(-)
diff --git a/src/main/resources/mapper/LocMastMapper.xml b/src/main/resources/mapper/LocMastMapper.xml
index 62d7864..c8be3ea 100644
--- a/src/main/resources/mapper/LocMastMapper.xml
+++ b/src/main/resources/mapper/LocMastMapper.xml
@@ -33,7 +33,6 @@
<result column="inv_wh" property="invWh" />
<result column="mk" property="mk" />
<result column="barcode" property="barcode" />
- <result column="Pdc_type" property="PdcType" />
<result column="ctn_no" property="ctnNo" />
</resultMap>
@@ -46,12 +45,18 @@
<if test="locType1 != null">
and loc_type1 = #{locType1}
</if>
- order by loc_sts desc ,lev1 asc,bay1 asc
+ order by NEWID(),lev1 asc,bay1 asc
</select>
<select id="queryDemoSourceLoc" resultMap="BaseResultMap">
- select top 1 * from asr_loc_mast where crn_no = #{crnNo} and (loc_sts='F' or loc_sts='D')
+ select top 1 * from asr_loc_mast where crn_no = #{crnNo}
+ and loc_sts='D'
ORDER BY NEWID()
+ </select>
+
+ <select id="queryDemoSourceLoc1" resultMap="BaseResultMap">
+ select top 1 * from asr_loc_mast where crn_no = #{crnNo}
+ and loc_sts='D'
</select>
<select id="queryDemoLoc" resultMap="BaseResultMap">
@@ -59,4 +64,14 @@
ORDER BY NEWID()
</select>
+ <select id="queryDemoLoc0" resultMap="BaseResultMap">
+ select top 1 * from asr_loc_mast where crn_no = #{crnNo} and loc_sts = 'O' and loc_type1 = #{locType1}
+ ORDER BY NEWID()
+ </select>
+
+ <select id="queryDemoLoc2" resultMap="BaseResultMap">
+ select top 1 * from asr_loc_mast where crn_no = #{crnNo} and loc_sts = 'O' and loc_type1 = #{locType1}
+ and ctn_kind=0
+ ORDER BY bay1,row1,lev1
+ </select>
</mapper>
--
Gitblit v1.9.1