|
|
@@ -149,13 +149,7 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
|
|
149
|
149
|
public List<MsCaseApplicationVO> list(MsCaseApplicationReq req) {
|
|
150
|
150
|
// admin查询所有案件
|
|
151
|
151
|
if (StrUtil.equals(SecurityUtils.getUsername(), "admin")) {
|
|
152
|
|
-
|
|
153
|
|
- if(req.getHearDateFlag()!=null){
|
|
154
|
|
- // todo 暂时写死
|
|
155
|
|
- req.setCaseFlowId(9);
|
|
156
|
|
- }
|
|
157
|
152
|
startPage();
|
|
158
|
|
-
|
|
159
|
153
|
return msCaseApplicationMapper.list(req, null);
|
|
160
|
154
|
}
|
|
161
|
155
|
// 根据用户查询角色
|
|
|
@@ -184,31 +178,16 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
|
|
184
|
178
|
Map<String, MsCaseFlow> flowMap = caseFlows.stream().collect(Collectors.toMap(MsCaseFlow::getButtonAuthFlag, Function.identity()));
|
|
185
|
179
|
List<String> caseStatusNames = caseFlows.stream().map(MsCaseFlow::getCaseStatusName).collect(Collectors.toList());
|
|
186
|
180
|
for (SysRole role : roles) {
|
|
187
|
|
- if(StrUtil.isNotEmpty(role.getRoleName())&&StrUtil.equals(role.getRoleName(),"申请人")){
|
|
188
|
|
- req.setApplicantFlag(1);
|
|
189
|
|
- break;
|
|
190
|
|
-
|
|
191
|
|
- }
|
|
192
|
|
- if(StrUtil.isNotEmpty(role.getRoleName())&&StrUtil.equals(role.getRoleName(),"被申请人")){
|
|
193
|
|
- caseStatusNames=new ArrayList<>();
|
|
194
|
|
- // todo 被申请人案件根据被申请人身份证号查询案件列表
|
|
195
|
|
- req.setRespondentIdentityNum(sysUser.getIdCard());
|
|
196
|
|
- MsCaseFlow caseFlow =null;
|
|
197
|
|
- // todo 查询待调解流程id被申请人暂时写死
|
|
198
|
|
- if(req.getMiniProgressFlag()!=null) {
|
|
199
|
|
- if (req.getHearDateFlag() != null) {
|
|
200
|
|
-// caseFlow = flowMap.get("caseManagement:list:mediate");
|
|
201
|
|
- caseStatusNames.add("待调解");
|
|
202
|
|
- } else {
|
|
203
|
|
- // 待选择调解员
|
|
204
|
|
- caseStatusNames.add("待选择调解员");
|
|
205
|
|
- }
|
|
206
|
|
- }else {
|
|
207
|
|
- // PC端
|
|
208
|
|
- caseStatusNames.add("待被申请人签收");
|
|
|
181
|
+ if(StrUtil.isNotEmpty(role.getRoleName())){
|
|
|
182
|
+ if(StrUtil.equals(role.getRoleName(),"申请人")) {
|
|
|
183
|
+ caseStatusNames.add("待调解");
|
|
|
184
|
+ break;
|
|
|
185
|
+ }
|
|
|
186
|
+ if(StrUtil.equals(role.getRoleName(),"被申请人")){
|
|
|
187
|
+ caseStatusNames.add("待调解");
|
|
|
188
|
+ req.setRespondentIdentityNum(sysUser.getIdCard());
|
|
|
189
|
+ break;
|
|
209
|
190
|
}
|
|
210
|
|
-
|
|
211
|
|
- break;
|
|
212
|
191
|
}
|
|
213
|
192
|
}
|
|
214
|
193
|
startPage();
|
|
|
@@ -904,6 +883,7 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
|
|
904
|
883
|
if (StrUtil.isNotEmpty(affiliate.getRespondentPhone())) {
|
|
905
|
884
|
String sendContent = "尊敬的" + affiliate.getRespondentName() + "用户,您的" + application.getCaseNum() + "仲裁案件,已成功受理,请知晓,如非本人操作,请忽略本短信";
|
|
906
|
885
|
// 给被申请人发送案件受理短信 尊敬的{1}用户,您的{2}仲裁案件,已成功受理,请知晓,如非本人操作,请忽略本短信
|
|
|
886
|
+ // todo 发送申请人注册小程序短信
|
|
907
|
887
|
Boolean smsFlag = SmsUtils.sendSms(application.getId(), "2049503", affiliate.getRespondentPhone(), new String[]{affiliate.getRespondentName(), application.getCaseNum()});
|
|
908
|
888
|
CaseLogUtils.insertCaseLog(application.getId(), caseFlow.getNodeId(), caseFlow.getNodeName(), "向被申请人发送短信," + sendContent);
|
|
909
|
889
|
SmsSendRecord smsSendRecord = new SmsSendRecord(application.getId(), application.getCaseNum(), affiliate.getRespondentPhone(), new Date(), sendContent);
|