| | |
| | | ORDER BY NEWID() |
| | | </select> |
| | | |
| | | <select id="queryDemoSourceLoc1" resultMap="BaseResultMap"> |
| | | select top 1 * from asr_loc_mast where crn_no = #{crnNo} |
| | | and loc_sts='D' |
| | | </select> |
| | | |
| | | <select id="queryDemoLoc" resultMap="BaseResultMap"> |
| | | select top 1 * from asr_loc_mast where crn_no = #{crnNo} and loc_sts = 'O' |
| | | ORDER BY NEWID() |
| | | </select> |
| | | |
| | | <select id="queryDemoLoc0" resultMap="BaseResultMap"> |
| | | select top 1 * from asr_loc_mast where crn_no = #{crnNo} and loc_sts = 'O'and loc_type1 = #{locType1} |
| | | select top 1 * from asr_loc_mast where crn_no = #{crnNo} and loc_sts = 'O' and loc_type1 = #{locType1} |
| | | ORDER BY NEWID() |
| | | </select> |
| | | |
| | | <select id="queryDemoLoc2" resultMap="BaseResultMap"> |
| | | select top 1 * from asr_loc_mast where crn_no = #{crnNo} and loc_sts = 'O' and loc_type1 = #{locType1} |
| | | and ctn_kind=0 |
| | | ORDER BY bay1,row1,lev1 |
| | | </select> |
| | | </mapper> |