From 129e7dde5da351e111c53d34b7dfa0d4c1f896ef Mon Sep 17 00:00:00 2001
From: kaiyu <404897439@qq.com>
Date: Tue, 08 Dec 2020 10:09:53 +0800
Subject: [PATCH] 添加网页版获取单台设备一个小时AQI接口以及获取单台设备的某一个传感器月平均值

---
 src/main/resources/mapper/ForecastWeatherMapper.xml |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/mapper/ForecastWeatherMapper.xml b/src/main/resources/mapper/ForecastWeatherMapper.xml
index d9403c5..9ce0208 100644
--- a/src/main/resources/mapper/ForecastWeatherMapper.xml
+++ b/src/main/resources/mapper/ForecastWeatherMapper.xml
@@ -7,7 +7,7 @@
     <select id="getForecastHour" resultType="java.util.Map">
         SELECT
         DATE_FORMAT(time, #{typeFormat}) time,
-        json->'$.O3C' 'O3'
+        json->'$.${sensor1}' '${sensor2}'
         from forecast_weather
         where time >= #{start}
         AND time <![CDATA[<]]> #{end}

--
Gitblit v1.8.0