From 5f0309873da78fa53b8ed1e79523a43ad1ee48b1 Mon Sep 17 00:00:00 2001
From: cjl <909710561@qq.com>
Date: Tue, 23 Apr 2024 15:26:55 +0800
Subject: [PATCH] fix:因子查询调整

---
 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..78b9ab9 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