From 2b181eaba59e3bde4ae52c1a215d468a6267f661 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期三, 09 十一月 2022 11:29:24 +0800
Subject: [PATCH] #
---
src/main/resources/mapper/WrkMastMapper.xml | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/src/main/resources/mapper/WrkMastMapper.xml b/src/main/resources/mapper/WrkMastMapper.xml
index 4fde7f4..93afb26 100644
--- a/src/main/resources/mapper/WrkMastMapper.xml
+++ b/src/main/resources/mapper/WrkMastMapper.xml
@@ -168,7 +168,13 @@
<select id="selectPick17" resultMap="BaseResultMap">
select * from dbo.asr_wrk_mast
- where 1=1 and (io_type=103 or io_type=107 or io_type=104) and wrk_sts = 17 and sta_no = #{staNo} and wrk_no = #{wrkNo}
+ where 1=1 and (io_type=103 or io_type=107 or io_type=104) and wrk_sts = 17
+ <if test="staNo != null">
+ and sta_no = #{staNo}
+ </if>
+ <if test="wrkNo != null">
+ and wrk_no = #{wrkNo}
+ </if>
</select>
</mapper>
--
Gitblit v1.9.1