| | |
| | | |
| | | </resultMap> |
| | | |
| | | <select id="selectByLocNo" resultMap="BaseResultMap"> |
| | | <select id="selectBySourceLocNo" resultMap="BaseResultMap"> |
| | | select top 1 * from asr_wrk_mast where source_loc_no = #{sourceLocNo} |
| | | </select> |
| | | |
| | |
| | | select top 1 * from asr_wrk_mast where wrk_no=#{wrkNo} and wrk_sts=17 and (io_type=103 or io_type=107 or io_type=104) |
| | | </select> |
| | | |
| | | <select id="selectPickStepByBarcode" resultMap="BaseResultMap"> |
| | | select top 1 * from asr_wrk_mast where barcode=#{barcode} and wrk_sts=17 and (io_type=103 or io_type=107 or io_type=104) |
| | | </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,13,14,15, 16) and io_type>100 order by io_pri desc,io_time,wrk_no asc |
| | | </select> |
| | |
| | | <select id="selectPakin" resultMap="BaseResultMap"> |
| | | select top 1 * from dbo.asr_wrk_mast |
| | | where 1=1 |
| | | and wrk_sts in (3,4,5,6,7,8) |
| | | and wrk_sts in (3,4,5,6,7,8,9) |
| | | and crn_no=#{crnNo} |
| | | <if test="steNo != null"> |
| | | and ste_no = #{steNo} |
| | |
| | | </select> |
| | | |
| | | <select id="selectPakout" resultMap="BaseResultMap"> |
| | | select top 1 * from dbo.asr_wrk_mast |
| | | select top 1 * |
| | | from dbo.asr_wrk_mast |
| | | where 1=1 |
| | | and wrk_sts in (12,13,14,15,16) |
| | | and |
| | | ( |
| | | (wrk_sts in (12,13,14,15,16,17) and io_type in (101, 110)) |
| | | or |
| | | (wrk_sts in (12,13,14,15,16) and io_type in (103, 104, 107)) |
| | | ) |
| | | and crn_no=#{crnNo} |
| | | <if test="steNo != null"> |
| | | and ste_no = #{steNo} |