From 48bb075f91c5daf35cff0a16abe1136f132aafb4 Mon Sep 17 00:00:00 2001 From: jinpengyong <jpy123456> Date: Mon, 28 Sep 2020 15:40:26 +0800 Subject: [PATCH] 不同天气给定不同分数 --- src/main/resources/mapper/AQIMapper.xml | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/AQIMapper.xml b/src/main/resources/mapper/AQIMapper.xml index 54d35f5..48c605f 100644 --- a/src/main/resources/mapper/AQIMapper.xml +++ b/src/main/resources/mapper/AQIMapper.xml @@ -23,4 +23,12 @@ #{time} </foreach> </select> + + <select id="getAqiByHour" resultType="java.util.Map"> + select DATE_FORMAT(time, '%Y-%m-%d %H:%i:%s') time, + value + from history_aqi_${timeUnits} + where city_code=#{cityCode} + and DATE_FORMAT(time, '%Y%H')=#{yearAndHour} + </select> </mapper> \ No newline at end of file -- Gitblit v1.8.0