新增根据 指定时间范围的 recordInfo 查询, 预下载视频文件到本地指定路径

This commit is contained in:
shikong 2024-02-06 15:30:09 +08:00
parent d6bd3e1f80
commit 67f48ad730
2 changed files with 2 additions and 0 deletions

View File

@ -37,6 +37,7 @@ chmod +x ./package-docker.sh
docker run --name gb28181-mocking --rm \ docker run --name gb28181-mocking --rm \
--log-opt max-size=1g \ --log-opt max-size=1g \
--network host \ --network host \
-v `pwd`/record:/tmp/record \
-v `pwd`/application.yml:/opt/gb28181-docking-platform-mocking/application.yml \ -v `pwd`/application.yml:/opt/gb28181-docking-platform-mocking/application.yml \
skcks.cn/gb28181-docking-platform-mocking:0.1.0-SNAPSHOT skcks.cn/gb28181-docking-platform-mocking:0.1.0-SNAPSHOT
``` ```

View File

@ -54,6 +54,7 @@ public class VideoCacheManager {
return StringUtils.joinWith("-", deviceCode, dateFormat(startTime), dateFormat(endTime)); return StringUtils.joinWith("-", deviceCode, dateFormat(startTime), dateFormat(endTime));
} }
@Async(MockingExecutor.EXECUTOR_BEAN_NAME)
public void addTask(String deviceCode, Date startTime, Date endTime){ public void addTask(String deviceCode, Date startTime, Date endTime){
String name = fileName(deviceCode, startTime, endTime); String name = fileName(deviceCode, startTime, endTime);
if(tasks.get(name) != null){ if(tasks.get(name) != null){