From 9f16b5c553b479ea12fe368a7ecc748872ea8b98 Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期四, 12 六月 2025 11:11:27 +0800
Subject: [PATCH] 修改配置文件
---
src/main/java/com/genersoft/iot/vmp/storager/dao/CloudRecordServiceMapper.java | 26 +++++++++++++++++++++-----
1 files changed, 21 insertions(+), 5 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 d51f3f9..af1b424 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
@@ -1,6 +1,6 @@
package com.genersoft.iot.vmp.storager.dao;
-import com.genersoft.iot.vmp.media.zlm.dto.MediaServerItem;
+import com.genersoft.iot.vmp.media.bean.MediaServer;
import com.genersoft.iot.vmp.service.bean.CloudRecordItem;
import org.apache.ibatis.annotations.*;
@@ -50,12 +50,15 @@
" <if test= 'mediaServerItemList != null ' > and media_server_id in " +
" <foreach collection='mediaServerItemList' item='item' open='(' separator=',' close=')' > #{item.id}</foreach>" +
" </if>" +
- " order by start_time DESC" +
-
+ " <if test= 'ids != null ' > and id in " +
+ " <foreach collection='ids' item='item' open='(' separator=',' close=')' > #{item}</foreach>" +
+ " </if>" +
+ " order by start_time ASC" +
" </script>")
List<CloudRecordItem> getList(@Param("query") String query, @Param("app") String app, @Param("stream") String stream,
@Param("startTimeStamp")Long startTimeStamp, @Param("endTimeStamp")Long endTimeStamp,
- @Param("callId")String callId, List<MediaServerItem> mediaServerItemList);
+ @Param("callId")String callId, List<MediaServer> mediaServerItemList,
+ List<Integer> ids);
@Select(" <script>" +
@@ -73,7 +76,7 @@
" </script>")
List<String> queryRecordFilePathList(@Param("app") String app, @Param("stream") String stream,
@Param("startTimeStamp")Long startTimeStamp, @Param("endTimeStamp")Long endTimeStamp,
- @Param("callId")String callId, List<MediaServerItem> mediaServerItemList);
+ @Param("callId")String callId, List<MediaServer> mediaServerItemList);
@Update(" <script>" +
"update wvp_cloud_record set collect = #{collect} where file_path in " +
@@ -106,4 +109,17 @@
" </script>")
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