|  |  | 
 |  |  |     </select> | 
 |  |  |  | 
 |  |  |     <select id="selectPakInStep23456" resultMap="BaseResultMap"> | 
 |  |  |         select top 1 * from dbo.asr_wrk_mast where wrk_sts in (2,3,4,5,6) and crn_no=#{crnNo} and wrk_no=#{workNo} and sta_no=#{staNo} and (io_type=1 or io_type=10 or io_type=53 or io_type=54 or io_type=57) order by io_pri desc,io_time,wrk_no ASC | 
 |  |  |         select top 1 * from dbo.asr_wrk_mast where wrk_sts in (2,3,4,5,6,7) and crn_no=#{crnNo} and wrk_no=#{workNo} and sta_no=#{staNo} and (io_type=1 or io_type=10 or io_type=53 or io_type=54 or io_type=57) order by io_pri desc,io_time,wrk_no ASC | 
 |  |  |     </select> | 
 |  |  |  | 
 |  |  |     <select id="selectPakInStep45" resultMap="BaseResultMap"> | 
 |  |  | 
 |  |  |     </select> | 
 |  |  |  | 
 |  |  |     <select id="selectPakOutStep111215" resultMap="BaseResultMap"> | 
 |  |  |         select top 1 * from dbo.asr_wrk_mast where crn_no=#{crnNo} and source_sta_no=#{sourceStaNo} and wrk_sts in (11,12,15) and io_type>100 order by io_pri desc,io_time,wrk_no asc | 
 |  |  |         select top 1 * from dbo.asr_wrk_mast where crn_no=#{crnNo} and source_sta_no=#{sourceStaNo} and wrk_sts in (11,12,13,14,15) and io_type>100 order by io_pri desc,io_time,wrk_no asc | 
 |  |  |     </select> | 
 |  |  |  | 
 |  |  |     <select id="selectPakOutStep16" resultMap="BaseResultMap"> |