|
|
@@ -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
|
/**
|