From 7714207440d4774b84b6490406bdebf228c1fee6 Mon Sep 17 00:00:00 2001
From: yxFwq <1>
Date: 星期三, 24 十二月 2025 16:01:59 +0800
Subject: [PATCH] #
---
src/main/resources/mapper/WrkMastSplitTwinMapper.xml | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 49 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/WrkMastSplitTwinMapper.xml b/src/main/resources/mapper/WrkMastSplitTwinMapper.xml
index f409abe..5b06462 100644
--- a/src/main/resources/mapper/WrkMastSplitTwinMapper.xml
+++ b/src/main/resources/mapper/WrkMastSplitTwinMapper.xml
@@ -26,4 +26,53 @@
</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>
+ </sql>
+
+ <sql id="batchSeqNo">
+ <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="crnNo != null">
+ and crn_no = #{crnNo}
+ </if>
+ </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>
+
+ <select id="getWrkMastSplitTwinNoComplete" resultMap="BaseResultMap">
+ select * from asr_wrk_mast_split_twin
+ where 1=1
+ <if test="wrkSts != null">
+ and wrk_sts != #{wrkSts}
+ </if>
+ <include refid="batchSeqNo"></include>
+ order by line_number,id
+ </select>
</mapper>
--
Gitblit v1.9.1