| | |
| | | select top 1 * from asr_wrk_mast where source_loc_no = #{sourceLocNo} or loc_no = #{sourceLocNo} |
| | | </select> |
| | | |
| | | <select id="selectBy122ManQu" resultMap="BaseResultMap"> |
| | | select top 1 * from asr_wrk_mast where sta_no = #{staNo} and io_type = #{ioType} and wrk_sts = #{wrkSts} |
| | | </select> |
| | | |
| | | <select id="selectToBeCompleteData" resultMap="BaseResultMap"> |
| | | select * from asr_wrk_mast where ((wrk_sts = 4 Or wrk_sts = 14 ) and io_type != 103 and io_type != 104 and io_type != 107 ) or (wrk_sts = 2 and io_type=6) order by upd_mk,io_time,wrk_no |
| | | </select> |
| | |
| | | </select> |
| | | |
| | | <select id="selectPakInStep5" resultMap="BaseResultMap"> |
| | | select top 1 * from dbo.asr_wrk_mast where sta_no=#{staNo} and wrk_sts = 14 and io_type>100 and sheet_no!=#{sheetNo} |
| | | select top 1 * from dbo.asr_wrk_mast where sta_no=#{staNo} and wrk_sts = 14 and io_type>100 and sheet_no!=#{sheetNo} and sheet_no!= '0' and (wrk_no not in (select wrk_no from asr_bas_devp)) |
| | | </select> |
| | | |
| | | <select id="selectPickStep" resultMap="BaseResultMap"> |
| | |
| | | SELECT top 1 * FROM dbo.asr_wrk_mast Where 1=1 and io_type=202 and wrk_sts =51 and source_sta_no = #{sourceStaNo} |
| | | </select> |
| | | |
| | | <select id="selectWrkMastUnstackingOne202Two" resultMap="BaseResultMap"> |
| | | SELECT top 1 * FROM dbo.asr_wrk_mast Where 1=1 and io_type=202 and wrk_sts =52 and source_sta_no = #{sourceStaNo} |
| | | </select> |
| | | |
| | | <select id="selectWrkMastUnstackingOne145" resultMap="BaseResultMap"> |
| | | SELECT top 1 * FROM dbo.asr_wrk_mast Where 1=1 and io_type=1 and wrk_sts =2 and sheet_no='4' and source_sta_no = #{sourceStaNo} |
| | | </select> |
| | | |
| | | <select id="selectWrkMastLabelingOne54" resultMap="BaseResultMap"> |
| | | SELECT top 1 * FROM dbo.asr_wrk_mast Where 1=1 and io_type=202 and wrk_sts =54 |
| | | </select> |
| | | |
| | | <select id="selectWrkMastUnstackingOne212" resultMap="BaseResultMap"> |
| | | SELECT top 1 * FROM dbo.asr_wrk_mast Where 1=1 and io_type=212 and sta_no =212 |
| | | </select> |
| | | |
| | | </mapper> |