Przeglądaj źródła

Merge branch 'wq1' of SH-Arbitrate/Mediation-Backend into dev

wangqiong123 2 lat temu
rodzic
commit
de0d26882e

+ 2
- 2
ruoyi-admin/src/main/resources/application.yml Wyświetl plik

18
 # 开发环境配置
18
 # 开发环境配置
19
 server:
19
 server:
20
   # 测试环境6001,开发环境7001
20
   # 测试环境6001,开发环境7001
21
-  port: 6001
21
+  port: 7001
22
   servlet:
22
   servlet:
23
     # 应用的访问路径
23
     # 应用的访问路径
24
     context-path: /
24
     context-path: /
193
   url: http://121.40.189.20:9001/callArbitrateCaseApplication/generateCaseApplication
193
   url: http://121.40.189.20:9001/callArbitrateCaseApplication/generateCaseApplication
194
 # 回调通知
194
 # 回调通知
195
 signSealCallbackConfig:
195
 signSealCallbackConfig:
196
-  url: http://121.40.189.20:6001/mssignSeal/signSeaalCaseApplicaCallback
196
+  url: http://121.40.189.20:7001/mssignSeal/signSeaalCaseApplicaCallback
197
 #  onlyOffice系统url配置
197
 #  onlyOffice系统url配置
198
 onlyOfficeConfig:
198
 onlyOfficeConfig:
199
 #  url: http://172.16.0.254:9090/files/upload
199
 #  url: http://172.16.0.254:9090/files/upload

+ 39
- 9
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/mscase/impl/MsCaseApplicationServiceImpl.java Wyświetl plik

1865
         // 申请人预约
1865
         // 申请人预约
1866
         if (vo.getMiniProgressFlag() == null || vo.getMiniProgressFlag().equals( YesOrNoEnum.NO.getCode())) {
1866
         if (vo.getMiniProgressFlag() == null || vo.getMiniProgressFlag().equals( YesOrNoEnum.NO.getCode())) {
1867
             // 新增日志
1867
             // 新增日志
1868
-            CaseLogUtils.insertCaseLog(vo.getId(), currentFlow.getNodeId(), currentFlow.getCaseStatusName(), "申请人选择调解员");
1868
+            CaseLogUtils.insertCaseLog(vo.getId(), currentFlow.getNodeId(), currentFlow.getCaseStatusName(), null);
1869
 
1869
 
1870
             if (StrUtil.isEmpty(msCaseAffiliate.getRespondentIdentityNum())) {
1870
             if (StrUtil.isEmpty(msCaseAffiliate.getRespondentIdentityNum())) {
1871
                 return AjaxResult.error("被申请人身份证为空");
1871
                 return AjaxResult.error("被申请人身份证为空");
1876
         } else {
1876
         } else {
1877
             // 被申请人预约
1877
             // 被申请人预约
1878
             // 新增日志
1878
             // 新增日志
1879
-            CaseLogUtils.insertCaseLog(vo.getId(), currentFlow.getNodeId(), currentFlow.getCaseStatusName(), "被申请人选择调解员");
1879
+            CaseLogUtils.insertCaseLog(vo.getId(), currentFlow.getNodeId(), currentFlow.getCaseStatusName(), null);
1880
             // 判断申请人是否预约
1880
             // 判断申请人是否预约
1881
             caseApplicationService. isReservation( vo,userIds);
1881
             caseApplicationService. isReservation( vo,userIds);
1882
 
1882
 
2225
         if (currentFlow == null) {
2225
         if (currentFlow == null) {
2226
             throw new ServiceException("未找到当前流程节点");
2226
             throw new ServiceException("未找到当前流程节点");
2227
         }
2227
         }
2228
+        Integer mediaResult = req.getMediaResult();
2228
         MsCaseAffiliate caseAffiliate = msCaseAffiliateMapper.selectByPrimaryKey(req.getId());
2229
         MsCaseAffiliate caseAffiliate = msCaseAffiliateMapper.selectByPrimaryKey(req.getId());
2229
         if (application.getMediationMethod().equals("1")) {
2230
         if (application.getMediationMethod().equals("1")) {
2230
             // 线上调解
2231
             // 线上调解
2237
                     msCaseAttachMapper.updateCaseAttach(attach);
2238
                     msCaseAttachMapper.updateCaseAttach(attach);
2238
                 }
2239
                 }
2239
             }
2240
             }
2240
-            Integer mediaResult = req.getMediaResult();
2241
-            if(mediaResult!=null){
2242
-                if(mediaResult.intValue()==1){
2241
+                if(mediaResult ==1){
2243
                     //达成调解
2242
                     //达成调解
2244
                         List<MsCaseAttach> caseAttachList = msCaseAttachMapper.queryAnnexPathByCaseId(req.getId());
2243
                         List<MsCaseAttach> caseAttachList = msCaseAttachMapper.queryAnnexPathByCaseId(req.getId());
2245
                         if (caseAttachList != null && caseAttachList.size() > 0) {
2244
                         if (caseAttachList != null && caseAttachList.size() > 0) {
2898
                         }
2897
                         }
2899
                 }
2898
                 }
2900
 
2899
 
2901
-            }
2900
+
2902
         } else {
2901
         } else {
2903
             // 线下调解
2902
             // 线下调解
2904
             List<MsCaseAttach> attachList = req.getAttachList();
2903
             List<MsCaseAttach> attachList = req.getAttachList();
2911
                 attach.setCaseAppliId(req.getId());
2910
                 attach.setCaseAppliId(req.getId());
2912
                 msCaseAttachMapper.updateCaseAttach(attach);
2911
                 msCaseAttachMapper.updateCaseAttach(attach);
2913
             }
2912
             }
