jinpengyong
2020-12-16 96d7cf8eb72810dfa5921a585d64b5ce9909d416
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>