jinpengyong
2020-08-05 91c1c308abec43a67335cdebb574940ed41b09cf
src/main/resources/mapper/MonitorPointMapper.xml
@@ -45,7 +45,8 @@
                        </when>
                        <when test="criterion.listValue">
                           and ${criterion.condition}
                           <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
                                    <foreach close=")" collection="criterion.value" item="listItem" open="("
                                             separator=",">
                              #{listItem}
                           </foreach>
                        </when>
@@ -180,7 +181,20 @@
      select * from monitor_point where city_code=#{cityCode} limit 0,1
   </select>
   <select id="getFirstMonitorPointByProvinceCode" resultType="com.moral.entity.MonitorPoint" resultMap="BaseResultMap">
    <select id="getFirstMonitorPointByProvinceCode" resultType="com.moral.entity.MonitorPoint"
            resultMap="BaseResultMap">
      select * from monitor_point where province_code=#{provinceCode} limit 0,1
   </select>
    <select id="getMonitorList" resultMap="BaseResultMap">
        select * from monitor_point
        where
        <if test="areaCode != null">
            area_Code = #{areaCode}
        </if>
        <if test="cityCode != null">
            city_Code = #{cityCode}
        </if>
    </select>
</mapper>