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,10)
        and io_type in (1,10,53)
        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)
        and wrk_sts in (34)
        and barcode = #{barcode}
        order by io_pri desc,wrk_sts desc
    </select>
</mapper>