|
|
@@ -341,28 +341,11 @@ public class AdjudicationServiceImpl implements IAdjudicationService {
|
|
341
|
341
|
if (appEmail != null) {
|
|
342
|
342
|
emailOutUtil.sendMessageCarryFile(appEmail, "案件裁决书", "您的裁决书已送达,详情请查阅附件", file
|
|
343
|
343
|
, "hjbjava@163.com", javaMailSender);
|
|
344
|
|
-
|
|
345
|
|
- SendMailRecord sendMailRecord = new SendMailRecord();
|
|
346
|
|
- sendMailRecord.setCaseId(id);
|
|
347
|
|
- sendMailRecord.setMailAddress(appEmail);
|
|
348
|
|
- sendMailRecord.setMailContent("您的裁决书已送达,详情请查阅附件");
|
|
349
|
|
- sendMailRecord.setMailName("案件裁决书");
|
|
350
|
|
- sendMailRecord.setSendTime(new Date());
|
|
351
|
|
- sendMailRecord.setCreateBy(getUsername());
|
|
352
|
|
- sendMailRecordMapper.saveSendMailRecord(sendMailRecord);
|
|
353
|
344
|
}
|
|
354
|
345
|
if (resEmail != null) {
|
|
355
|
346
|
emailOutUtil.sendMessageCarryFile(resEmail, "案件裁决书", "您的裁决书已送达,详情请查阅附件", file
|
|
356
|
347
|
, "hjbjava@163.com", javaMailSender);
|
|
357
|
348
|
|
|
358
|
|
- SendMailRecord sendMailRecord = new SendMailRecord();
|
|
359
|
|
- sendMailRecord.setCaseId(id);
|
|
360
|
|
- sendMailRecord.setMailAddress(resEmail);
|
|
361
|
|
- sendMailRecord.setMailContent("您的裁决书已送达,详情请查阅附件");
|
|
362
|
|
- sendMailRecord.setMailName("案件裁决书");
|
|
363
|
|
- sendMailRecord.setSendTime(new Date());
|
|
364
|
|
- sendMailRecord.setCreateBy(getUsername());
|
|
365
|
|
- sendMailRecordMapper.saveSendMailRecord(sendMailRecord);
|
|
366
|
349
|
}
|
|
367
|
350
|
//修改案件状态
|
|
368
|
351
|
caseApplication1.setCaseStatus(CaseApplicationConstants.CASE_FILING);
|
|
|
@@ -480,6 +463,7 @@ public class AdjudicationServiceImpl implements IAdjudicationService {
|
|
480
|
463
|
}
|
|
481
|
464
|
|
|
482
|
465
|
@Override
|
|
|
466
|
+ @Transactional
|
|
483
|
467
|
public AjaxResult service(Long id, String appEmail, String resEmail, String apptrackingNum, String restrackingNum) {
|
|
484
|
468
|
CaseApplication caseApplication = new CaseApplication();
|
|
485
|
469
|
caseApplication.setId(id);
|
|
|
@@ -509,6 +493,25 @@ public class AdjudicationServiceImpl implements IAdjudicationService {
|
|
509
|
493
|
}
|
|
510
|
494
|
//发送邮件
|
|
511
|
495
|
sendCaseEmail(caseApplication1, appEmail, resEmail);
|
|
|
496
|
+
|
|
|
497
|
+ SendMailRecord sendMailRecord = new SendMailRecord();
|
|
|
498
|
+ sendMailRecord.setCaseId(id);
|
|
|
499
|
+ sendMailRecord.setMailAddress(appEmail);
|
|
|
500
|
+ sendMailRecord.setMailContent("您好,审核后的裁决书在附件中请查阅");
|
|
|
501
|
+ sendMailRecord.setMailName("签署后的裁决书");
|
|
|
502
|
+ sendMailRecord.setSendTime(new Date());
|
|
|
503
|
+ sendMailRecord.setCreateBy(getUsername());
|
|
|
504
|
+ sendMailRecordMapper.saveSendMailRecord(sendMailRecord);
|
|
|
505
|
+
|
|
|
506
|
+ SendMailRecord sendMailRecord1 = new SendMailRecord();
|
|
|
507
|
+ sendMailRecord1.setCaseId(id);
|
|
|
508
|
+ sendMailRecord1.setMailAddress(resEmail);
|
|
|
509
|
+ sendMailRecord1.setMailContent("您好,审核后的裁决书在附件中请查阅");
|
|
|
510
|
+ sendMailRecord1.setMailName("签署后的裁决书");
|
|
|
511
|
+ sendMailRecord1.setSendTime(new Date());
|
|
|
512
|
+ sendMailRecord1.setCreateBy(getUsername());
|
|
|
513
|
+ sendMailRecordMapper.saveSendMailRecord(sendMailRecord1);
|
|
|
514
|
+
|
|
512
|
515
|
// 新增日志
|
|
513
|
516
|
CaseLogUtils.insertCaseLog(caseApplication.getId(), CaseApplicationConstants.CASE_FILING, "");
|
|
514
|
517
|
|
|
|
@@ -525,12 +528,15 @@ public class AdjudicationServiceImpl implements IAdjudicationService {
|
|
525
|
528
|
private void sendCaseEmail(CaseApplication caseApplication1, String appEmail, String resEmail) {
|
|
526
|
529
|
List<File> fileList = new ArrayList<>();
|
|
527
|
530
|
File file = null;
|
|
528
|
|
- List<CaseAttach> caseAttachList = caseApplication1.getCaseAttachList();
|
|
|
531
|
+
|
|
|
532
|
+ List<CaseAttach> caseAttachList = caseAttachMapper.queryCaseAttachList(caseApplication1);
|
|
529
|
533
|
if (caseAttachList != null && caseAttachList.size() > 0) {
|
|
530
|
534
|
for (CaseAttach caseAttach : caseAttachList) {
|
|
531
|
535
|
if (caseAttach.getAnnexType() == 3) {
|
|
532
|
|
- String annexPath = caseAttach.getAnnexPath();
|
|
533
|
|
- String path = "/home/ruoyi/" + annexPath;
|
|
|
536
|
+ String annexName = caseAttach.getAnnexName();
|
|
|
537
|
+ String prefix = "/profile/upload/";
|
|
|
538
|
+ int startIndex = prefix.length();
|
|
|
539
|
+ String path = caseAttach.getAnnexPath() + annexName.substring(startIndex);
|
|
534
|
540
|
file = new File(path);
|
|
535
|
541
|
fileList.add(file);
|
|
536
|
542
|
System.out.println("文件长度==================:" + file.length());
|