|
|
@@ -33,6 +33,7 @@ import com.ruoyi.wisdomarbitrate.domain.dto.dept.SealManage;
|
|
33
|
33
|
import com.ruoyi.wisdomarbitrate.domain.dto.mscase.CaseLogRecord;
|
|
34
|
34
|
import com.ruoyi.wisdomarbitrate.domain.dto.mscase.MsSignSealDTO;
|
|
35
|
35
|
import com.ruoyi.wisdomarbitrate.domain.dto.mscase.SealSignRecord;
|
|
|
36
|
+import com.ruoyi.wisdomarbitrate.domain.dto.sendrecord.SendMailRecord;
|
|
36
|
37
|
import com.ruoyi.wisdomarbitrate.domain.entity.dept.MsSealSignRecord;
|
|
37
|
38
|
import com.ruoyi.wisdomarbitrate.domain.entity.mscase.MsCaseAffiliate;
|
|
38
|
39
|
import com.ruoyi.wisdomarbitrate.domain.entity.mscase.MsCaseApplication;
|
|
|
@@ -639,37 +640,37 @@ public class MsSignSealServiceImpl implements MsSignSealService {
|
|
639
|
640
|
resEmail = caseAffiliate.getRespondentEmail();
|
|
640
|
641
|
boolean appEmailFlag = sendCaseEmail(caseApplication1, appEmail, caseAttachList);
|
|
641
|
642
|
|
|
642
|
|
-// SendMailRecord sendMailRecord = new SendMailRecord();
|
|
643
|
|
-// sendMailRecord.setCaseId(id);
|
|
644
|
|
-// sendMailRecord.setMailAddress(appEmail);
|
|
645
|
|
-// sendMailRecord.setMailContent("您好,审核后的裁决书在附件中请查阅");
|
|
646
|
|
-//// sendMailRecord.setMailContent("您好,您的{"+caseApplication1.getCaseNum()+"}案件,审核后的裁决书在附件中请查阅");
|
|
647
|
|
-// sendMailRecord.setMailName("签署后的裁决书");
|
|
648
|
|
-// sendMailRecord.setSendTime(new Date());
|
|
649
|
|
-// sendMailRecord.setCreateBy(getUsername());
|
|
650
|
|
-// if (appEmailFlag) {
|
|
651
|
|
-// sendMailRecord.setSendStatus(1);
|
|
652
|
|
-// } else {
|
|
653
|
|
-// sendMailRecord.setSendStatus(0);
|
|
654
|
|
-// }
|
|
655
|
|
-// sendMailRecordMapper.saveSendMailRecord(sendMailRecord);
|
|
|
643
|
+ SendMailRecord sendMailRecord = new SendMailRecord();
|
|
|
644
|
+ sendMailRecord.setCaseId(id);
|
|
|
645
|
+ sendMailRecord.setMailAddress(appEmail);
|
|
|
646
|
+ sendMailRecord.setMailContent("您好,审核后的裁决书在附件中请查阅");
|
|
|
647
|
+// sendMailRecord.setMailContent("您好,您的{"+caseApplication1.getCaseNum()+"}案件,审核后的裁决书在附件中请查阅");
|
|
|
648
|
+ sendMailRecord.setMailName("签署后的裁决书");
|
|
|
649
|
+ sendMailRecord.setSendTime(new Date());
|
|
|
650
|
+ sendMailRecord.setCreateBy(SecurityUtils.getUsername());
|
|
|
651
|
+ if (appEmailFlag) {
|
|
|
652
|
+ sendMailRecord.setSendStatus(1);
|
|
|
653
|
+ } else {
|
|
|
654
|
+ sendMailRecord.setSendStatus(0);
|
|
|
655
|
+ }
|
|
|
656
|
+ sendMailRecordMapper.saveSendMailRecord(sendMailRecord);
|
|
656
|
657
|
|
|
657
|
658
|
boolean resEmailFlag = sendCaseEmail(caseApplication1, resEmail, caseAttachList);
|
|
658
|
659
|
|
|
659
|
|
-// SendMailRecord sendMailRecord1 = new SendMailRecord();
|
|
660
|
|
-// sendMailRecord1.setCaseId(id);
|
|
661
|
|
-// sendMailRecord1.setMailAddress(resEmail);
|
|
662
|
|
-//// sendMailRecord.setMailContent("您好,您的{"+caseApplication1.getCaseNum()+"}案件,审核后的裁决书在附件中请查阅");
|
|
663
|
|
-// sendMailRecord1.setMailContent("您好,审核后的裁决书在附件中请查阅");
|
|
664
|
|
-// sendMailRecord1.setMailName("签署后的裁决书");
|
|
665
|
|
-// sendMailRecord1.setSendTime(new Date());
|
|
666
|
|
-// sendMailRecord1.setCreateBy(getUsername());
|
|
667
|
|
-// if (resEmailFlag) {
|
|
668
|
|
-// sendMailRecord1.setSendStatus(1);
|
|
669
|
|
-// }else {
|
|
670
|
|
-// sendMailRecord1.setSendStatus(0);
|
|
671
|
|
-// }
|
|
672
|
|
-// sendMailRecordMapper.saveSendMailRecord(sendMailRecord1);
|
|
|
660
|
+ SendMailRecord sendMailRecord1 = new SendMailRecord();
|
|
|
661
|
+ sendMailRecord1.setCaseId(id);
|
|
|
662
|
+ sendMailRecord1.setMailAddress(resEmail);
|
|
|
663
|
+// sendMailRecord.setMailContent("您好,您的{"+caseApplication1.getCaseNum()+"}案件,审核后的裁决书在附件中请查阅");
|
|
|
664
|
+ sendMailRecord1.setMailContent("您好,审核后的裁决书在附件中请查阅");
|
|
|
665
|
+ sendMailRecord1.setMailName("签署后的裁决书");
|
|
|
666
|
+ sendMailRecord1.setSendTime(new Date());
|
|
|
667
|
+ sendMailRecord1.setCreateBy(SecurityUtils.getUsername());
|
|
|
668
|
+ if (resEmailFlag) {
|
|
|
669
|
+ sendMailRecord1.setSendStatus(1);
|
|
|
670
|
+ }else {
|
|
|
671
|
+ sendMailRecord1.setSendStatus(0);
|
|
|
672
|
+ }
|
|
|
673
|
+ sendMailRecordMapper.saveSendMailRecord(sendMailRecord1);
|
|
673
|
674
|
if(!appEmailFlag&&!resEmailFlag){
|
|
674
|
675
|
throw new ServiceException("调解书发送失败");
|
|
675
|
676
|
}
|