|
|
@@ -88,6 +88,9 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
|
|
88
|
88
|
*/
|
|
89
|
89
|
@Value("${organizeConfig.creditCode}")
|
|
90
|
90
|
private long creditCode;
|
|
|
91
|
+
|
|
|
92
|
+ @Value("${arbitrateConfig.url}")
|
|
|
93
|
+ private String arbitrateUrl;
|
|
91
|
94
|
@Autowired
|
|
92
|
95
|
MsCaseApplicationService caseApplicationService;
|
|
93
|
96
|
@Autowired
|
|
|
@@ -185,6 +188,8 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
|
|
185
|
188
|
}
|
|
186
|
189
|
// Map<String, MsCaseFlow> flowMap = caseFlows.stream().collect(Collectors.toMap(MsCaseFlow::getButtonAuthFlag, Function.identity()));
|
|
187
|
190
|
List<String> caseStatusNames = caseFlows.stream().map(MsCaseFlow::getCaseStatusName).collect(Collectors.toList());
|
|
|
191
|
+ // 是否调解员
|
|
|
192
|
+ boolean isMediatorRole=false;
|
|
188
|
193
|
// 如果是申请人,可以看见申请人为自己(即自然人)或者委托代理人为自己的案件(即机构)
|
|
189
|
194
|
for (SysRole role : roles) {
|
|
190
|
195
|
if(StrUtil.isNotEmpty(role.getRoleName())){
|
|
|
@@ -209,6 +214,7 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
|
|
209
|
214
|
break;
|
|
210
|
215
|
}
|
|
211
|
216
|
if(StrUtil.equals(role.getRoleName(),"调解员")) {
|
|
|
217
|
+ isMediatorRole=true;
|
|
212
|
218
|
req.setMediatorId(String.valueOf(sysUser.getUserId()));
|
|
213
|
219
|
break;
|
|
214
|
220
|
}
|
|
|
@@ -220,7 +226,21 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
|
|
220
|
226
|
}
|
|
221
|
227
|
startPage();
|
|
222
|
228
|
// 查询案件列表
|
|
223
|
|
- return msCaseApplicationMapper.list(req, caseStatusNames);
|
|
|
229
|
+ List<MsCaseApplicationVO> list = msCaseApplicationMapper.list(req, caseStatusNames);
|
|
|
230
|
+ if (CollectionUtil.isNotEmpty(list)) {
|
|
|
231
|
+ // 判断调解员签名按钮权限,0-显示,1-不显示
|
|
|
232
|
+ for (MsCaseApplicationVO vo : list) {
|
|
|
233
|
+ if (isMediatorRole && vo.getMediaResult()!=null && vo.getMediaResult()==5) {
|
|
|
234
|
+ // 是调解员并且是和解协议,不显示
|
|
|
235
|
+ vo.setSignButtonFlag(1);
|
|
|
236
|
+
|
|
|
237
|
+ }else {
|
|
|
238
|
+ vo.setSignButtonFlag(0);
|
|
|
239
|
+ }
|
|
|
240
|
+ }
|
|
|
241
|
+
|
|
|
242
|
+ }
|
|
|
243
|
+ return list;
|
|
224
|
244
|
}
|
|
225
|
245
|
|
|
226
|
246
|
@Override
|
|
|
@@ -1317,7 +1337,7 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
|
|
1317
|
1337
|
sendContent = "尊敬的用户,您的" + application.getCaseNum() + "的案件,线上调解日期已确定为"+application.getHearDate()+",请知晓,如非本人操作,请忽略本短信。";
|
|
1318
|
1338
|
}else {
|
|
1319
|
1339
|
// 线下调解 2077966 尊敬的用户,您的{1}案件,线下调解日期已确定为{2},请知晓,如非本人操作,请忽略本短信。
|
|
1320
|
|
- smsFlag = SmsUtils.sendSms(application.getId(), "2075447", phone, new String[]{application.getCaseNum(),application.getHearDate()});
|
|
|
1340
|
+ smsFlag = SmsUtils.sendSms(application.getId(), "2077966", phone, new String[]{application.getCaseNum(),application.getHearDate()});
|
|
1321
|
1341
|
sendContent = "尊敬的用户,您的" + application.getCaseNum() + "的案件,线下调解日期已确定为"+application.getHearDate()+",请知晓,如非本人操作,请忽略本短信。";
|
|
1322
|
1342
|
|
|
1323
|
1343
|
}
|
|
|
@@ -1824,7 +1844,7 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
|
|
1824
|
1844
|
String paramsbody = JSONUtil.toJsonStr(caseApplicationVO);
|
|
1825
|
1845
|
long timestamp = System.currentTimeMillis();
|
|
1826
|
1846
|
String signStr = SignCheckUtils.getSign(paramsbody, accessSec, timestamp);
|
|
1827
|
|
- String urlstr = "http://localhost:8001/callArbitrateCaseApplication/generateCaseApplication";
|
|
|
1847
|
+ String urlstr = arbitrateUrl;
|
|
1828
|
1848
|
HttpResponse httpResponse = (HttpResponse) HttpRequest.post(urlstr)
|
|
1829
|
1849
|
.header("timestampstr", String.valueOf(timestamp))
|
|
1830
|
1850
|
.header("signstr", signStr)
|
|
|
@@ -2027,6 +2047,9 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
|
|
2027
|
2047
|
if(caseFlow != null){
|
|
2028
|
2048
|
application.setCaseFlowId(caseFlow.getId());
|
|
2029
|
2049
|
application.setCaseStatusName(caseFlow.getCaseStatusName());
|
|
|
2050
|
+ // 新增日志
|
|
|
2051
|
+ CaseLogUtils.insertCaseLog(application.getId(), currentFlow.getNodeId(), currentFlow.getCaseStatusName(),"");
|
|
|
2052
|
+
|
|
2030
|
2053
|
}
|
|
2031
|
2054
|
|
|
2032
|
2055
|
application.setMediaResult(mediaResult);
|