From 48fad3582d81dd79423db1db5402d9f47fd5f30f Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: 星期四, 09 二月 2023 14:13:57 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/wvp-28181-2.0' into wvp-28181-2.0 --- src/main/java/com/genersoft/iot/vmp/storager/IVideoManagerStorage.java | 165 ++++++++++--------------------------------------------- 1 files changed, 30 insertions(+), 135 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 11d8b84..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,10 +2,8 @@ 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.bean.DeviceChannelTree; import com.genersoft.iot.vmp.vmanager.gb28181.platform.bean.ChannelReduce; import com.github.pagehelper.PageInfo; @@ -26,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); /** * 寮�濮嬫挱鏀� @@ -90,16 +56,10 @@ * @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); - /** - * 鑾峰彇鏌愪釜璁惧鐨勯�氶亾鏍� - * @param deviceId 璁惧ID - * @return - */ - List<DeviceChannelTree> tree(String deviceId); /** * 鑾峰彇鏌愪釜璁惧鐨勯�氶亾鍒楄〃 @@ -107,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); /** @@ -130,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(); /** @@ -180,7 +110,7 @@ * @param count * @return */ - PageInfo querySubChannels(String deviceId, String channelId, String query, Boolean hasSubChannel, String online, int page, int count); + PageInfo querySubChannels(String deviceId, String channelId, String query, Boolean hasSubChannel, Boolean online, int page, int count); /** @@ -208,15 +138,6 @@ * @param parentPlatform */ boolean deleteParentPlatform(ParentPlatform parentPlatform); - - - /** - * 鍒嗛〉鑾峰彇涓婄骇骞冲彴 - * @param page - * @param count - * @return - */ - PageInfo<ParentPlatform> queryParentPlatformList(int page, int count); /** * 鑾峰彇鎵�鏈夊凡鍚敤鐨勫钩鍙� @@ -247,13 +168,6 @@ List<DeviceChannelInPlatform> queryChannelListInParentPlatform(String platformId); - /** - * 鏇存柊涓婄骇骞冲彴鐨勯�氶亾淇℃伅 - * @param platformId - * @param channelReduces - * @return - */ - int updateChannelForGB(String platformId, List<ChannelReduce> channelReduces, String catalogId); /** * 绉婚櫎涓婄骇骞冲彴鐨勯�氶亾淇℃伅 @@ -271,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 @@ -285,7 +205,7 @@ * @param startTime * @param endTime */ - public List<MobilePosition> queryMobilePositions(String deviceId, String startTime, String endTime); + public List<MobilePosition> queryMobilePositions(String deviceId, String channelId, String startTime, String endTime); /** * 鏌ヨ鏈�鏂扮Щ鍔ㄤ綅缃� @@ -298,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悊娴� @@ -357,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); /** * 绉婚櫎鍗曚釜鎺ㄦ祦 @@ -378,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); @@ -401,10 +291,9 @@ * 鏍规嵁濯掍綋ID鑾峰彇鍚敤/涓嶅惎鐢ㄧ殑浠g悊鍒楄〃 * @param id 濯掍綋ID * @param enable 鍚敤/涓嶅惎鐢� - * @param status 鐘舵�� * @return */ - List<StreamProxyItem> getStreamProxyListForEnableInMediaServer(String id, boolean enable, boolean status); + List<StreamProxyItem> getStreamProxyListForEnableInMediaServer(String id, boolean enable); /** * 鏍规嵁閫氶亾ID鑾峰彇鍏舵墍鍦ㄨ澶� @@ -440,6 +329,8 @@ */ boolean resetChannels(String deviceId, List<DeviceChannel> deviceChannelList); + boolean updateChannels(String deviceId, List<DeviceChannel> deviceChannelList); + /** * 鑾峰彇鐩綍淇℃伅 * @param platformId @@ -458,7 +349,7 @@ int setDefaultCatalog(String platformId, String catalogId); - List<PlatformCatalog> queryCatalogInPlatform(String serverGBId); + List<DeviceChannel> queryCatalogInPlatform(String serverGBId); int delRelation(PlatformCatalog platformCatalog); @@ -478,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