From 2e15565be8876a81a0331f7fbdb4f067785c0eb5 Mon Sep 17 00:00:00 2001
From: yxFwq <1>
Date: 星期五, 29 十一月 2024 09:46:19 +0800
Subject: [PATCH] #
---
src/main/resources/mapper/WrkMastSplitTwinMapper.xml | 34 ++++++++++++++++++++++++++++++++++
1 files changed, 34 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/WrkMastSplitTwinMapper.xml b/src/main/resources/mapper/WrkMastSplitTwinMapper.xml
index f409abe..373cc5b 100644
--- a/src/main/resources/mapper/WrkMastSplitTwinMapper.xml
+++ b/src/main/resources/mapper/WrkMastSplitTwinMapper.xml
@@ -26,4 +26,38 @@
</resultMap>
+ <sql id="batchSeq">
+ <if test="type != null">
+ and type = #{type}
+ </if>
+ <if test="ioType != null">
+ and io_type = #{ioType}
+ </if>
+ <if test="wrkType != null">
+ and wrk_type = #{wrkType}
+ </if>
+ <if test="wrkSts != null">
+ and wrk_sts = #{wrkSts}
+ </if>
+ <if test="crnNo != null">
+ and crn_no = #{crnNo}
+ </if>
+<!-- <choose>-->
+<!-- <when test="type != null and type != ''">-->
+<!-- and type = #{type}-->
+<!-- </when>-->
+<!-- <otherwise>-->
+<!-- and (type IS NULL OR type = '')-->
+<!-- </otherwise>-->
+<!-- </choose>-->
+
+ </sql>
+
+ <select id="getWrkMastSplitTwin" resultMap="BaseResultMap">
+ select * from asr_wrk_mast_split_twin
+ where 1=1
+ <include refid="batchSeq"></include>
+ order by line_number,id
+ </select>
+
</mapper>
--
Gitblit v1.9.1