lizijie
2020-11-24 15ce40adc82f9277dc60ed29dad710013e99eca9
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>