From bb082ca3ada32bf46654aa5f0f35d00b504ffa0b Mon Sep 17 00:00:00 2001
From: jinpengyong <jpy123456>
Date: Fri, 19 Feb 2021 17:40:40 +0800
Subject: [PATCH] 接入徐州黄河新村和淮塔国控数据

---
 src/main/resources/mapper/AQIMapper.xml |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/AQIMapper.xml b/src/main/resources/mapper/AQIMapper.xml
index 34beeb3..2e80b9d 100644
--- a/src/main/resources/mapper/AQIMapper.xml
+++ b/src/main/resources/mapper/AQIMapper.xml
@@ -13,6 +13,19 @@
         )
     </insert>
 
+    <select id="getStationConfig" resultType="java.util.Map">
+        select station_code,city_code from aqi_station_config
+    </select>
+
+    <insert id="insertStationData">
+        insert into
+        history_aqi_station
+        values
+        <foreach collection="list" item="item" separator=",">
+            (#{item.time},#{item.json},#{item.stationCode},#{item.cityCode})
+        </foreach>
+    </insert>
+
     <select id="getO3" resultType="java.util.Map">
         select DATE_FORMAT(time, #{typeFormat}) time,
         ifnull(aqi_json->'$.O3C',aqi_json->'$.O3') 'O3'

--
Gitblit v1.8.0