| | |
| | | and barcode = #{barcode} |
| | | order by io_pri desc,wrk_sts desc |
| | | </select> |
| | | |
| | | <select id="selectShuttleHasMoveWorking" resultMap="BaseResultMap"> |
| | | select top 1 * from dbo.asr_wrk_mast |
| | | where 1=1 |
| | | and shuttle_no = #{shuttleNo} |
| | | and io_type = 200 |
| | | order by io_pri desc,io_time,wrk_no asc |
| | | </select> |
| | | |
| | | <select id="selectShuttleMoveWrk" resultMap="BaseResultMap"> |
| | | select * from dbo.asr_wrk_mast |
| | | where 1=1 |
| | | and wrk_sts in (101,103,105,107) |
| | | and io_type = 200 |
| | | order by io_pri desc,io_time,wrk_no asc |
| | | </select> |
| | | |
| | | <select id="selectShuttleWorking" resultMap="BaseResultMap"> |
| | | select top 1 * from dbo.asr_wrk_mast |
| | | where 1=1 |
| | | and shuttle_no = #{shuttleNo} |
| | | and wrk_sts not in (9,10,29,30) |
| | | and io_type not in (200) |
| | | order by io_pri desc,io_time,wrk_no asc |
| | | </select> |
| | | </mapper> |