|
|
@@ -283,8 +283,9 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
|
|
283
|
283
|
boolean isMediatorRole=false;
|
|
284
|
284
|
// 查询申请人和被申请人
|
|
285
|
285
|
List<Long> caseIds = list.stream().map(MsCaseApplicationVO::getId).collect(Collectors.toList());
|
|
286
|
|
- Integer mediatorSort = flowNameMap.get("待调解");
|
|
|
286
|
+ Integer signSort = flowNameMap.get("待签名");
|
|
287
|
287
|
Integer sendSort = flowNameMap.get("待送达");
|
|
|
288
|
+ Integer mediatorSort = flowNameMap.get("待调解");
|
|
288
|
289
|
List<MsCaseAffiliate> affiliateList = msCaseAffiliateMapper.selectUserRoleByCaseIds(caseIds);
|
|
289
|
290
|
// 根据案件id分组
|
|
290
|
291
|
Map<Long, List<MsCaseAffiliate>> affiliateMap=null;
|
|
|
@@ -378,11 +379,22 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
|
|
378
|
379
|
}else {
|
|
379
|
380
|
vo.setSignButtonFlag(0);
|
|
380
|
381
|
}
|
|
381
|
|
- // 调解员,并且在待调节后,送达前,显示
|
|
382
|
|
- if(mediatorSort!=null && sendSort!=null && isMediatorRole
|
|
383
|
|
- && null!=flowNameMap.get(vo.getCaseStatusName())
|
|
384
|
|
- && flowNameMap.get(vo.getCaseStatusName())>mediatorSort
|
|
385
|
|
- && flowNameMap.get(vo.getCaseStatusName())<=sendSort){
|
|
|
382
|
+ // 1需要用印
|
|
|
383
|
+ boolean sealFlag = vo.getSealFlag() == null || !vo.getSealFlag().equals(1);
|
|
|
384
|
+ // 调解书按钮,线下调解(待调解后,送达前)或者线上调解(调解员,法律顾问在不用印,签名后,送达前,)显示
|
|
|
385
|
+
|
|
|
386
|
+ boolean sendFlag=sendSort != null && null != flowNameMap.get(vo.getCaseStatusName()) && flowNameMap.get(vo.getCaseStatusName()) <= sendSort;
|
|
|
387
|
+ // 是否线上调解
|
|
|
388
|
+ boolean offlineMediatorFlag=vo.getMediationMethod()!=null && vo.getMediationMethod().equals("1");
|
|
|
389
|
+ // 线上调解调解书按钮
|
|
|
390
|
+ boolean onlineMediatorFileFlag = offlineMediatorFlag && sealFlag && signSort != null
|
|
|
391
|
+ && flowNameMap.get(vo.getCaseStatusName()) > signSort
|
|
|
392
|
+ && sendFlag;
|
|
|
393
|
+ // 线下调解调解书按钮
|
|
|
394
|
+ boolean offlineMediatorFileFlag=!offlineMediatorFlag && mediatorSort!=null && flowNameMap.get(vo.getCaseStatusName()) > mediatorSort
|
|
|
395
|
+ && sendFlag;
|
|
|
396
|
+ // 调解员调解书按钮
|
|
|
397
|
+ if ( isMediatorRole && (onlineMediatorFileFlag || offlineMediatorFileFlag)) {
|
|
386
|
398
|
vo.setMediationFileFlag(1);
|
|
387
|
399
|
}
|
|
388
|
400
|
for (SysRole role : roles) {
|
|
|
@@ -394,10 +406,8 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
|
|
394
|
406
|
){
|
|
395
|
407
|
vo.setOtherFlag(1);
|
|
396
|
408
|
}
|
|
397
|
|
- if(role.getRoleName().equals("法律顾问") && mediatorSort!=null && sendSort!=null
|
|
398
|
|
- && null!=flowNameMap.get(vo.getCaseStatusName())
|
|
399
|
|
- && flowNameMap.get(vo.getCaseStatusName())>mediatorSort
|
|
400
|
|
- && flowNameMap.get(vo.getCaseStatusName())<=sendSort){
|
|
|
409
|
+
|
|
|
410
|
+ if(role.getRoleName().equals("法律顾问") && (onlineMediatorFileFlag || offlineMediatorFileFlag) ){
|
|
401
|
411
|
// 顾问可以上传下载调解书
|
|
402
|
412
|
vo.setMediationFileFlag(1);
|
|
403
|
413
|
}
|
|
|
@@ -2613,7 +2623,7 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
|
|
2613
|
2623
|
}
|
|
2614
|
2624
|
// 线上调解
|
|
2615
|
2625
|
if (application.getMediationMethod().equals("1")) {
|
|
2616
|
|
- Integer mediaResult = application.getMediaResult();
|
|
|
2626
|
+ Integer mediaResult = application.getMediaResult()==null ? req.getMediaResult():application.getMediaResult();
|
|
2617
|
2627
|
if (mediaResult == null) {
|
|
2618
|
2628
|
return AjaxResult.error("请选择调解结果");
|
|
2619
|
2629
|
}
|