From ed8c07e1870d8cd2151355ea34019a3f02087568 Mon Sep 17 00:00:00 2001
From: lizijie <lzjiiie@163.com>
Date: Thu, 26 May 2022 16:05:10 +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