| | |
| | | </resultMap> |
| | | |
| | | <select id="selectWorking" resultMap="BaseResultMap"> |
| | | select top 1 * |
| | | select * |
| | | from asr_wrk_charge |
| | | where 1=1 |
| | | <if test="shuttleNo != null"> |
| | |
| | | and wrk_sts < 60 |
| | | and memo = 'charge' |
| | | order by appe_time, io_pri desc |
| | | limit 0,1 |
| | | </select> |
| | | |
| | | <select id="selectWorkingOfCharge" resultMap="BaseResultMap"> |
| | | select top 1 * |
| | | select * |
| | | from asr_wrk_charge |
| | | where 1=1 |
| | | <if test="charge != null"> |
| | |
| | | and wrk_sts < 60 |
| | | and memo = 'charge' |
| | | order by appe_time, io_pri desc |
| | | limit 0,1 |
| | | </select> |
| | | |
| | | <select id="selectWorkingOfReset" resultMap="BaseResultMap"> |
| | | select top 1 * |
| | | select * |
| | | from asr_wrk_charge |
| | | where 1=1 |
| | | <if test="steNo != null"> |
| | |
| | | and wrk_sts < 47 |
| | | and memo = 'reset' |
| | | order by appe_time, io_pri desc |
| | | limit 0,1 |
| | | </select> |
| | | |
| | | <select id="selectByWorkNo" resultMap="BaseResultMap"> |
| | | select top 1 * from asr_wrk_charge |
| | | select * from asr_wrk_charge |
| | | where wrk_no=#{workNo} |
| | | order by appe_time, io_pri desc |
| | | limit 0,1 |
| | | </select> |
| | | |
| | | </mapper> |