From 33d898d8146223184fcaab82a9e16649434a1ab6 Mon Sep 17 00:00:00 2001 From: lizijie <lzjiiie@163.com> Date: Fri, 09 Sep 2022 17:47:54 +0800 Subject: [PATCH] 千灯数据转发bug修改 --- src/main/resources/mapper/HistoryFiveMinutelyMapper.xml | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/resources/mapper/HistoryFiveMinutelyMapper.xml b/src/main/resources/mapper/HistoryFiveMinutelyMapper.xml index 3cd8ad5..695c213 100644 --- a/src/main/resources/mapper/HistoryFiveMinutelyMapper.xml +++ b/src/main/resources/mapper/HistoryFiveMinutelyMapper.xml @@ -43,9 +43,11 @@ <update id="createHistoryFiveMinutely" parameterType="String"> CREATE TABLE IF NOT EXISTS `history_five_minutely_${yearAndMonth}` ( - `mac` varchar(20) CHARACTER SET latin1 DEFAULT NULL, + `mac` varchar(30) CHARACTER SET latin1 DEFAULT NULL, `time` datetime DEFAULT NULL, - `json` json DEFAULT NULL + `json` json DEFAULT NULL, + KEY `idx_time` (`time`), + KEY `idx_mac` (`mac`) ) ENGINE=INNODB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci </update> -- Gitblit v1.8.0