#
lty
2025-09-25 8478a159d79bf9ca5da04ab18562f2d7cdddb05c
src/main/resources/mapper/WrkMastStaMapper.xml
@@ -38,24 +38,31 @@
        and wrk_no = #{workNo}
    </select>
    <select id="selectNoInterfere" resultMap="BaseResultMap">
    <select id="selectByWrkNoPut" resultMap="BaseResultMap">
        select top 1 * from asr_wrk_mast_sta
        where 1=1
        and (sta_start in
        <foreach item="item" collection="staStarts" index="index" separator="," open="(" close=")">
            #{item}
        </foreach>
        or sta_start = 0
        )
        and (sta_end in
        <foreach item="item" collection="staEnds" index="index" separator="," open="(" close=")">
            #{item}
        </foreach>
        or sta_end = 0
        )
        and wrk_sts=0
        order by line_number,id
          and wrk_no = #{workNo}
          and wrk_sts = 2
    </select>
<!--    <select id="selectNoInterfere" resultMap="BaseResultMap">-->
<!--        select top 1 * from asr_wrk_mast_sta-->
<!--        where 1=1-->
<!--        and (sta_start in-->
<!--        <foreach item="item" collection="staStarts" index="index" separator="," open="(" close=")">-->
<!--            #{item}-->
<!--        </foreach>-->
<!--        or sta_start = 0-->
<!--        )-->
<!--        and (sta_end in-->
<!--        <foreach item="item" collection="staEnds" index="index" separator="," open="(" close=")">-->
<!--            #{item}-->
<!--        </foreach>-->
<!--        or sta_end = 0-->
<!--        )-->
<!--        and wrk_sts=0-->
<!--        order by line_number,id-->
<!--    </select>-->
    <select id="selectNoInterfereList" resultMap="BaseResultMap">
        select * from asr_wrk_mast_sta
@@ -95,6 +102,23 @@
        and wrk_no = #{workNo}
        order by line_number,id
    </select>
    <select id="selectNoInterfereToCrn" resultMap="BaseResultMap">
        select * from asr_wrk_mast_sta
        where 1=1
        and (sta_start in
        <foreach item="item" collection="staStarts" index="index" separator="," open="(" close=")">
            #{item}
        </foreach>
        or sta_start = 0
        )
        or sta_end = 0
        )
        and sta_end in (2018,1018)
        and wrk_sts=0
        and wrk_no = #{workNo}
        order by line_number,id
    </select>
    <select id="selectByWorkSta" resultMap="BaseResultMap">
        select top 1 * from asr_wrk_mast_sta
        where work_sta = #{workSta}