| | |
| | | and wrk_no = #{workNo} |
| | | order by line_number,id |
| | | </select> |
| | | <select id="selectNoInterfereCrn" 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 |
| | | ) |
| | | and (sta_end in |
| | | <foreach item="item" collection="staEnds" index="index" separator="," open="(" close=")"> |
| | | #{item} |
| | | </foreach> |
| | | or sta_end = 0 |
| | | ) |
| | | and wrk_sts=0 |
| | | and sta_end in (2006.2012,2018,2024,2030,1004,1014,1018,1028,1035) |
| | | and wrk_no = #{workNo} |
| | | order by |
| | | case when mk = 1 then 0 else 1 end, |
| | | line_number, |
| | | id |
| | | </select> |
| | | |
| | | <select id="selectNoInterfereToCrn" resultMap="BaseResultMap"> |
| | | select * from asr_wrk_mast_sta |
| | |
| | | and sta_start = #{staStart} |
| | | </select> |
| | | |
| | | <select id="selectPakingWrkNum" resultMap="BaseResultMap"> |
| | | select * from asr_wrk_mast_sta |
| | | where mk = 1 |
| | | and rgv_no = #{rgvNo} |
| | | </select> |
| | | |
| | | |
| | | |
| | | </mapper> |