From 31549bce0966d5c19f7b63201c4ec8a9d2c632e6 Mon Sep 17 00:00:00 2001 From: lin <648540858@qq.com> Date: Sun, 25 Jan 2026 21:59:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E5=BF=83=E8=B7=B3=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E5=85=A5=E5=BA=93=EF=BC=8C=E6=8F=90=E5=8D=87=E6=80=A7?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../iot/vmp/common/VideoManagerConstants.java | 2 ++ .../iot/vmp/gb28181/dao/DeviceMapper.java | 33 ------------------- .../vmp/gb28181/service/IDeviceService.java | 3 -- .../service/impl/DeviceServiceImpl.java | 31 ++--------------- .../cmd/KeepaliveNotifyMessageHandler.java | 4 +-- .../iot/vmp/storager/IRedisCatchStorage.java | 3 ++ .../storager/impl/RedisCatchStorageImpl.java | 25 ++++++++++++++ web/src/views/device/list.vue | 2 -- 数据库/2.7.4/初始化-mysql-2.7.4.sql | 2 -- .../2.7.4/初始化-postgresql-kingbase-2.7.4.sql | 4 --- 数据库/2.7.4/更新-mysql-2.7.4.sql | 21 ++++++++++++ .../2.7.4/更新-postgresql-kingbase-2.7.4.sql | 3 ++ 12 files changed, 57 insertions(+), 76 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/common/VideoManagerConstants.java b/src/main/java/com/genersoft/iot/vmp/common/VideoManagerConstants.java index e89695aff..2cbe4a745 100644 --- a/src/main/java/com/genersoft/iot/vmp/common/VideoManagerConstants.java +++ b/src/main/java/com/genersoft/iot/vmp/common/VideoManagerConstants.java @@ -19,6 +19,8 @@ public class VideoManagerConstants { public static final String ONLINE_MEDIA_SERVERS_PREFIX = "VMP_ONLINE_MEDIA_SERVERS:"; public static final String DEVICE_PREFIX = "VMP_DEVICE_INFO"; + public static final String DEVICE_KEEPALIVE_PREFIX = "DEVICE_KEEPALIVE:"; + public static final String DEVICE_REGISTER_PREFIX = "DEVICE_REGISTER:"; public static final String INVITE_PREFIX = "VMP_GB_INVITE_INFO"; diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/dao/DeviceMapper.java b/src/main/java/com/genersoft/iot/vmp/gb28181/dao/DeviceMapper.java index a92028b7b..a14528352 100755 --- a/src/main/java/com/genersoft/iot/vmp/gb28181/dao/DeviceMapper.java +++ b/src/main/java/com/genersoft/iot/vmp/gb28181/dao/DeviceMapper.java @@ -30,8 +30,6 @@ public interface DeviceMapper { "port," + "host_address," + "expires," + - "register_time," + - "keepalive_time," + "create_time," + "update_time," + "charset," + @@ -65,8 +63,6 @@ public interface DeviceMapper { "port," + "host_address," + "expires," + - "register_time," + - "keepalive_time," + "heart_beat_interval," + "heart_beat_count," + "position_capability," + @@ -98,8 +94,6 @@ public interface DeviceMapper { "#{port}," + "#{hostAddress}," + "#{expires}," + - "#{registerTime}," + - "#{keepaliveTime}," + "#{heartBeatInterval}," + "#{heartBeatCount}," + "#{positionCapability}," + @@ -133,8 +127,6 @@ public interface DeviceMapper { ", port=#{port}" + ", host_address=#{hostAddress}" + ", on_line=#{onLine}" + - ", register_time=#{registerTime}" + - ", keepalive_time=#{keepaliveTime}" + ", heart_beat_interval=#{heartBeatInterval}" + ", position_capability=#{positionCapability}" + ", heart_beat_count=#{heartBeatCount}" + @@ -166,8 +158,6 @@ public interface DeviceMapper { "port,"+ "host_address,"+ "expires,"+ - "register_time,"+ - "keepalive_time,"+ "create_time,"+ "update_time,"+ "charset,"+ @@ -208,8 +198,6 @@ public interface DeviceMapper { "port,"+ "host_address,"+ "expires,"+ - "register_time,"+ - "keepalive_time,"+ "create_time,"+ "update_time,"+ "charset,"+ @@ -242,8 +230,6 @@ public interface DeviceMapper { "port,"+ "host_address,"+ "expires,"+ - "register_time,"+ - "keepalive_time,"+ "create_time,"+ "update_time,"+ "charset,"+ @@ -277,8 +263,6 @@ public interface DeviceMapper { "port,"+ "host_address,"+ "expires,"+ - "register_time,"+ - "keepalive_time,"+ "create_time,"+ "update_time,"+ "charset,"+ @@ -356,8 +340,6 @@ public interface DeviceMapper { ",transport" + ",stream_mode" + ",on_line" + - ",register_time" + - ",keepalive_time" + ",ip" + ",create_time" + ",update_time" + @@ -444,8 +426,6 @@ public interface DeviceMapper { ", port=#{item.port}" + ", host_address=#{item.hostAddress}" + ", on_line=#{item.onLine}" + - ", register_time=#{item.registerTime}" + - ", keepalive_time=#{item.keepaliveTime}" + ", heart_beat_interval=#{item.heartBeatInterval}" + ", position_capability=#{item.positionCapability}" + ", heart_beat_count=#{item.heartBeatCount}" + @@ -460,17 +440,6 @@ public interface DeviceMapper { ""}) void batchUpdate(List devices); - @Update({""}) - void batchUpdateForKeepalive(List devices); - - @Select(value = {"