From 7055c53192aadf6af9444c81373ab256e760b808 Mon Sep 17 00:00:00 2001 From: hexq <hexiaoqu@visioninsight.com> Date: 星期六, 20 一月 2024 10:26:49 +0800 Subject: [PATCH] BUGFIX:回放时,优先从SDP中提取channelId,兼容从Subject无法提取到channelId的问题 --- src/main/java/com/genersoft/iot/vmp/storager/dao/CloudRecordServiceMapper.java | 21 +++++++++++++++++---- 1 files changed, 17 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/storager/dao/CloudRecordServiceMapper.java b/src/main/java/com/genersoft/iot/vmp/storager/dao/CloudRecordServiceMapper.java index 775fe29..08f67ba 100644 --- a/src/main/java/com/genersoft/iot/vmp/storager/dao/CloudRecordServiceMapper.java +++ b/src/main/java/com/genersoft/iot/vmp/storager/dao/CloudRecordServiceMapper.java @@ -91,7 +91,7 @@ @Select(" <script>" + "select *" + " from wvp_cloud_record " + - " where end_time <= #{endTimeStamp} and media_server_id = #{mediaServerId} " + + " where collect = false and end_time <= #{endTimeStamp} and media_server_id = #{mediaServerId} " + " </script>") List<CloudRecordItem> queryRecordListForDelete(@Param("endTimeStamp")Long endTimeStamp, String mediaServerId); @@ -101,9 +101,22 @@ int changeCollectById(@Param("collect") boolean collect, @Param("recordId") Integer recordId); @Delete(" <script>" + - "delete from wvp_cloud_record where media_server_id=#{mediaServerId} and id in " + - " <foreach collection='cloudRecordItemIdList' item='item' open='(' separator=',' close=')' > #{item}</foreach>" + + "delete from wvp_cloud_record where id in " + + " <foreach collection='cloudRecordItemIdList' item='item' open='(' separator=',' close=')' > #{item.id}</foreach>" + " </script>") - int deleteList(List<Integer> cloudRecordItemIdList, @Param("mediaServerId") String mediaServerId); + int deleteList(List<CloudRecordItem> cloudRecordItemIdList); + @Select(" <script>" + + "select *" + + " from wvp_cloud_record " + + "where call_id = #{callId}" + + " </script>") + List<CloudRecordItem> getListByCallId(@Param("callId") String callId); + + @Select(" <script>" + + "select *" + + " from wvp_cloud_record " + + "where id = #{id}" + + " </script>") + CloudRecordItem queryOne(@Param("id") Integer id); } -- Gitblit v1.8.0