1
zhang
2025-09-26 962a374a511a8a222067a2b8d06bc4c4c9052b29
src/main/resources/mapper/WrkMastMapper.xml
@@ -108,10 +108,12 @@
    </select>
    <select id="selectPakInStep104" resultMap="BaseResultMap">
        select top 1 * from dbo.asr_wrk_mast where wrk_sts=104 and crn_no=#{crnNo} and (io_type=1 or io_type=10 or io_type=53 or io_type=54 or io_type=57) order by io_pri desc,io_time,wrk_no ASC
    </select>
    <select id="selectByPltType" resultMap="BaseResultMap">
        select top 1 * from dbo.asr_wrk_mast where wrk_sts=103 and crn_no=#{crnNo} and plt_type =#{pltType} order by io_pri desc,io_time,wrk_no ASC
        select top 1 * from dbo.asr_wrk_mast where crn_no=#{crnNo} and plt_type =#{pltType} order by io_pri desc,io_time,wrk_no ASC
    </select>
@@ -187,8 +189,8 @@
        select * from dbo.asr_wrk_mast where crn_no=#{crnNo} and source_sta_no=#{sourceStaNo} and wrk_sts=11 and io_type>100 order by io_pri desc,io_time,wrk_no asc
    </select>
    <select id="selectPakOutStep105" resultMap="BaseResultMap">
        select * from dbo.asr_wrk_mast where crn_no=#{crnNo} and source_sta_no=#{sourceStaNo} and wrk_sts=105 and io_type>100 order by io_pri desc,io_time,wrk_no asc
    <select id="selectPakOutStep107" resultMap="BaseResultMap">
        select * from dbo.asr_wrk_mast where crn_no=#{crnNo} and source_sta_no=#{sourceStaNo} and wrk_sts=107 and io_type>100 order by io_pri desc,io_time,wrk_no asc
    </select>