Junjie
2023-04-12 32cf315c6ac0cbbac6cc75a5e4e083d5e72bbe04
src/main/resources/mapper/WrkMastMapper.xml
@@ -246,22 +246,27 @@
        order by io_pri desc,wrk_sts desc
    </select>
    <select id="selectByWorkNo59" resultMap="BaseResultMap">
    <select id="selectByWorkNo" resultMap="BaseResultMap">
        select top 1 * from dbo.asr_wrk_mast
        where wrk_no=#{workNo}
        and wrk_sts in (5,9)
    </select>
    <select id="selectLiftStep6" resultMap="BaseResultMap">
    <select id="selectLiftStep623" resultMap="BaseResultMap">
        select top 1 * from dbo.asr_wrk_mast
        where wrk_sts in (6)
        where wrk_sts in (6,23)
        and shuttle_no is not null
        order by io_pri desc,wrk_sts desc
    </select>
    <select id="selectByWorkNo7" resultMap="BaseResultMap">
    <select id="selectByWorkNo724" resultMap="BaseResultMap">
        select top 1 * from dbo.asr_wrk_mast
        where wrk_no=#{workNo}
        and wrk_sts in (7)
        and wrk_sts in (7,24)
    </select>
    <select id="selectBy2125" resultMap="BaseResultMap">
        select * from dbo.asr_wrk_mast
        where wrk_sts in (21,25)
        order by io_pri desc,wrk_sts desc
    </select>
</mapper>