#
yxFwq
2025-11-03 572a655759f4f8fcfce2c89db491dd837327527a
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>