Junjie
2023-07-25 f82e1ce332a1fd1c24892ae09d220993bbc8cdc0
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,103)
        and io_type in (101,103,110)
        order by io_pri desc,wrk_sts desc
    </select>
@@ -178,4 +178,11 @@
        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,103)
        and wrk_sts in (2,3,34)
        and barcode = #{barcode}
        order by io_pri desc,wrk_sts desc
    </select>
</mapper>