| | |
| | | |
| | | <select id="queryFreeLocMast" resultMap="BaseResultMap"> |
| | | select top 1 * |
| | | from asr_loc_mast |
| | | where row1=#{row} |
| | | and loc_sts='O' |
| | | from "SOURCE"."asr_loc_mast" |
| | | where "row1"=#{row} |
| | | and "loc_sts"='O' |
| | | <if test="locType1 != null"> |
| | | and loc_type1 = #{locType1} |
| | | and "loc_type1" = #{locType1} |
| | | </if> |
| | | order by NEWID(),lev1 asc,bay1 asc |
| | | order by NEWID(),"lev1" asc,"bay1" asc |
| | | </select> |
| | | |
| | | <select id="queryDemoSourceLoc" resultMap="BaseResultMap"> |
| | | select top 1 * from asr_loc_mast where crn_no = #{crnNo} |
| | | and loc_sts='D' |
| | | select top 1 * from "SOURCE"."asr_loc_mast" where "crn_no" = #{crnNo} |
| | | and "loc_sts"='D' |
| | | ORDER BY NEWID() |
| | | </select> |
| | | |
| | | <select id="queryDemoLoc" resultMap="BaseResultMap"> |
| | | select top 1 * from asr_loc_mast where crn_no = #{crnNo} and loc_sts = 'O' |
| | | select top 1 * from "SOURCE"."asr_loc_mast" where "crn_no" = #{crnNo} and "loc_sts" = 'O' |
| | | ORDER BY NEWID() |
| | | </select> |
| | | |
| | | <select id="selectByLocNo" resultMap="BaseResultMap"> |
| | | select * from asr_loc_mast |
| | | where loc_no = #{locNo} |
| | | select * from "SOURCE"."asr_loc_mast" |
| | | where "loc_no" = #{locNo} |
| | | </select> |
| | | |
| | | <select id="selectLocByLev" resultMap="BaseResultMap"> |
| | | SELECT * FROM asr_loc_mast WHERE lev1 = #{lev} |
| | | SELECT * FROM "SOURCE"."asr_loc_mast" WHERE "lev1" = #{lev} |
| | | </select> |
| | | </mapper> |