From 566d222bfd368ef10ceefd49e2cb73350631156a Mon Sep 17 00:00:00 2001
From: 648540858 <648540858@qq.com>
Date: 星期二, 19 十月 2021 10:20:16 +0800
Subject: [PATCH] 更新readme
---
src/main/java/com/genersoft/iot/vmp/storager/dao/ParentPlatformMapper.java | 22 ++++++++++++++++++----
1 files changed, 18 insertions(+), 4 deletions(-)
diff --git a/src/main/java/com/genersoft/iot/vmp/storager/dao/ParentPlatformMapper.java b/src/main/java/com/genersoft/iot/vmp/storager/dao/ParentPlatformMapper.java
index 3049e5b..bb81171 100644
--- a/src/main/java/com/genersoft/iot/vmp/storager/dao/ParentPlatformMapper.java
+++ b/src/main/java/com/genersoft/iot/vmp/storager/dao/ParentPlatformMapper.java
@@ -25,6 +25,7 @@
"SET enable=#{enable}, " +
"name=#{name}," +
"deviceGBId=#{deviceGBId}," +
+ "serverGBId=#{serverGBId}, " +
"serverGBDomain=#{serverGBDomain}, " +
"serverIP=#{serverIP}," +
"serverPort=#{serverPort}, " +
@@ -39,21 +40,34 @@
"ptz=#{ptz}, " +
"rtcp=#{rtcp}, " +
"status=#{status} " +
- "WHERE serverGBId=#{serverGBId}")
+ "WHERE id=#{id}")
int updateParentPlatform(ParentPlatform parentPlatform);
@Delete("DELETE FROM parent_platform WHERE serverGBId=#{serverGBId}")
int delParentPlatform(ParentPlatform parentPlatform);
- @Select("SELECT *,( SELECT count(0) FROM platform_gb_channel pc WHERE pc.platformId = pp.serverGBId) as channelCount FROM parent_platform pp ")
+ @Select("SELECT *, ((SELECT count(0)\n" +
+ " FROM platform_gb_channel pc\n" +
+ " WHERE pc.platformId = pp.serverGBId)\n" +
+ " +\n" +
+ " (SELECT count(0)\n" +
+ " FROM platform_gb_stream pgs\n" +
+ " WHERE pgs.platformId = pp.serverGBId)) as channelCount\n" +
+ "FROM parent_platform pp ")
List<ParentPlatform> getParentPlatformList();
@Select("SELECT * FROM parent_platform WHERE enable=#{enable}")
List<ParentPlatform> getEnableParentPlatformList(boolean enable);
@Select("SELECT * FROM parent_platform WHERE serverGBId=#{platformGbId}")
- ParentPlatform getParentPlatById(String platformGbId);
+ ParentPlatform getParentPlatByServerGBId(String platformGbId);
+
+ @Select("SELECT * FROM parent_platform WHERE id=#{id}")
+ ParentPlatform getParentPlatById(int id);
@Update("UPDATE parent_platform SET status=false" )
- void outlineForAllParentPlatform();
+ int outlineForAllParentPlatform();
+
+ @Update("UPDATE parent_platform SET status=#{online} WHERE serverGBId=#{platformGbID}" )
+ int updateParentPlatformStatus(String platformGbID, boolean online);
}
--
Gitblit v1.8.0