18792927508 2 лет назад
Родитель
Сommit
7c3044811e

+ 6
- 5
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/mscase/impl/MsCaseApplicationServiceImpl.java Просмотреть файл

@@ -2419,6 +2419,7 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
2419 2419
     @Transactional(rollbackFor = Exception.class)
2420 2420
     @Override
2421 2421
     public AjaxResult mediation(MsCaseApplicationReq req) throws EsignDemoException, InterruptedException {
2422
+        req.setSealFlag(null);
2422 2423
         // 查询案件是否存在
2423 2424
         MsCaseApplication application = msCaseApplicationMapper.selectByPrimaryKey(req.getId());
2424 2425
         if (application == null) {
@@ -2709,7 +2710,7 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
2709 2710
                                     if (caseFlow != null) {
2710 2711
                                         application.setCaseFlowId(caseFlow.getId());
2711 2712
                                         application.setCaseStatusName(caseFlow.getCaseStatusName());
2712
-                                        msCaseApplicationMapper.updateByPrimaryKey(application);
2713
+                                        msCaseApplicationMapper.updateByPrimaryKeySelective(application);
2713 2714
                                         // 新增日志
2714 2715
                                         CaseLogUtils.insertCaseLog(application.getId(), currentFlow.getNodeId(), currentFlow.getCaseStatusName(), "");
2715 2716
                                     }
@@ -2748,7 +2749,7 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
2748 2749
                     application.setCaseFlowId(caseFlow.getId());
2749 2750
                     application.setCaseStatusName(caseFlow.getCaseStatusName());
2750 2751
                     application.setMediaResult(mediaResult);
2751
-                    msCaseApplicationMapper.updateByPrimaryKey(application);
2752
+                    msCaseApplicationMapper.updateByPrimaryKeySelective(application);
2752 2753
                 }
2753 2754
                 return AjaxResult.success();
2754 2755
             } else if (mediaResult == 3) {
@@ -2760,7 +2761,7 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
2760 2761
                     application.setCaseFlowId(caseFlow.getId());
2761 2762
                     application.setCaseStatusName(caseFlow.getCaseStatusName());
2762 2763
                     application.setMediaResult(mediaResult);
2763
-                    msCaseApplicationMapper.updateByPrimaryKey(application);
2764
+                    msCaseApplicationMapper.updateByPrimaryKeySelective(application);
2764 2765
                     // 新增日志
2765 2766
                     CaseLogUtils.insertCaseLog(application.getId(), currentFlow.getNodeId(), currentFlow.getCaseStatusName(), "");
2766 2767
                     // 新增结束日志
@@ -2802,7 +2803,7 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
2802 2803
                     application.setCaseFlowId(caseFlow.getId());
2803 2804
                     application.setCaseStatusName(caseFlow.getCaseStatusName());
2804 2805
                     application.setMediaResult(mediaResult);
2805
-                    msCaseApplicationMapper.updateByPrimaryKey(application);
2806
+                    msCaseApplicationMapper.updateByPrimaryKeySelective(application);
2806 2807
                 }
2807 2808
 
2808 2809
                 return AjaxResult.success();
@@ -3051,7 +3052,7 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
3051 3052
                 application.setCaseFlowId(caseFlow.getId());
3052 3053
                 application.setCaseStatusName(caseFlow.getCaseStatusName());
3053 3054
                 application.setMediaResult(mediaResult);
3054
-                msCaseApplicationMapper.updateByPrimaryKey(application);
3055
+                msCaseApplicationMapper.updateByPrimaryKeySelective(application);
3055 3056
                 // 新增日志
3056 3057
                 CaseLogUtils.insertCaseLog(application.getId(), currentFlow.getNodeId(), currentFlow.getCaseStatusName(), "");
