Bladeren bron

优化归档送达功能

qitz 2 jaren geleden
bovenliggende
commit
04bbca97ae

+ 30
- 28
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/mscase/impl/MsSignSealServiceImpl.java Bestand weergeven

@@ -97,6 +97,8 @@ public class MsSignSealServiceImpl implements MsSignSealService {
97 97
     private SendMailRecordMapper sendMailRecordMapper;
98 98
 
99 99
 
100
+
101
+
100 102
     @Override
101 103
     @Transactional
102 104
     public AjaxResult sureMediationSeal(MsCaseApplicationVO caseApplicationVO) throws EsignDemoException, InterruptedException {
@@ -550,37 +552,37 @@ public class MsSignSealServiceImpl implements MsSignSealService {
550 552
 
551 553
                 boolean appEmailFlag = sendCaseEmail(caseApplication1, appEmail, caseAttachList);
552 554
 
553
-                SendMailRecord sendMailRecord = new SendMailRecord();
554
-                sendMailRecord.setCaseId(id);
555
-                sendMailRecord.setMailAddress(appEmail);
556
-                sendMailRecord.setMailContent("您好,审核后的裁决书在附件中请查阅");
557
-//        sendMailRecord.setMailContent("您好,您的{"+caseApplication1.getCaseNum()+"}案件,审核后的裁决书在附件中请查阅");
558
-                sendMailRecord.setMailName("签署后的裁决书");
559
-                sendMailRecord.setSendTime(new Date());
560
-                sendMailRecord.setCreateBy(getUsername());
561
-                if (appEmailFlag) {
562
-                    sendMailRecord.setSendStatus(1);
563
-                } else {
564
-                    sendMailRecord.setSendStatus(0);
565
-                }
566
-                sendMailRecordMapper.saveSendMailRecord(sendMailRecord);
555
+//                SendMailRecord sendMailRecord = new SendMailRecord();
556
+//                sendMailRecord.setCaseId(id);
557
+//                sendMailRecord.setMailAddress(appEmail);
558
+//                sendMailRecord.setMailContent("您好,审核后的裁决书在附件中请查阅");
559
+////        sendMailRecord.setMailContent("您好,您的{"+caseApplication1.getCaseNum()+"}案件,审核后的裁决书在附件中请查阅");
560
+//                sendMailRecord.setMailName("签署后的裁决书");
561
+//                sendMailRecord.setSendTime(new Date());
562
+//                sendMailRecord.setCreateBy(getUsername());
563
+//                if (appEmailFlag) {
564
+//                    sendMailRecord.setSendStatus(1);
565
+//                } else {
566
+//                    sendMailRecord.setSendStatus(0);
567
+//                }
568
+//                sendMailRecordMapper.saveSendMailRecord(sendMailRecord);
567 569
 
568 570
                 boolean resEmailFlag = sendCaseEmail(caseApplication1, resEmail, caseAttachList);
569 571
 
570
-                SendMailRecord sendMailRecord1 = new SendMailRecord();
571
-                sendMailRecord1.setCaseId(id);
572
-                sendMailRecord1.setMailAddress(resEmail);
573
-//        sendMailRecord.setMailContent("您好,您的{"+caseApplication1.getCaseNum()+"}案件,审核后的裁决书在附件中请查阅");
574
-                sendMailRecord1.setMailContent("您好,审核后的裁决书在附件中请查阅");
575
-                sendMailRecord1.setMailName("签署后的裁决书");
576
-                sendMailRecord1.setSendTime(new Date());
577
-                sendMailRecord1.setCreateBy(getUsername());
578
-                if (resEmailFlag) {
579
-                    sendMailRecord1.setSendStatus(1);
580
-                }else {
581
-                    sendMailRecord1.setSendStatus(0);
582
-                }
583
-                sendMailRecordMapper.saveSendMailRecord(sendMailRecord1);
572
+//                SendMailRecord sendMailRecord1 = new SendMailRecord();
573
+//                sendMailRecord1.setCaseId(id);
574
+//                sendMailRecord1.setMailAddress(resEmail);
575
+////        sendMailRecord.setMailContent("您好,您的{"+caseApplication1.getCaseNum()+"}案件,审核后的裁决书在附件中请查阅");
576
+//                sendMailRecord1.setMailContent("您好,审核后的裁决书在附件中请查阅");
577
+//                sendMailRecord1.setMailName("签署后的裁决书");
578
+//                sendMailRecord1.setSendTime(new Date());
579
+//                sendMailRecord1.setCreateBy(getUsername());
580
+//                if (resEmailFlag) {
581
+//                    sendMailRecord1.setSendStatus(1);
582
+//                }else {
583
+//                    sendMailRecord1.setSendStatus(0);
584
+//                }
585
+//                sendMailRecordMapper.saveSendMailRecord(sendMailRecord1);
584 586
                 if(!appEmailFlag&&!resEmailFlag){
585 587
                     throw new ServiceException("裁决书发送失败");
586 588
                 }

+ 2
- 2
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/utils/FixSelectFlowDetailUtils.java Bestand weergeven

@@ -291,7 +291,7 @@ public class FixSelectFlowDetailUtils {
291 291
                         MsCaseApplication caseApplicationselect = msCaseApplicationMapper.selectByPrimaryKey(sealSignRecord.getCaseAppliId());
292 292
                         if ((mssealSignRecord.getSignFlowStatus() != null) && (mssealSignRecord.getSignFlowStatus().intValue() == 1)) {
293 293
                             // 根据流程id查找下一个流程节点
294
-                            MsCaseFlow nextFlow = caseFlowMapper.nextFlow(caseApplicationselect.getId().intValue());
294
+                            MsCaseFlow nextFlow = caseFlowMapper.nextFlow(caseApplicationselect.getCaseFlowId().intValue());
295 295
                             MsCaseApplication application = new MsCaseApplication();
296 296
                             application.setId(caseApplicationselect.getId());
297 297
                             application.setCaseFlowId(nextFlow.getId());
@@ -313,7 +313,7 @@ public class FixSelectFlowDetailUtils {
313 313
                             sealSignRecordMapper.updateByPrimaryKeySelective(mssealSignRecord);
314 314
 
315 315
                             // 根据流程id查找下一个流程节点
316
-                            MsCaseFlow nextFlow = caseFlowMapper.nextFlow(caseApplicationselect.getId().intValue());
316
+                            MsCaseFlow nextFlow = caseFlowMapper.nextFlow(caseApplicationselect.getCaseFlowId().intValue());
317 317
                             MsCaseApplication application = new MsCaseApplication();
318 318
                             application.setId(caseApplicationselect.getId());
319 319
                             application.setCaseFlowId(nextFlow.getId());