| | |
| | | </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> |
| | |
| | | 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> |