From c5230926f49e72970787c3525fd313468e1ddf87 Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期二, 25 七月 2023 13:15:15 +0800
Subject: [PATCH] 捡料
---
src/main/resources/mapper/LocMastMapper.xml | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/LocMastMapper.xml b/src/main/resources/mapper/LocMastMapper.xml
index 7f46793..7191979 100644
--- a/src/main/resources/mapper/LocMastMapper.xml
+++ b/src/main/resources/mapper/LocMastMapper.xml
@@ -35,6 +35,7 @@
<result column="barcode" property="barcode" />
<result column="Pdc_type" property="PdcType" />
<result column="ctn_no" property="ctnNo" />
+ <result column="qr_code_value" property="qrCodeValue" />
</resultMap>
@@ -43,6 +44,7 @@
from asr_loc_mast
where row1=#{row}
and loc_sts='O'
+ and row1 > 30
<if test="locType1 != null">
and loc_type1 = #{locType1}
</if>
@@ -60,4 +62,15 @@
ORDER BY NEWID()
</select>
+ <select id="queryByLoc" resultMap="BaseResultMap">
+ select top 1 * from asr_loc_mast where loc_no = #{locNo}
+ </select>
+
+ <select id="queryByQrCode" resultMap="BaseResultMap">
+ select top 1 * from asr_loc_mast where qr_code_value = #{qrCodeValue}
+ </select>
+
+ <select id="selectLocByLev" resultMap="BaseResultMap">
+ SELECT * FROM asr_loc_mast WHERE lev1 = #{lev}
+ </select>
</mapper>
--
Gitblit v1.9.1