Explorar el Código

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

wangqiong123 hace 2 años
padre
commit
de0d26882e

+ 2
- 2
ruoyi-admin/src/main/resources/application.yml Ver fichero

@@ -18,7 +18,7 @@ ruoyi:
18 18
 # 开发环境配置
19 19
 server:
20 20
   # 测试环境6001,开发环境7001
21
-  port: 6001
21
+  port: 7001
22 22
   servlet:
23 23
     # 应用的访问路径
24 24
     context-path: /
@@ -193,7 +193,7 @@ arbitrateConfig:
193 193
   url: http://121.40.189.20:9001/callArbitrateCaseApplication/generateCaseApplication
194 194
 # 回调通知
195 195
 signSealCallbackConfig:
196
-  url: http://121.40.189.20:6001/mssignSeal/signSeaalCaseApplicaCallback
196
+  url: http://121.40.189.20:7001/mssignSeal/signSeaalCaseApplicaCallback
197 197
 #  onlyOffice系统url配置
198 198
 onlyOfficeConfig:
199 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 Ver fichero

@@ -1865,7 +1865,7 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
1865 1865
         // 申请人预约
1866 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 1870
             if (StrUtil.isEmpty(msCaseAffiliate.getRespondentIdentityNum())) {
1871 1871
                 return AjaxResult.error("被申请人身份证为空");
@@ -1876,7 +1876,7 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
1876 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 1881
             caseApplicationService. isReservation( vo,userIds);
1882 1882
 
@@ -2225,6 +2225,7 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
2225 2225
         if (currentFlow == null) {
2226 2226
             throw new ServiceException("未找到当前流程节点");
2227 2227
         }
2228
+        Integer mediaResult = req.getMediaResult();
2228 2229
         MsCaseAffiliate caseAffiliate = msCaseAffiliateMapper.selectByPrimaryKey(req.getId());
2229 2230
         if (application.getMediationMethod().equals("1")) {
2230 2231
             // 线上调解
@@ -2237,9 +2238,7 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
2237 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 2243
                         List<MsCaseAttach> caseAttachList = msCaseAttachMapper.queryAnnexPathByCaseId(req.getId());
2245 2244
                         if (caseAttachList != null && caseAttachList.size() > 0) {
@@ -2898,7 +2897,7 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
2898 2897
                         }
2899 2898
                 }
2900 2899
 
2901
-            }
2900
+
2902 2901
         } else {
2903 2902
             // 线下调解
2904 2903
             List<MsCaseAttach> attachList = req.getAttachList();
@@ -2911,14 +2910,45 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
2911 2910
                 attach.setCaseAppliId(req.getId());
2912 2911
                 msCaseAttachMapper.updateCaseAttach(attach);
2913 2912
             }
2914
-           // msCaseAttachMapper.batchSave(attachList);
2915 2913
             // 修改案件状态为待送达
2916 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 2947
             MsCaseFlow caseFlow = caseFlowMapper.selectOneByExample(flowExample);
2919 2948
             if(caseFlow != null){
2920 2949
                 application.setCaseFlowId(caseFlow.getId());
2921 2950
                 application.setCaseStatusName(caseFlow.getCaseStatusName());
2951
+                application.setMediaResult(mediaResult);
2922 2952
                 msCaseApplicationMapper.updateByPrimaryKey(application);
2923 2953
                 // 新增日志
2924 2954
                 CaseLogUtils.insertCaseLog(application.getId(), currentFlow.getNodeId(), currentFlow.getCaseStatusName(),"");
@@ -2927,7 +2957,7 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
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 Ver fichero

@@ -350,7 +350,7 @@ public class MsCasePaymentServiceImpl implements MsCasePaymentService {
350 350
         }
351 351
         // 新增日志
352 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 354
         }else {
355 355
             CaseLogUtils.insertCaseLog(application.getId(), currentFlow.getNodeId(), currentFlow.getCaseStatusName(), "拒绝确认缴费,拒绝原因为:"+dto.getReason());
356 356
         }
@@ -509,7 +509,7 @@ public class MsCasePaymentServiceImpl implements MsCasePaymentService {
509 509
         application.setCaseFlowId(nextFlow.getId());
510 510
         application.setCaseStatusName(nextFlow.getCaseStatusName());
511 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 Ver fichero

@@ -411,7 +411,7 @@ public class MsSignSealServiceImpl implements MsSignSealService {
411 411
                 application.setCaseFlowId(nextFlow.getId());
412 412
                 application.setCaseStatusName(nextFlow.getCaseStatusName());
413 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 416
         } else {
417 417
             // 单独
@@ -421,7 +421,7 @@ public class MsSignSealServiceImpl implements MsSignSealService {
421 421
             application.setCaseFlowId(nextFlow.getId());
422 422
             application.setCaseStatusName(nextFlow.getCaseStatusName());
423 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 426
         return AjaxResult.success("用印申请成功");
427 427
 
@@ -786,7 +786,7 @@ public class MsSignSealServiceImpl implements MsSignSealService {
786 786
             caseApplicationselect.setCaseFlowId(nextFlow.getId());
787 787
             caseApplicationselect.setCaseStatusName(nextFlow.getCaseStatusName());
788 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 791
 //        if (dto.getIsSignRespon() != null && dto.getIsSignRespon().intValue() == 1) {
792 792
 //            caseAffiliate.setIsSignRespon(1);
@@ -810,7 +810,7 @@ public class MsSignSealServiceImpl implements MsSignSealService {
810 810
             caseApplicationselect.setCaseFlowId(nextFlow.getId());
811 811
             caseApplicationselect.setCaseStatusName(nextFlow.getCaseStatusName());
812 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 816
         return AjaxResult.success("签收成功");