野心家
2023-10-09 7ba995f514c6d20a59cc69afa05110110e9b2de5
src/main/resources/mapper/WrkMastMapper.xml
@@ -188,7 +188,7 @@
    <select id="selectPickStepByBarcode" resultMap="BaseResultMap">
        select top 1 * from asr_wrk_mast
        where io_type in (53,103)
        and wrk_sts in (2,3,34)
        and wrk_sts in (2,3,34,29)
        and barcode = #{barcode}
        order by io_pri desc,wrk_sts desc
    </select>
@@ -197,6 +197,7 @@
        select top 1 * from dbo.asr_wrk_mast
        where 1=1
        and shuttle_no = #{shuttleNo}
        and wrk_sts not in (111)
        and io_type = 200
        order by io_pri desc,io_time,wrk_no asc
    </select>
@@ -213,8 +214,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>