#
luxiaotao1123
2022-10-14 2d4c6a8ef2f3755ba980261362538361f99c2a2e
src/main/resources/mapper/WrkMastMapper.xml
@@ -144,9 +144,15 @@
    </select>
    <select id="selectPakout" resultMap="BaseResultMap">
        select top 1 * from dbo.asr_wrk_mast
        select top 1 *
        from dbo.asr_wrk_mast
        where 1=1
        and wrk_sts in (12,13,14,15,16,17)
        and
        (
            (wrk_sts in (12,13,14,15,16,17) and io_type in (101, 110))
            or
            (wrk_sts in (12,13,14,15,16) and io_type in (103, 104, 107))
        )
        and crn_no=#{crnNo}
        <if test="steNo != null">
            and ste_no = #{steNo}