| | |
| | | <select id="selectToBeHistoryData" resultMap="BaseResultMap"> |
| | | select * from dbo.wcs_task_wrk |
| | | where 1=1 |
| | | and ((wrk_sts=14 and status=5) or status=4 or (wrk_sts=4 and status=5)) |
| | | and ((wrk_sts=15 and status=5) or status=4 or (wrk_sts=5 and status=5)) |
| | | order by io_pri desc,create_time,wrk_no ASC |
| | | </select> |
| | | |
| | |
| | | |
| | | <select id="selectWorkingTask" resultMap="BaseResultMap"> |
| | | select * from dbo.wcs_task_wrk |
| | | where (wrk_sts=5 and io_type = 1) |
| | | or (wrk_sts=15 and io_type = 2) |
| | | or (wrk_sts = 5 and io_type = 3) |
| | | order by io_pri desc,create_time,wrk_no ASC |
| | | </select> |
| | | <select id="selectbyWrksts4" resultMap="BaseResultMap"> |
| | | select * from dbo.wcs_task_wrk |
| | | where (wrk_sts=4 and io_type = 1) |
| | | or (wrk_sts=14 and io_type = 2) |
| | | or (wrk_sts = 4 and io_type = 3) |
| | | or (wrk_sts=14 and io_type = 2) |
| | | or (wrk_sts = 4 and io_type = 3) |
| | | order by io_pri desc,create_time,wrk_no ASC |
| | | </select> |
| | | |