|
|
@@ -331,8 +331,7 @@ public class VideoServiceImpl implements VideoService {
|
|
331
|
331
|
}
|
|
332
|
332
|
String htmlContent = "<html><body style=\"font-size:12.0pt; font-family:SimSun;\">" +reservedConferenceVO.getHtmlContent()+"</body></html>";
|
|
333
|
333
|
// html转pdf并上传到服务器
|
|
334
|
|
- PdfUtils pdfUtils = new PdfUtils();
|
|
335
|
|
- boolean convertFlag = pdfUtils.htmlStringConvertToPDF(RuoYiConfig.getHtml2PDFPath() + currentFileName, htmlContent);
|
|
|
334
|
+ boolean convertFlag = PdfUtils.htmlStringConvertToPDF(RuoYiConfig.getHtml2PDFPath() + currentFileName, htmlContent);
|
|
336
|
335
|
|
|
337
|
336
|
// 绑定案件
|
|
338
|
337
|
if(convertFlag){
|
|
|
@@ -348,6 +347,37 @@ public class VideoServiceImpl implements VideoService {
|
|
348
|
347
|
}
|
|
349
|
348
|
}
|
|
350
|
349
|
|
|
|
350
|
+ @Override
|
|
|
351
|
+ public AjaxResult attachListByCaseId(Long caseAppliId, Integer annexType) {
|
|
|
352
|
+ CaseApplication caseApplication = new CaseApplication();
|
|
|
353
|
+ caseApplication.setId(caseAppliId);
|
|
|
354
|
+ caseApplication.setAnnexType(annexType);
|
|
|
355
|
+ List<CaseAttach> caseAttachList = caseAttachMapper.queryCaseAttachList(caseApplication);
|
|
|
356
|
+ if(CollectionUtil.isEmpty(caseAttachList)){
|
|
|
357
|
+ return success(caseAttachList);
|
|
|
358
|
+ }
|
|
|
359
|
+
|
|
|
360
|
+ // 附件转换
|
|
|
361
|
+ if (caseAttachList != null && caseAttachList.size() > 0) {
|
|
|
362
|
+ for (CaseAttach caseAttach : caseAttachList) {
|
|
|
363
|
+ String annexName = caseAttach.getAnnexName();
|
|
|
364
|
+ String prefix = "/profile";
|
|
|
365
|
+ int startIndex = annexName.indexOf(prefix);
|
|
|
366
|
+ startIndex += prefix.length();
|
|
|
367
|
+ String annexPath = "/uploadPath" + annexName.substring(startIndex);
|
|
|
368
|
+ caseAttach.setAnnexPath(annexPath);
|
|
|
369
|
+ int startIndexnew = annexName.lastIndexOf("/");
|
|
|
370
|
+ if (startIndexnew != -1) {
|
|
|
371
|
+ String annexNamenew = annexName.substring(startIndexnew + 1);
|
|
|
372
|
+ caseAttach.setAnnexName(annexNamenew);
|
|
|
373
|
+ }
|
|
|
374
|
+
|
|
|
375
|
+
|
|
|
376
|
+ }
|
|
|
377
|
+ }
|
|
|
378
|
+ return success(caseAttachList);
|
|
|
379
|
+ }
|
|
|
380
|
+
|
|
351
|
381
|
|
|
352
|
382
|
/**
|
|
353
|
383
|
* 查询出音视频集合,并下载,在将云点播上面的音视频删除
|