| | |
| | | order by line_number,id |
| | | </select> |
| | | |
| | | <select id="selectNoInterfere" 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 wrk_no = #{workNo} |
| | | order by line_number,id |
| | | </select> |
| | | <select id="selectByWorkSta" resultMap="BaseResultMap"> |
| | | select * |
| | | where work_sta = #{workSta} |
| | | and rgv_no = #{rgvNo} |
| | | </select> |
| | | |
| | | <select id="selectAllWrkCount" resultType="java.lang.Integer"> |
| | | select count(1) from asr_wrk_mast_sta |
| | | where 1=1 |