#
LSH
2023-07-13 424151075e67ae827313d454433b3a7df6b98ab5
src/main/resources/mapper/WrkMastMapper.xml
@@ -185,4 +185,28 @@
    <select id="selectPakoutEmpty" resultMap="BaseResultMap">
        select top 1 * from dbo.asr_wrk_mast where  io_type = 110 and sta_no = #{staNo} order by io_time,wrk_no
    </select>
    <select id="wrkCrnMoveOutXY" resultMap="BaseResultMap">
        select top 1 * from dbo.asr_wrk_mast where
        wrk_sts in (21)
        and io_type>100 and io_type != 111 and ste_no is not null
        and crn_no = #{crnNo}
        order by io_pri desc,io_time,wrk_no asc
    </select>
    <select id="wrkCrnMoveOutXYing" resultMap="BaseResultMap">
        select top 1 * from dbo.asr_wrk_mast where
        wrk_sts in (26)
        and io_type>100 and io_type != 111 and ste_no is not null
        and crn_no = #{crnNo}
        order by io_pri desc,io_time,wrk_no asc
    </select>
    <select id="wrkCrnMoveOutXYingOther" resultMap="BaseResultMap">
        select top 1 * from dbo.asr_wrk_mast where
        wrk_sts in (22,23,24,25,27,28)
        and io_type>100 and io_type != 111
        and crn_no = #{crnNo}
        order by io_pri desc,io_time,wrk_no asc
    </select>
</mapper>