Junjie
2023-06-29 0c9b8fe24e495da1f5e3362fa6b36acc41617cb7
src/main/resources/mapper/WrkMastMapper.xml
@@ -241,7 +241,7 @@
        from dbo.asr_wrk_mast
        where 1=1
        and ((wrk_sts = 4 and shuttle_no is null) or (wrk_sts = 8 and shuttle_no is not null))
        and source_sta_no = #{sourceStaNo}
        and sta_no = #{staNo}
        and wrk_no=#{workNo}
        order by io_pri desc,wrk_sts desc
    </select>
@@ -251,17 +251,20 @@
        where wrk_no=#{workNo}
    </select>
    <select id="selectLiftStep62327" resultMap="BaseResultMap">
    <select id="selectLiftStep262327" resultMap="BaseResultMap">
        select top 1 * from dbo.asr_wrk_mast
        where wrk_sts in (6,23,27)
        and shuttle_no is not null
        where 1=1
        and (wrk_sts in (6,23,27)
            and shuttle_no is not null)
        or (wrk_sts in (2)
            and shuttle_no is null)
        order by io_pri desc,wrk_sts desc
    </select>
    <select id="selectByWorkNo72428" resultMap="BaseResultMap">
    <select id="selectByWorkNo372428" resultMap="BaseResultMap">
        select top 1 * from dbo.asr_wrk_mast
        where wrk_no=#{workNo}
        and wrk_sts in (7,24,28)
        and wrk_sts in (3,7,24,28)
    </select>
    <select id="selectBy2125" resultMap="BaseResultMap">
@@ -269,4 +272,11 @@
        where wrk_sts in (21,25)
        order by io_pri desc,wrk_sts desc
    </select>
    <select id="selectNoShuttleWrkByLev" resultMap="BaseResultMap">
        select * from dbo.asr_wrk_mast
        where shuttle_no is null
        and (wrk_sts = 2 and loc_no like #{lev}) or (wrk_sts = 21 and source_loc_no like #{lev})
        order by io_pri desc,wrk_sts desc
    </select>
</mapper>