lizijie
2020-09-10 9e95a732c62d7ebef9c8c48940ca12552a19b11d
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>