From cb59966a148f601c41e77637be701fda04251d91 Mon Sep 17 00:00:00 2001
From: lizijie <lzjiiie@163.com>
Date: Tue, 14 Jun 2022 14:14:53 +0800
Subject: [PATCH] 添加需要离线报警程序,分钟数据统计往前移一分钟

---
 src/main/resources/mapper/AlarmMapper.xml |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/main/resources/mapper/AlarmMapper.xml b/src/main/resources/mapper/AlarmMapper.xml
index 34705d9..e58a8b6 100644
--- a/src/main/resources/mapper/AlarmMapper.xml
+++ b/src/main/resources/mapper/AlarmMapper.xml
@@ -3,7 +3,6 @@
 <mapper namespace="com.moral.mapper.AlarmMapper">
     <select id="getAlarmData" resultType="java.util.LinkedHashMap">
         SELECT
-        mac,
         json_search ( json, 'all', '1' ) '1',
         json_search ( json, 'all', '2' ) '2',
         json_search ( json, 'all', '3' ) '3'
@@ -38,7 +37,7 @@
 
     <update id="createTable">
         CREATE TABLE IF NOT EXISTS `alarm_${yearAndMonth}` (
-        `mac` varchar(20) CHARACTER SET utf8 DEFAULT NULL,
+        `mac` varchar(30) CHARACTER SET utf8 DEFAULT NULL,
         `json` json DEFAULT NULL,
         `state` int(2) DEFAULT NULL,
         `time` datetime DEFAULT NULL,

--
Gitblit v1.8.0