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/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