| | |
| | | <select id="selectToBeHistoryData" resultMap="BaseResultMap"> |
| | | select * from dbo.wcs_task_wrk |
| | | where 1=1 |
| | | and (status=3 or status=4) |
| | | and ((wrk_sts=14 and status=5) or status=4 or (wrk_sts=4 and status=5)) |
| | | order by io_pri desc,create_time,wrk_no ASC |
| | | </select> |
| | | |
| | | <insert id="saveToHistory"> |
| | | insert into wcs_task_wrk_log select * from wcs_task_wrk where task_no = #{taskNo} and (status=3 or status=4) |
| | | insert into wcs_task_wrk_log select * from wcs_task_wrk where task_no = #{taskNo} and (status=5 or status=4) |
| | | </insert> |
| | | |
| | | <select id="selectWorkingTask" resultMap="BaseResultMap"> |
| | | select * from dbo.wcs_task_wrk |
| | | where (wrk_sts=3 and io_type = 1) |
| | | or (wrk_sts=12 and io_type = 2) |
| | | order by io_pri desc,create_time,wrk_no ASC |
| | | </select> |
| | | |
| | | </mapper> |