From e5b1876012fc76f7ea273fa35e1262b067891bac Mon Sep 17 00:00:00 2001
From: gaofw189 <gaofw189@chinatelecom.cn>
Date: 星期四, 02 二月 2023 18:24:32 +0800
Subject: [PATCH] 修复WVP作为下级平台接收上级平台DeviceControl信令不做处理的问题。-修改日志备注

---
 src/main/java/com/genersoft/iot/vmp/storager/IVideoManagerStorage.java |  151 +++++++++-----------------------------------------
 1 files changed, 27 insertions(+), 124 deletions(-)

diff --git a/src/main/java/com/genersoft/iot/vmp/storager/IVideoManagerStorage.java b/src/main/java/com/genersoft/iot/vmp/storager/IVideoManagerStorage.java
index d3a9ae9..0b0a7d9 100644
--- a/src/main/java/com/genersoft/iot/vmp/storager/IVideoManagerStorage.java
+++ b/src/main/java/com/genersoft/iot/vmp/storager/IVideoManagerStorage.java
@@ -2,7 +2,6 @@
 
 import com.genersoft.iot.vmp.gb28181.bean.*;
 import com.genersoft.iot.vmp.media.zlm.dto.StreamProxyItem;
-import com.genersoft.iot.vmp.media.zlm.dto.StreamPushItem;
 import com.genersoft.iot.vmp.service.bean.GPSMsgInfo;
 import com.genersoft.iot.vmp.storager.dao.dto.ChannelSourceInfo;
 import com.genersoft.iot.vmp.vmanager.gb28181.platform.bean.ChannelReduce;
@@ -25,38 +24,6 @@
 	 * @return true:瀛樺湪  false锛氫笉瀛樺湪
 	 */
 	public boolean exists(String deviceId);
-	
-	/**   
-	 * 瑙嗛璁惧鍒涘缓
-	 * 
-	 * @param device 璁惧瀵硅薄
-	 * @return true锛氬垱寤烘垚鍔�  false锛氬垱寤哄け璐�
-	 */
-	public boolean create(Device device);
-	
-	/**   
-	 * 瑙嗛璁惧鏇存柊
-	 * 
-	 * @param device 璁惧瀵硅薄
-	 * @return true锛氬垱寤烘垚鍔�  false锛氬垱寤哄け璐�
-	 */
-	public boolean updateDevice(Device device);
-
-	/**
-	 * 娣诲姞璁惧閫氶亾
-	 *
-	 * @param deviceId 璁惧id
-	 * @param channel 閫氶亾
-	 */
-	public void updateChannel(String deviceId, DeviceChannel channel);
-
-	/**
-	 * 鎵归噺娣诲姞璁惧閫氶亾
-	 *
-	 * @param deviceId 璁惧id
-	 * @param channels 澶氫釜閫氶亾
-	 */
-	public int updateChannels(String deviceId, List<DeviceChannel> channels);
 
 	/**
 	 * 寮�濮嬫挱鏀�
@@ -89,9 +56,9 @@
 	 * @param count 姣忛〉鏁伴噺
 	 * @return
 	 */
-	public PageInfo queryChannelsByDeviceId(String deviceId, String query, Boolean hasSubChannel, Boolean online, int page, int count);
+	public PageInfo queryChannelsByDeviceId(String deviceId, String query, Boolean hasSubChannel, Boolean online, Boolean catalogUnderDevice, int page, int count);
 	
-	public List<DeviceChannel> queryChannelsByDeviceIdWithStartAndLimit(String deviceId, String query, Boolean hasSubChannel, Boolean online, int start, int limit);
+	public List<DeviceChannel> queryChannelsByDeviceIdWithStartAndLimit(String deviceId, String query, Boolean hasSubChannel, Boolean online, int start, int limit,List<String> channelIds);
 
 
 	/**
@@ -100,7 +67,7 @@
 	 * @param deviceId 璁惧ID
 	 * @return
 	 */
-	public List<DeviceChannel> queryChannelsByDeviceId(String deviceId);
+	public List<DeviceChannel> queryChannelsByDeviceId(String deviceId,Boolean online,List<String> channelIds);
 	public List<DeviceChannel> queryOnlineChannelsByDeviceId(String deviceId);
 
 	/**
@@ -123,45 +90,15 @@
 	 * @param count 姣忛〉鏁伴噺
 	 * @return List<Device> 璁惧瀵硅薄鏁扮粍
 	 */
-	public PageInfo<Device> queryVideoDeviceList(int page, int count);
+	public PageInfo<Device> queryVideoDeviceList(int page, int count,Boolean online);
 
 	/**
 	 * 鑾峰彇澶氫釜璁惧
 	 *
 	 * @return List<Device> 璁惧瀵硅薄鏁扮粍
 	 */
-	public List<Device> queryVideoDeviceList();
+	public List<Device> queryVideoDeviceList(Boolean online);
 
-	/**   
-	 * 鍒犻櫎璁惧
-	 * 
-	 * @param deviceId 璁惧ID
-	 * @return true锛氬垹闄ゆ垚鍔�  false锛氬垹闄ゅけ璐�
-	 */
-	public boolean delete(String deviceId);
-	
-	/**   
-	 * 鏇存柊璁惧鍦ㄧ嚎
-	 * 
-	 * @param deviceId 璁惧ID
-	 * @return true锛氭洿鏂版垚鍔�  false锛氭洿鏂板け璐�
-	 */
-	public boolean online(String deviceId);
-	
-	/**   
-	 * 鏇存柊璁惧绂荤嚎
-	 * 
-	 * @param deviceId 璁惧ID
-	 * @return true锛氭洿鏂版垚鍔�  false锛氭洿鏂板け璐�
-	 */
-	public boolean outline(String deviceId);
-
-	/**
-	 * 鏇存柊鎵�鏈夎澶囩绾�
-	 *
-	 * @return true锛氭洿鏂版垚鍔�  false锛氭洿鏂板け璐�
-	 */
-	public boolean outlineForAll();
 
 
 	/**
@@ -202,15 +139,6 @@
 	 */
 	boolean deleteParentPlatform(ParentPlatform parentPlatform);
 
