修改查询进度 #162

Merged
qtz merged 2 commits from qtz3 into dev 2023-10-31 05:31:05 +00:00
Showing only changes of commit 0c8910512a - Show all commits
@@ -222,7 +222,8 @@ public class VideoServiceImpl implements VideoService {
fileName=fileId+fileName;
String absPath = getAbsoluteFile(RuoYiConfig.getVideoUploadPath(), fileName).getAbsolutePath();
staticAndMksDir = Paths.get(absPath).toFile().toString();
HttpUtil.downloadFile(fileUrl, staticAndMksDir );
long downloadFile = HttpUtil.downloadFile(fileUrl, staticAndMksDir);
if(downloadFile>0) {
Long caseId = caseApplicationMapper.selectCaseIdByRoomId(roomId);
String annexName = getPathFileName(RuoYiConfig.getVideoUploadPath(), fileName);
// 存入数据库
@@ -234,6 +235,7 @@ public class VideoServiceImpl implements VideoService {
caseAttachMapper.save(caseAttach);
return annexName;
}
}
return "";
}