src/main/resources/mapper/MonitorPointMapper.xml
@@ -18,4 +18,21 @@ <select id="getMonitorPointList" resultType="com.moral.entity.MonitorPoint" resultMap="BaseResultMap"> select * from monitor_point </select> <select id="getMonitorList" resultType="java.lang.Integer"> select id from monitor_point where <if test="areaCode != null"> area_code = #{areaCode} </if> <if test="cityCode != null"> city_code = #{cityCode} </if> <if test="provinceCode != null"> province_code = #{provinceCode} </if> </select> </mapper>