2914
-           // msCaseAttachMapper.batchSave(attachList);
2915
             // 修改案件状态为待送达
2913
             // 修改案件状态为待送达
2916
             Example flowExample = new Example(MsCaseFlow.class);
2914
             Example flowExample = new Example(MsCaseFlow.class);
2917
-            flowExample.createCriteria().andEqualTo("caseStatusName", "待送达");
2915
+            if(mediaResult ==1 || mediaResult == 5){
2916
+                // 达成调解,达成和解,案件状态改为待送达
2917
+                flowExample.createCriteria().andEqualTo("caseStatusName", "待送达");
2918
+            } else if(mediaResult == 2 || mediaResult == 3){
2919
+                // 未达成调解,未达成调解但不在争议改为结束状态
2920
+                flowExample.createCriteria().andEqualTo("caseStatusName", "结束");
2921
+            }
2922
+            else if(mediaResult == 4){
2923
+                //  未达成调解但同意引入仲裁系统,改为结束状态,并调仲裁新增接口
2924
+                flowExample.createCriteria().andEqualTo("caseStatusName", "结束");
2925
+                String accessSec = "mCFMA6ffe938v79m";
2926
+                MsCaseApplicationVO applicationVO = new MsCaseApplicationVO();
2927
+                BeanUtils.copyProperties(application,applicationVO);
2928
+
2929
+                CaseApplicationVO caseApplicationVO = new CaseApplicationVO();
2930
+                BeanUtils.copyProperties(applicationVO,caseApplicationVO);
2931
+                boolean importFlag = applicationVO.isImportFlag();
2932
+                if(importFlag==true){
2933
+                    caseApplicationVO.setImportFlag(1);
2934
+                }else {
2935
+                    caseApplicationVO.setImportFlag(0);
2936
+                }
2937
+                String paramsbody = JSONUtil.toJsonStr(caseApplicationVO);
2938
+                long timestamp = System.currentTimeMillis();
2939
+                String signStr = SignCheckUtils.getSign(paramsbody, accessSec, timestamp);
2940
+                String urlstr = arbitrateUrl;
2941
+                HttpResponse httpResponse = HttpRequest.post(urlstr)
2942
+                        .header("timestampstr", String.valueOf(timestamp))
2943
+                        .header("signstr", signStr)
2944
+                        .body(paramsbody)
2945
+                        .execute();
2946
+            }
2918
             MsCaseFlow caseFlow = caseFlowMapper.selectOneByExample(flowExample);
