src/main/resources/mapper/AQIMapper.xml
@@ -18,8 +18,9 @@ ifnull(aqi_json->'$.O3C',aqi_json->'$.O3') 'O3' from hangzhou_aqi where city_code=#{cityCode} and time >= #{startTime} AND time <![CDATA[<]]> #{endTime} and DATE_FORMAT(time, #{typeFormat}) like '%${time}' and DATE_FORMAT(time, #{typeFormat}) in <foreach collection="times" open="(" separator="," close=")" item="time"> #{time} </foreach> </select> </mapper>