Junjie
2023-10-03 81d91a7995cb59f495af0b9677173fb2f59b3532
src/main/resources/mapper/WrkMastMapper.xml
@@ -117,6 +117,15 @@
        order by io_pri desc,wrk_sts desc
    </select>
    <select id="selectInStep4" resultMap="BaseResultMap">
        select *
        from dbo.asr_wrk_mast
        where 1=1
        and wrk_sts = 4
        and io_type in (1,10,53)
        order by io_pri desc,wrk_sts desc
    </select>
    <select id="selectByWorkNo" resultMap="BaseResultMap">
        select top 1 * from dbo.asr_wrk_mast
        where wrk_no=#{workNo}
@@ -132,7 +141,7 @@
    <select id="selectByWorkNo324104" resultMap="BaseResultMap">
        select top 1 * from dbo.asr_wrk_mast
        where wrk_no=#{workNo}
        and wrk_sts in (3,24,104)
        and wrk_sts in (3,24,103,106)
    </select>
    <select id="selectBy2125" resultMap="BaseResultMap">
@@ -159,7 +168,7 @@
    <select id="selectLiftWrkMast" resultMap="BaseResultMap">
        select top 1 * from asr_wrk_mast
        where lift_no = #{liftNo}
        and wrk_sts in (3,4,24,25,104,105,106,107,108,109)
        and wrk_sts in (3,4,24,25,102,103,104,105,106,107,108,109)
    </select>
    <select id="selectInOutWrkMast" resultMap="BaseResultMap">
@@ -195,7 +204,7 @@
    <select id="selectShuttleMoveWrk" resultMap="BaseResultMap">
        select * from dbo.asr_wrk_mast
        where 1=1
        and wrk_sts in (101,103,105,107)
        and wrk_sts in (101,103,105,107,109,111)
        and io_type = 200
        order by io_pri desc,io_time,wrk_no asc
    </select>
@@ -204,8 +213,15 @@
        select top 1 * from dbo.asr_wrk_mast
        where 1=1
        and shuttle_no = #{shuttleNo}
        and wrk_sts not in (9,10,29,30)
        and wrk_sts not in (9,10,23,29,30)
        and io_type not in (200)
        order by io_pri desc,io_time,wrk_no asc
    </select>
    <select id="selectByBarcode" resultMap="BaseResultMap">
        select top 1 * from dbo.asr_wrk_mast
        where 1=1
        and barcode = #{barcode}
        order by io_pri desc,io_time,wrk_no asc
    </select>
</mapper>