From a1e9af695c983b3209c2b80a505d1b4e45af3b37 Mon Sep 17 00:00:00 2001
From: lizijie <lzjiiie@163.com>
Date: Thu, 16 Sep 2021 11:40:20 +0800
Subject: [PATCH] 特殊设备因子相关接口刷新缓存
---
screen-job/src/main/resources/mapper/HistoryHourlyMapper.xml | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/screen-job/src/main/resources/mapper/HistoryHourlyMapper.xml b/screen-job/src/main/resources/mapper/HistoryHourlyMapper.xml
index bd1b0e3..6b4558a 100644
--- a/screen-job/src/main/resources/mapper/HistoryHourlyMapper.xml
+++ b/screen-job/src/main/resources/mapper/HistoryHourlyMapper.xml
@@ -7,12 +7,13 @@
`mac` VARCHAR (20) DEFAULT NULL COMMENT '������mac',
`time` datetime DEFAULT NULL COMMENT '������������',
`value` json DEFAULT NULL COMMENT '������',
+ `version` INT(11) DEFAULT NULL COMMENT '������',
KEY `idx_mac_time` (`mac`,`time`)
) ENGINE=INNODB DEFAULT CHARSET=utf8 COMMENT '���������������'
</update>
<insert id="insertHistoryHourly">
- INSERT INTO history_hourly VALUES
+ INSERT INTO history_hourly_${timeUnits} VALUES
<foreach collection="list" item="item" separator=",">
(#{item.mac}, #{item.time}, #{item.value}, #{item.version})
</foreach>
--
Gitblit v1.8.0