2947
             MsCaseFlow caseFlow = caseFlowMapper.selectOneByExample(flowExample);
2919
             if(caseFlow != null){
2948
             if(caseFlow != null){
2920
                 application.setCaseFlowId(caseFlow.getId());
2949
                 application.setCaseFlowId(caseFlow.getId());
2921
                 application.setCaseStatusName(caseFlow.getCaseStatusName());
2950
                 application.setCaseStatusName(caseFlow.getCaseStatusName());
2951
+                application.setMediaResult(mediaResult);
2922
                 msCaseApplicationMapper.updateByPrimaryKey(application);
2952
                 msCaseApplicationMapper.updateByPrimaryKey(application);
2923
                 // 新增日志
2953
                 // 新增日志
2924
                 CaseLogUtils.insertCaseLog(application.getId(), currentFlow.getNodeId(), currentFlow.getCaseStatusName(),"");
2954
                 CaseLogUtils.insertCaseLog(application.getId(), currentFlow.getNodeId(), currentFlow.getCaseStatusName(),"");
2927
         }
2957
         }
2928
 
2958
 
2929
 
2959
 
2930
-        return AjaxResult.error();
2960
+        return AjaxResult.success();
2931
     }
2961
     }
2932
 
2962
 
2933
     /**
2963
     /**

+ 2
- 2
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/mscase/impl/MsCasePaymentServiceImpl.java Wyświetl plik

350
         }
350
         }
351
         // 新增日志
351
         // 新增日志
352
         if (dto.getYesOrNo().equals(YesOrNoEnum.YES.getCode())) {
352
         if (dto.getYesOrNo().equals(YesOrNoEnum.YES.getCode())) {
353
-            CaseLogUtils.insertCaseLog(application.getId(), currentFlow.getNodeId(), currentFlow.getCaseStatusName(), "确认已缴费");
353
+            CaseLogUtils.insertCaseLog(application.getId(), currentFlow.getNodeId(), currentFlow.getCaseStatusName(), null);
354
         }else {
354
         }else {
355
             CaseLogUtils.insertCaseLog(application.getId(), currentFlow.getNodeId(), currentFlow.getCaseStatusName(), "拒绝确认缴费,拒绝原因为:"+dto.getReason());
355
             CaseLogUtils.insertCaseLog(application.getId(), currentFlow.getNodeId(), currentFlow.getCaseStatusName(), "拒绝确认缴费,拒绝原因为:"+dto.getReason());
356
         }
356
         }
509
         application.setCaseFlowId(nextFlow.getId());
509
         application.setCaseFlowId(nextFlow.getId());
510
         application.setCaseStatusName(nextFlow.getCaseStatusName());
510
         application.setCaseStatusName(nextFlow.getCaseStatusName());
511
         caseApplicationMapper.updateByPrimaryKeySelective(application);
511
         caseApplicationMapper.updateByPrimaryKeySelective(application);
512
-        CaseLogUtils.insertCaseLog(application.getId(), currentFlow.getNodeId(), currentFlow.getCaseStatusName(),"确认缴费");
512
+        CaseLogUtils.insertCaseLog(application.getId(), currentFlow.getNodeId(), currentFlow.getCaseStatusName(),null);
513
     }
513
     }
514
 
514
 
515
 
515
 

+ 4
- 4
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/mscase/impl/MsSignSealServiceImpl.java Wyświetl plik

411
                 application.setCaseFlowId(nextFlow.getId());
411
                 application.setCaseFlowId(nextFlow.getId());
412
                 application.setCaseStatusName(nextFlow.getCaseStatusName());
412
                 application.setCaseStatusName(nextFlow.getCaseStatusName());
413
                 caseApplicationMapper.updateByPrimaryKeySelective(application);
413
                 caseApplicationMapper.updateByPrimaryKeySelective(application);
414
-                CaseLogUtils.insertCaseLog(application.getId(), currentFlow.getNodeId(), currentFlow.getCaseStatusName(),"用印申请");
414
+                CaseLogUtils.insertCaseLog(application.getId(), currentFlow.getNodeId(), currentFlow.getCaseStatusName(),null);
415
             }
415
             }
416
         } else {
416
         } else {
417
             // 单独
417
             // 单独
421
             application.setCaseFlowId(nextFlow.getId());
421
             application.setCaseFlowId(nextFlow.getId());
422
             application.setCaseStatusName(nextFlow.getCaseStatusName());
422
             application.setCaseStatusName(nextFlow.getCaseStatusName());
423
             caseApplicationMapper.updateByPrimaryKeySelective(application);
423
             caseApplicationMapper.updateByPrimaryKeySelective(application);
424
-            CaseLogUtils.insertCaseLog(application.getId(), currentFlow.getNodeId(), currentFlow.getCaseStatusName(),"用印申请");
424
+            CaseLogUtils.insertCaseLog(application.getId(), currentFlow.getNodeId(), currentFlow.getCaseStatusName(),null);
425
         }
425
         }
426
         return AjaxResult.success("用印申请成功");
426
         return AjaxResult.success("用印申请成功");
427
 
427
 
786
             caseApplicationselect.setCaseFlowId(nextFlow.getId());
786
             caseApplicationselect.setCaseFlowId(nextFlow.getId());
787
             caseApplicationselect.setCaseStatusName(nextFlow.getCaseStatusName());
787
             caseApplicationselect.setCaseStatusName(nextFlow.getCaseStatusName());
788
             caseApplicationMapper.updateByPrimaryKeySelective(caseApplicationselect);
788
             caseApplicationMapper.updateByPrimaryKeySelective(caseApplicationselect);
789
-            CaseLogUtils.insertCaseLog(caseApplicationselect.getId(), currentFlow.getNodeId(), currentFlow.getCaseStatusName(),"签收");
789
+            CaseLogUtils.insertCaseLog(caseApplicationselect.getId(), currentFlow.getNodeId(), currentFlow.getCaseStatusName(),null);
790
         }
790
         }
791
 //        if (dto.getIsSignRespon() != null && dto.getIsSignRespon().intValue() == 1) {
791
 //        if (dto.getIsSignRespon() != null && dto.getIsSignRespon().intValue() == 1) {
792
 //            caseAffiliate.setIsSignRespon(1);
792
 //            caseAffiliate.setIsSignRespon(1);
810
             caseApplicationselect.setCaseFlowId(nextFlow.getId());
810
             caseApplicationselect.setCaseFlowId(nextFlow.getId());
811
             caseApplicationselect.setCaseStatusName(nextFlow.getCaseStatusName());
811
             caseApplicationselect.setCaseStatusName(nextFlow.getCaseStatusName());
812
             caseApplicationMapper.updateByPrimaryKeySelective(caseApplicationselect);
812
             caseApplicationMapper.updateByPrimaryKeySelective(caseApplicationselect);
813
-            CaseLogUtils.insertCaseLog(caseApplicationselect.getId(), currentFlow.getNodeId(), currentFlow.getCaseStatusName(),"签收");
813
+            CaseLogUtils.insertCaseLog(caseApplicationselect.getId(), currentFlow.getNodeId(), currentFlow.getCaseStatusName(),null);
814
         }
814
         }
815
 
815
 
816
         return AjaxResult.success("签收成功");
816
         return AjaxResult.success("签收成功");