diff --git a/sql/2.6.9更新.sql b/sql/2.6.9更新.sql index 4e8ad6de..99ef2500 100644 --- a/sql/2.6.9更新.sql +++ b/sql/2.6.9更新.sql @@ -4,6 +4,8 @@ alter table wvp_device_channel alter table wvp_device_channel add common_gb_channel_id int - alter table wvp_platform add auto_push_channel bool default false + +alter table wvp_device + add auto_sync_channel bool default true diff --git a/sql/初始化.sql b/sql/初始化.sql index c21a81d2..e8542b1b 100644 --- a/sql/初始化.sql +++ b/sql/初始化.sql @@ -33,6 +33,7 @@ create table wvp_device ( keepalive_interval_time integer, switch_primary_sub_stream bool default false, broadcast_push_after_ack bool default false, + auto_sync_channel bool default true, constraint uk_device_device unique (device_id) ); diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/bean/Device.java b/src/main/java/com/genersoft/iot/vmp/gb28181/bean/Device.java index 34d624f4..431d2ed8 100644 --- a/src/main/java/com/genersoft/iot/vmp/gb28181/bean/Device.java +++ b/src/main/java/com/genersoft/iot/vmp/gb28181/bean/Device.java @@ -188,7 +188,8 @@ public class Device { @Schema(description = "设备注册的事务信息") private SipTransactionInfo sipTransactionInfo; - + @Schema(description = "自动同步通道信息到资源库") + private boolean autoSyncChannel; public String getDeviceId() { @@ -465,7 +466,11 @@ public class Device { this.switchPrimarySubStream = switchPrimarySubStream; } - /*======================设备主子码流逻辑END=========================*/ - + public boolean isAutoSyncChannel() { + return autoSyncChannel; + } + public void setAutoSyncChannel(boolean autoSyncChannel) { + this.autoSyncChannel = autoSyncChannel; + } }