src/main/resources/mapper/AQIMapper.xml
@@ -12,4 +12,14 @@ #{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 time >= #{startTime} AND time <![CDATA[<]]> #{endTime} and DATE_FORMAT(time, #{typeFormat}) like '%${time}' </select> </mapper>