Merge branch 'dev' of http://git.xayunmei.com/SH-Arbitrate/Arbitrate-Backend into qtz3
This commit is contained in:
+13
-11
@@ -222,17 +222,19 @@ public class VideoServiceImpl implements VideoService {
|
|||||||
fileName=fileId+fileName;
|
fileName=fileId+fileName;
|
||||||
String absPath = getAbsoluteFile(RuoYiConfig.getVideoUploadPath(), fileName).getAbsolutePath();
|
String absPath = getAbsoluteFile(RuoYiConfig.getVideoUploadPath(), fileName).getAbsolutePath();
|
||||||
staticAndMksDir = Paths.get(absPath).toFile().toString();
|
staticAndMksDir = Paths.get(absPath).toFile().toString();
|
||||||
HttpUtil.downloadFile(fileUrl, staticAndMksDir );
|
long downloadFile = HttpUtil.downloadFile(fileUrl, staticAndMksDir);
|
||||||
Long caseId= caseApplicationMapper.selectCaseIdByRoomId(roomId);
|
if(downloadFile>0) {
|
||||||
String annexName = getPathFileName(RuoYiConfig.getVideoUploadPath(), fileName);
|
Long caseId = caseApplicationMapper.selectCaseIdByRoomId(roomId);
|
||||||
// 存入数据库
|
String annexName = getPathFileName(RuoYiConfig.getVideoUploadPath(), fileName);
|
||||||
CaseAttach caseAttach = CaseAttach.builder().caseAppliId(caseId)
|
// 存入数据库
|
||||||
.annexName(annexName)
|
CaseAttach caseAttach = CaseAttach.builder().caseAppliId(caseId)
|
||||||
.annexPath(RuoYiConfig.getVideoUploadPath())
|
.annexName(annexName)
|
||||||
.annexType(9)
|
.annexPath(RuoYiConfig.getVideoUploadPath())
|
||||||
.build();
|
.annexType(9)
|
||||||
caseAttachMapper.save(caseAttach);
|
.build();
|
||||||
return annexName;
|
caseAttachMapper.save(caseAttach);
|
||||||
|
return annexName;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user