Junjie
2023-07-25 8bf7630b87dae34d45b03b4127e6b77573e211df
src/main/resources/mapper/WrkMastMapper.xml
@@ -92,7 +92,7 @@
    </select>
    <select id="selectPickStep" resultMap="BaseResultMap">
        select top 1 * from asr_wrk_mast where wrk_no=#{wrkNo} and wrk_sts=17 and (io_type=103 or io_type=107 or io_type=104)
        select top 1 * from asr_wrk_mast where wrk_no=#{wrkNo} and wrk_sts=34 and (io_type=103 or io_type=107 or io_type=104)
    </select>
    <select id="selectWorking" resultMap="BaseResultMap">
@@ -113,7 +113,7 @@
        and ((wrk_sts = 4) or (wrk_sts = 8 and shuttle_no is not null))
        and sta_no = #{staNo}
        and wrk_no=#{workNo}
        and io_type in (1)
        and io_type in (1,10,53)
        order by io_pri desc,wrk_sts desc
    </select>
@@ -141,7 +141,7 @@
    <select id="selectBy2125" resultMap="BaseResultMap">
        select * from dbo.asr_wrk_mast
        where wrk_sts in (21,25)
        and io_type in (101)
        and io_type in (101,103,110)
        order by io_pri desc,wrk_sts desc
    </select>
@@ -163,4 +163,26 @@
        select top 1 * from asr_wrk_mast
        where lift_no = #{liftNo}
    </select>
    <select id="selectInOutWrkMast" resultMap="BaseResultMap">
        select * from asr_wrk_mast
        where io_type in (1,101)
        and wrk_sts not in (14,15,34,35)
        order by io_pri desc,wrk_sts desc
    </select>
    <select id="selectLocToLocWrkMast" resultMap="BaseResultMap">
        select * from asr_wrk_mast
        where io_type in (11)
        and wrk_sts not in (14,15,34,35)
        order by io_pri desc,wrk_sts desc
    </select>
    <select id="selectPickStepByBarcode" resultMap="BaseResultMap">
        select top 1 * from asr_wrk_mast
        where io_type in (53)
        and wrk_sts in (34)
        and barcode = #{barcode}
        order by io_pri desc,wrk_sts desc
    </select>
</mapper>