| | |
| | | from asr_loc_mast |
| | | where row1=#{row} |
| | | and loc_sts='O' |
| | | and bay1=#{bay} |
| | | <if test="locType2 != null and locType != 0"> |
| | | and loc_type2 = #{locType2} |
| | | </if> |
| | | <if test="locType2 != null and locType == 0"> |
| | | and loc_type2 != null |
| | | and loc_type2 != #{locType2} |
| | | </if> |
| | | <if test="locType1 != null"> |
| | | and loc_type1 = #{locType1} |
| | | </if> |
| | | order by lev1 asc,bay1 asc |
| | | </select> |
| | | |
| | | <select id="queryFreeLocMastCount" resultMap="BaseResultMap"> |
| | | select count(1) |
| | | from asr_loc_mast |
| | | where row1=#{row} |
| | | and loc_sts='O' |
| | | and loc_type2 = #{locType2} |
| | | <if test="locType1 != null"> |
| | | and loc_type1 = #{locType1} |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="queryShallowLocFMast" resultMap="BaseResultMap"> |
| | | select * from asr_loc_mast |
| | | where 1=1 |