src/main/resources/mapper/AQIMapper.xml
@@ -12,4 +12,15 @@ #{code} ) </insert> <select id="getO3" resultType="java.util.Map"> select DATE_FORMAT(time, #{typeFormat}) time, ifnull(aqi_json->'$.O3C',aqi_json->'$.O3') 'O3' from hangzhou_aqi where city_code=#{cityCode} and DATE_FORMAT(time, #{typeFormat}) in <foreach collection="times" open="(" separator="," close=")" item="time"> #{time} </foreach> </select> </mapper>