| | |
| | | and task_no = #{taskNo} |
| | | </select> |
| | | |
| | | <select id="selectByTargetPoint" resultMap="BaseResultMap"> |
| | | select top 1 * from wcs_task_wrk |
| | | where 1=1 |
| | | and io_type=2 |
| | | and target_point = #{targetPoint} |
| | | </select> |
| | | |
| | | |
| | | <select id="selectByStartPoint" resultMap="BaseResultMap"> |
| | | select top 1 * from wcs_task_wrk |
| | | where 1=1 |
| | | and io_type=3 |
| | | and io_type=1 |
| | | and start_point = #{startPoint} |
| | | </select> |
| | | |
| | |
| | | order by io_pri desc,create_time,wrk_no ASC |
| | | </select> |
| | | |
| | | <select id="selectStaWorking" resultMap="BaseResultMap"> |
| | | select top 1 * from dbo.wcs_task_wrk_log |
| | | where wrk_no = #{workNo} |
| | | order by create_time DESC |
| | | </select> |
| | | |
| | | </mapper> |