diff --git a/libs/jdbc-aarch/kingbase8-8.6.0.jar b/libs/jdbc-aarch/kingbase8-8.6.0.jar
new file mode 100644
index 00000000..489bf53d
Binary files /dev/null and b/libs/jdbc-aarch/kingbase8-8.6.0.jar differ
diff --git a/libs/jdbc-aarch/kingbase8-8.6.0.jre7.jar b/libs/jdbc-aarch/kingbase8-8.6.0.jre7.jar
new file mode 100644
index 00000000..28102eb9
Binary files /dev/null and b/libs/jdbc-aarch/kingbase8-8.6.0.jre7.jar differ
diff --git a/libs/jdbc-aarch/postgresql-42.2.9.jar b/libs/jdbc-aarch/postgresql-42.2.9.jar
new file mode 100644
index 00000000..62d0b6da
Binary files /dev/null and b/libs/jdbc-aarch/postgresql-42.2.9.jar differ
diff --git a/libs/jdbc-aarch/postgresql-42.2.9.jre7.jar b/libs/jdbc-aarch/postgresql-42.2.9.jre7.jar
new file mode 100644
index 00000000..f6077b61
Binary files /dev/null and b/libs/jdbc-aarch/postgresql-42.2.9.jre7.jar differ
diff --git a/pom.xml b/pom.xml
index 90c385ce..bb0de72f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -142,13 +142,23 @@
42.5.1
-
+
+
+
+
+ com.kingbase
+ kingbase8
+ 8.6.0
+ system
+ ${basedir}/libs/jdbc-aarch/kingbase8-8.6.0.jar
+
com.github.pagehelper
pagehelper-spring-boot-starter
- 1.4.3
+ 1.4.6
diff --git a/sql/2.6.8升级2.6.9.sql b/sql/2.6.8升级2.6.9.sql
index 32baaa81..f27eebdb 100644
--- a/sql/2.6.8升级2.6.9.sql
+++ b/sql/2.6.8升级2.6.9.sql
@@ -55,6 +55,9 @@ alter table device
alter table device
change keepaliveIntervalTime keepalive_interval_time int null;
+alter table device
+ change online on_line varchar(50) null;
+
alter table device_alarm
change deviceId device_id varchar(50) not null;
@@ -393,10 +396,6 @@ alter table stream_push
alter table stream_push
change status status bool default false;
-
-alter table stream_push
- change serverId server_id varchar(50) not null;
-
alter table stream_push
change pushTime push_time varchar(50) null;
@@ -412,6 +411,11 @@ alter table stream_push
alter table stream_push
change self self bool default false;
+alter table wvp_stream_push
+ drop column serverId;
+
+
+
alter table user
change roleId role_id int not null;
diff --git a/sql/初始化.sql b/sql/初始化.sql
index b4db185f..f29a9242 100644
--- a/sql/初始化.sql
+++ b/sql/初始化.sql
@@ -252,7 +252,6 @@ create table wvp_stream_push (
create_time character varying(50),
alive_second integer,
media_server_id character varying(50),
- server_id character varying(50),
push_time character varying(50),
status bool default false,
update_time character varying(50),
diff --git a/src/main/java/com/genersoft/iot/vmp/storager/dao/StreamPushMapper.java b/src/main/java/com/genersoft/iot/vmp/storager/dao/StreamPushMapper.java
index 63fea06b..45ed4f80 100644
--- a/src/main/java/com/genersoft/iot/vmp/storager/dao/StreamPushMapper.java
+++ b/src/main/java/com/genersoft/iot/vmp/storager/dao/StreamPushMapper.java
@@ -102,7 +102,15 @@ public interface StreamPushMapper {
@Delete("DELETE FROM wvp_stream_push")
void clear();
- @Delete("DELETE sp FROM wvp_stream_push sp left join wvp_gb_stream gs on gs.app = sp.app and gs.stream= sp.stream WHERE sp.media_server_id=#{mediaServerId} and gs.gb_id is null ")
+ @Delete("delete" +
+ " from wvp_stream_push " +
+ " where id in " +
+ " (select temp.id from " +
+ " (select wgs.gb_stream_id as id " +
+ " from wvp_gb_stream wgs" +
+ " left join wvp_stream_push sp on sp.id = wgs.gb_stream_id" +
+ " where wgs.gb_id is null and wgs.media_server_id = #{mediaServerId}) temp)"
+ )
void deleteWithoutGBId(String mediaServerId);
@Select("SELECT * FROM wvp_stream_push WHERE media_server_id=#{mediaServerId}")