src/main/resources/mapper/LocMastMapper.xml
@@ -39,6 +39,13 @@ </resultMap> <select id="queryFreeLocMast" resultMap="BaseResultMap"> select top 1 * from asr_loc_mast where row1=#{row} and loc_sts='O' order by loc_sts desc ,lev1 asc,bay1 asc select top 1 * from asr_loc_mast where row1=#{row} and loc_sts='O' <if test="locType1 != null"> and loc_type1 = #{locType1} </if> order by loc_sts desc ,lev1 asc,bay1 asc </select> </mapper>