lizijie
2020-09-10 807be02a202a3d1fb3ce72dc765fe9993227c71a
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>