| | |
| | | from dbo.asr_wrk_mast |
| | | where 1=1 |
| | | and wrk_sts = 4 |
| | | and io_type in (1,10,53) |
| | | and io_type in (1,10,53,57) |
| | | order by io_pri desc,wrk_sts desc |
| | | </select> |
| | | |
| | |
| | | <select id="selectBy2125" resultMap="BaseResultMap"> |
| | | select * from dbo.asr_wrk_mast |
| | | where wrk_sts in (21,25) |
| | | and io_type in (101,103,110) |
| | | and io_type in (101,103,107,110) |
| | | order by io_pri desc,wrk_sts desc |
| | | </select> |
| | | |
| | |
| | | <select id="selectShuttleWrkByLev" resultMap="BaseResultMap"> |
| | | select * from dbo.asr_wrk_mast |
| | | where shuttle_no is not null |
| | | and ((wrk_sts not in (14,15) and loc_no like #{lev}) or (wrk_sts not in (34,35) and source_loc_no like #{lev})) |
| | | and ((wrk_sts not in (9,10) and loc_no like #{lev}) or (wrk_sts not in (29,30) and source_loc_no like #{lev})) |
| | | order by io_pri desc,wrk_sts desc |
| | | </select> |
| | | |
| | | <select id="selectShuttleOutWrkByLev" resultMap="BaseResultMap"> |
| | | select * from dbo.asr_wrk_mast |
| | | where shuttle_no is not null |
| | | and (wrk_sts not in (29,30) and source_loc_no like #{lev}) |
| | | order by io_pri desc,wrk_sts desc |
| | | </select> |
| | | |
| | |
| | | <select id="selectInOutWrkMast" resultMap="BaseResultMap"> |
| | | select * from asr_wrk_mast |
| | | where io_type in (1,101) |
| | | and wrk_sts not in (14,15,34,35) |
| | | and wrk_sts not in (9,10,29,30) |
| | | order by io_pri desc,wrk_sts desc |
| | | </select> |
| | | |
| | |
| | | |
| | | <select id="selectPickStepByBarcode" resultMap="BaseResultMap"> |
| | | select top 1 * from asr_wrk_mast |
| | | where io_type in (53,103) |
| | | where io_type in (53,103,107) |
| | | and wrk_sts in (2,3,34,29) |
| | | and barcode = #{barcode} |
| | | order by io_pri desc,wrk_sts desc |
| | |
| | | select top 1 * from dbo.asr_wrk_mast |
| | | where 1=1 |
| | | and shuttle_no = #{shuttleNo} |
| | | and wrk_sts not in (111) |
| | | and io_type = 200 |
| | | order by io_pri desc,io_time,wrk_no asc |
| | | </select> |
| | |
| | | and barcode = #{barcode} |
| | | order by io_pri desc,io_time,wrk_no asc |
| | | </select> |
| | | |
| | | <select id="selectInWrkMastByLiftNo" resultMap="BaseResultMap"> |
| | | select * from dbo.asr_wrk_mast |
| | | where 1=1 |
| | | and lift_no = #{liftNo} |
| | | and io_type <= 100 |
| | | and wrk_sts in (1,2,3,4,5) |
| | | order by io_pri desc,io_time,wrk_no asc |
| | | </select> |
| | | </mapper> |