3057 3058
                 if (mediaResult == 2 || mediaResult == 3 || mediaResult == 4) {

+ 2
- 4
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/mscase/impl/MsSignSealServiceImpl.java Просмотреть файл

@@ -522,7 +522,7 @@ public class MsSignSealServiceImpl implements MsSignSealService {
522 522
             return AjaxResult.error("未找到案件被申请操作人");
523 523
         }
524 524
         MsCaseApplication caseApplication = msCaseApplicationMapper.selectByPrimaryKey(caseId);
525
-        Integer organizeFlag = caseApplication.getOrganizeFlag();
525
+
526 526
         Long userId = SecurityUtils.getUserId();
527 527
 
528 528
         if(appOpt.get().getUserId()!=null && appOpt.get().getUserId().equals(userId)){
@@ -533,7 +533,6 @@ public class MsSignSealServiceImpl implements MsSignSealService {
533 533
             List<MsSealSignRecord> sealSignRecords = sealSignRecordMapper.selectSealSignRecord(mssealSignRecord);
534 534
             if (sealSignRecords != null && sealSignRecords.size() > 0) {
535 535
                 String signFlowid = sealSignRecords.get(0).getSignFlowId();
536
-                if(organizeFlag!=null){
537 536
                     SealSignRecord sealSignRecord = new SealSignRecord();
538 537
                     sealSignRecord.setPensonAccount(appOpt.get().getPhone());
539 538
                     sealSignRecord.setPensonName(appOpt.get().getName());
@@ -549,7 +548,6 @@ public class MsSignSealServiceImpl implements MsSignSealService {
549 548
                         String urlapply = signUrlData.get("shortUrl").getAsString();
550 549
                         sealSignRecordres.setSealUrl(urlapply);
551 550
                     }
552
-                }
553 551
                 return AjaxResult.success(sealSignRecordres);
554 552
             }else {
555 553
                 return AjaxResult.error();
@@ -674,7 +672,7 @@ public class MsSignSealServiceImpl implements MsSignSealService {
674 672
                                 signStatusMediator!=null&&signStatusMediator.equals(1)){
675 673
                             // 根据流程id查找下一个流程节点
676 674
                             MsCaseFlow nextFlow=null;
677
-                            if(caseApplicationselect.getSealFlag()!=null&&caseApplicationselect.getSealFlag()==1) {
675
+                            if(caseApplicationselect.getSealFlag()!=null&&caseApplicationselect.getSealFlag().equals(1)) {
678 676
                                 // 需要用印
679 677
                                  nextFlow = caseFlowMapper.nextFlow(caseApplicationselect.getCaseFlowId());
680 678
                             }else {

+ 9
- 2
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/shortmessage/impl/ShortMessageServiceImpl.java Просмотреть файл

@@ -121,11 +121,18 @@ public class ShortMessageServiceImpl implements ShortMessageService {
121 121
             List<String> recordParamList = recordParamContentMap.get(record.getId());
122 122
             if(recordParamContentMap.containsKey(record.getId()) && templateParamMap.containsKey(record.getMsSmsTemplateId())){
123 123
                 List<MsSmsTemplateParam> templateParamList = templateParamMap.get(record.getMsSmsTemplateId());
124
+                ArrayList<MsSmsTemplateParam> copyParamList = new ArrayList<>();
124 125
                 for (int i = 0; i < templateParamList.size(); i++) {
125 126
                     MsSmsTemplateParam templateParam = templateParamList.get(i);
126
-                    templateParam.setParamValue(recordParamContentMap.get(record.getId()).get(i));
127
+                    MsSmsTemplateParam msSmsTemplateParam =new MsSmsTemplateParam();
128
+                    msSmsTemplateParam.setParam(templateParam.getParam());
129
+                    msSmsTemplateParam.setSmsTemplateId(templateParam.getSmsTemplateId());
130
+                    msSmsTemplateParam.setParamName(templateParam.getParamName());
131
+                    msSmsTemplateParam.setId(templateParam.getId());
132
+                    msSmsTemplateParam.setParamValue(recordParamContentMap.get(record.getId()).get(i));
133
+                    copyParamList.add(msSmsTemplateParam);
127 134
                 }
128
-                record.setTemplateParams(templateParamList);
135
+                record.setTemplateParams(copyParamList);
129 136
 
130 137
             }
131 138
             // 按顺序替换占位符