From 59481e2c88aa090d4db633a6c61a1bcfd3dbe011 Mon Sep 17 00:00:00 2001 From: jinpengyong <jpy123456> Date: Mon, 11 Dec 2023 10:02:47 +0800 Subject: [PATCH] chore:疾控中心小时数据接口提交 --- 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