#
zjj
2024-09-06 f9a4e6ce9b400a30aeac6d91831e8785368ea839
src/main/resources/mapper/WrkMastMapper.xml
@@ -63,7 +63,7 @@
    </resultMap>
    <select id="selectByLocNo"  resultMap="BaseResultMap">
        select top 1 * from asr_wrk_mast where source_loc_no = #{sourceLocNo} and  (ctn_no is null or ctn_no != 'Y')
        select top 1 * from asr_wrk_mast where sta_no = #{staNo} and  (ctn_no is null or ctn_no != 'Y')
    </select>
    <select id="selectByLocNo1"  resultMap="BaseResultMap">
@@ -192,4 +192,22 @@
    <select id="selectPakoutEmpty" resultMap="BaseResultMap">
        select top 1 * from dbo.asr_wrk_mast where  io_type = 110 and sta_no = #{staNo} order by io_time,wrk_no
    </select>
    <select id="selectpj" resultMap="BaseResultMap">
        select * from dbo.asr_wrk_mast where  wrk_sts =14 and barcode=#{barcode}
    </select>
    <select id="selectLaneWrkMastIn" resultMap="BaseResultMap">
        select * from dbo.asr_wrk_mast where wrk_sts=2 and (io_type=1 or io_type=10 or io_type=53 or io_type=54 or io_type=57) order by io_pri desc,io_time,wrk_no ASC
    </select>
    <select id="selectLaneWrkMastOut" resultMap="BaseResultMap">
        select * from dbo.asr_wrk_mast where wrk_sts in (11,12,13,14) and io_type>100 order by io_pri desc,io_time,wrk_no asc
    </select>
    <select id="selectByWrkNo" resultMap="BaseResultMap">
        select top 1 * from dbo.asr_wrk_mast where wrk_no = #{wrkNo} and (wrk_sts = 13 or wrk_sts = 2) order by io_pri desc,io_time,wrk_no asc
    </select>
    <select id="selectCrn5Task2" resultMap="BaseResultMap">
        select * from dbo.asr_wrk_mast where wrk_sts=1 and io_type=1 order by io_pri desc,io_time,wrk_no ASC
    </select>
</mapper>