-
-	/**
-	 * 鍒嗛〉鑾峰彇涓婄骇骞冲彴
-	 * @param page
-	 * @param count
-	 * @return
-	 */
-	PageInfo<ParentPlatform> queryParentPlatformList(int page, int count);
-
 	/**
 	 * 鑾峰彇鎵�鏈夊凡鍚敤鐨勫钩鍙�
 	 * @return
@@ -240,13 +168,6 @@
 	List<DeviceChannelInPlatform> queryChannelListInParentPlatform(String platformId);
 
 
-	/**
-	 * 鏇存柊涓婄骇骞冲彴鐨勯�氶亾淇℃伅
-	 * @param platformId
-	 * @param channelReduces
-	 * @return
-	 */
-	int updateChannelForGB(String platformId, List<ChannelReduce> channelReduces, String catalogId);
 
 	/**
 	 *  绉婚櫎涓婄骇骞冲彴鐨勯�氶亾淇℃伅
@@ -264,7 +185,13 @@
 
     Device queryVideoDeviceByPlatformIdAndChannelId(String platformId, String channelId);
 
-
+	/**
+	 * 閽堝deviceinfo鎸囦护鐨勬煡璇㈡帴鍙�
+	 * @param platformId 骞冲彴id
+	 * @param channelId 閫氶亾id
+	 * @return 璁惧淇℃伅
+	 */
+	Device queryDeviceInfoByPlatformIdAndChannelId(String platformId, String channelId);
 	/**
 	 * 娣诲姞Mobile Position璁惧绉诲姩浣嶇疆
 	 * @param mobilePosition
@@ -291,20 +218,6 @@
 	 * @param deviceId
 	 */
 	public int clearMobilePositionsByDeviceId(String deviceId);
-
-	/**
-	 * 鏂板浠g悊娴�
-	 * @param streamProxyDto
-	 * @return
-	 */
-	public boolean addStreamProxy(StreamProxyItem streamProxyDto);
-
-	/**
-	 * 鏇存柊浠g悊娴�
-	 * @param streamProxyDto
-	 * @return
-	 */
-	public boolean updateStreamProxy(StreamProxyItem streamProxyDto);
 
 	/**
 	 * 绉婚櫎浠g悊娴�
@@ -350,19 +263,7 @@
 	 * @param platformId
 	 * @return
 	 */
-	List<GbStream> queryGbStreamListInPlatform(String platformId);
-
-	/**
-	 * 鎵归噺鏇存柊鎺ㄦ祦鍒楄〃
-	 * @param streamPushItems
-	 */
-	void updateMediaList(List<StreamPushItem> streamPushItems);
-
-	/**
-	 * 鏇存柊鍗曚釜鎺ㄦ祦
-	 * @param streamPushItem
-	 */
-	void updateMedia(StreamPushItem streamPushItem);
+	List<DeviceChannel> queryGbStreamListInPlatform(String platformId);
 
 	/**
 	 * 绉婚櫎鍗曚釜鎺ㄦ祦
@@ -371,22 +272,18 @@
 	 */
 	int removeMedia(String app, String stream);
 
-
-	/**
-	 * 娓呯┖鎺ㄦ祦鍒楄〃
-	 */
-	void clearMediaList();
-
 	/**
 	 * 璁剧疆娴佺绾�
-	 * @param app
-	 * @param streamId
 	 */
-	int mediaOutline(String app, String streamId);
+	int mediaOffline(String app, String streamId);
+
+	/**
+	 * 璁剧疆娴佷笂绾�
+	 */
+	int mediaOnline(String app, String streamId);
 
 	/**
 	 * 璁剧疆骞冲彴鍦ㄧ嚎/绂荤嚎
-	 * @param online
 	 */
 	void updateParentPlatformStatus(String platformGbID, boolean online);
 
@@ -432,6 +329,8 @@
 	 */
 	boolean resetChannels(String deviceId, List<DeviceChannel> deviceChannelList);
 
+	boolean updateChannels(String deviceId, List<DeviceChannel> deviceChannelList);
+
 	/**
 	 * 鑾峰彇鐩綍淇℃伅
 	 * @param platformId
@@ -450,7 +349,7 @@
 
 	int setDefaultCatalog(String platformId, String catalogId);
 
-	List<PlatformCatalog> queryCatalogInPlatform(String serverGBId);
+	List<DeviceChannel> queryCatalogInPlatform(String serverGBId);
 
     int delRelation(PlatformCatalog platformCatalog);
 
@@ -470,5 +369,9 @@
 
 	List<ChannelSourceInfo> getChannelSource(String platformId, String gbId);
 
-    void updateChannelPotion(String deviceId, String channelId, double longitude, double latitude);
+    void updateChannelPosition(DeviceChannel deviceChannel);
+
+	void cleanContentForPlatform(String serverGBId);
+
+	List<DeviceChannel> queryChannelWithCatalog(String serverGBId);
 }

--
Gitblit v1.8.0