From fdbef2a3293e536be6b119e4e1e67cc8cc9842f0 Mon Sep 17 00:00:00 2001
From: jinpengyong <jpy123456>
Date: Fri, 08 Apr 2022 08:55:29 +0800
Subject: [PATCH] 空气质量排名报告

---
 screen-job/src/main/resources/mapper/HistoryAqiMapper.xml |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/screen-job/src/main/resources/mapper/HistoryAqiMapper.xml b/screen-job/src/main/resources/mapper/HistoryAqiMapper.xml
index 989a8f5..5b5e0ef 100644
--- a/screen-job/src/main/resources/mapper/HistoryAqiMapper.xml
+++ b/screen-job/src/main/resources/mapper/HistoryAqiMapper.xml
@@ -4,9 +4,17 @@
 
     <!-- ������������������������ -->
     <resultMap id="BaseResultMap" type="com.moral.api.entity.HistoryAqi">
-        <result column="city_code" property="cityCode"/>
+        <result column="guid" property="guid"/>
         <result column="time" property="time"/>
         <result column="value" property="value"/>
     </resultMap>
 
+    <insert id="insertHistoryAqi">
+        INSERT INTO history_aqi
+        VALUES
+        <foreach collection="list" item="item" separator=",">
+            (#{item.guid},#{item.time},#{item.value})
+        </foreach>
+    </insert>
+
 </mapper>
\ No newline at end of file

--
Gitblit v1.8.0