src/main/resources/mapper/MonitorPointMapper.xml
@@ -7,8 +7,15 @@ FROM monitor_point mp, area a <if test="cityName != null"> ,city c </if> WHERE mp.area_code = a.area_code AND a.area_name = #{areaName} <if test="cityName != null"> AND c.city_name = #{cityName} AND mp.city_code = c.city_code </if> </select> </mapper>