From 33ddf707b56c305d131e59a2c8a1833ac7ba627d Mon Sep 17 00:00:00 2001
From: lawrencehj <65707521+lawrencehj@users.noreply.github.com>
Date: 星期三, 29 十二月 2021 18:08:33 +0800
Subject: [PATCH] 界面删除设备后同时删除Redis的对应条目,避免其它设备用同样IP登录时出现信息错误

---
 src/main/java/com/genersoft/iot/vmp/storager/dao/DeviceMapper.java |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/genersoft/iot/vmp/storager/dao/DeviceMapper.java b/src/main/java/com/genersoft/iot/vmp/storager/dao/DeviceMapper.java
index 68ad28d..ed2d8c8 100644
--- a/src/main/java/com/genersoft/iot/vmp/storager/dao/DeviceMapper.java
+++ b/src/main/java/com/genersoft/iot/vmp/storager/dao/DeviceMapper.java
@@ -33,6 +33,7 @@
                 "createTime," +
                 "updateTime," +
                 "charset," +
+                "subscribeCycleForCatalog," +
                 "online" +
             ") VALUES (" +
                 "#{deviceId}," +
@@ -51,6 +52,7 @@
                 "#{createTime}," +
                 "#{updateTime}," +
                 "#{charset}," +
+                "#{subscribeCycleForCatalog}," +
                 "#{online}" +
             ")")
     int add(Device device);
@@ -72,6 +74,7 @@
                 "<if test=\"keepaliveTime != null\">, keepaliveTime='${keepaliveTime}'</if>" +
                 "<if test=\"expires != null\">, expires=${expires}</if>" +
                 "<if test=\"charset != null\">, charset='${charset}'</if>" +
+                "<if test=\"subscribeCycleForCatalog != null\">, subscribeCycleForCatalog=#{subscribeCycleForCatalog}</if>" +
                 "WHERE deviceId='${deviceId}'"+
             " </script>"})
     int update(Device device);

--
Gitblit v1.8.0