| | |
| | | <select id="selectByStartPoint" resultMap="BaseResultMap"> |
| | | select top 1 * from wcs_task_wrk |
| | | where 1=1 |
| | | and io_type=3 |
| | | and start_point = #{startPoint} |
| | | </select> |
| | | |
| | | <select id="selectByTargetPoint" resultMap="BaseResultMap"> |
| | | select top 1 * from wcs_task_wrk |
| | | where 1=1 |
| | | and target_point = #{targetPoint} |
| | | </select> |
| | | |
| | | |
| | | <select id="selectByBarcode" resultMap="BaseResultMap"> |
| | | select top 1 * from wcs_task_wrk |
| | |
| | | <select id="selectToBeHistoryData" resultMap="BaseResultMap"> |
| | | select * from dbo.wcs_task_wrk |
| | | where 1=1 |
| | | and ((wrk_sts=14 and status=5) or status=7 or status=4 or (wrk_sts=4 and status=5)) |
| | | and ((wrk_sts=14 and status=5 and dateadd(ss,10,complete_time) <= getdate() and wrk_no not in (select wrk_no from asr_bas_devp)) or status=7 or status=4 or (wrk_sts=4 and status=5)) |
| | | order by io_pri desc,create_time,wrk_no ASC |
| | | </select> |
| | | |