|
|
@@ -364,20 +364,20 @@ public class AdjudicationServiceImpl implements IAdjudicationService {
|
|
364
|
364
|
private void sendCaseEmail(CaseApplication caseApplication1, String appEmail, String resEmail) {
|
|
365
|
365
|
List<File> fileList = new ArrayList<>();
|
|
366
|
366
|
File file = null;
|
|
367
|
|
-// List<CaseAttach> caseAttachList = caseApplication1.getCaseAttachList();
|
|
368
|
|
-// if (caseAttachList != null && caseAttachList.size() > 0) {
|
|
369
|
|
-// for (CaseAttach caseAttach : caseAttachList) {
|
|
370
|
|
-// if (caseAttach.getAnnexType() == 3) {
|
|
371
|
|
-// String annexPath = caseAttach.getAnnexPath();
|
|
372
|
|
-// String path = "/home/ruoyi/" + annexPath;
|
|
|
367
|
+ List<CaseAttach> caseAttachList = caseApplication1.getCaseAttachList();
|
|
|
368
|
+ if (caseAttachList != null && caseAttachList.size() > 0) {
|
|
|
369
|
+ for (CaseAttach caseAttach : caseAttachList) {
|
|
|
370
|
+ if (caseAttach.getAnnexType() == 3) {
|
|
|
371
|
+ String annexPath = caseAttach.getAnnexPath();
|
|
|
372
|
+ String path = "/home/ruoyi/" + annexPath;
|
|
373
|
373
|
// String path = "/home/ruoyi/uploadPath/upload/2023/10/12/裁决书测试20231012test.docx";
|
|
374
|
|
- String path = "E:/WorkDoc/SH/裁决书测试20231012test.docx";
|
|
375
|
|
- file = new File(path);
|
|
376
|
|
- fileList.add(file);
|
|
377
|
|
- System.out.println("文件长度:" + file.length());
|
|
378
|
|
-// }
|
|
379
|
|
-// }
|
|
380
|
|
-// }
|
|
|
374
|
+// String path = "E:/WorkDoc/SH/裁决书测试20231012test.docx";
|
|
|
375
|
+ file = new File(path);
|
|
|
376
|
+ fileList.add(file);
|
|
|
377
|
+ System.out.println("文件长度:" + file.length());
|
|
|
378
|
+ }
|
|
|
379
|
+ }
|
|
|
380
|
+ }
|
|
381
|
381
|
if (file != null) {
|
|
382
|
382
|
JavaMailSender javaMailSender = emailOutUtil.rebuildMailSender();
|
|
383
|
383
|
try {
|
|
|
@@ -431,7 +431,7 @@ public class AdjudicationServiceImpl implements IAdjudicationService {
|
|
431
|
431
|
try {
|
|
432
|
432
|
// List<File> fileList = new ArrayList<>();
|
|
433
|
433
|
// fileList.add(new File("D:\\home\\ruoyi\\uploadPath\\upload\\2023\\10\\7\\b442880179844a848f1f8b08c29e3d0c.docx"));
|
|
434
|
|
- // File file = fileList.get(0);//System.out.println("这是文件"+file);
|
|
|
434
|
+ // File file = fileList.get(0);//System.out.println("这是文件"+file);
|
|
435
|
435
|
//电子邮件送达
|
|
436
|
436
|
// EmailOutUtil emailOutUtil = new EmailOutUtil();
|
|
437
|
437
|
// JavaMailSender javaMailSender = emailOutUtil.rebuildMailSender();
|