案件修改
This commit is contained in:
+10
-30
@@ -149,13 +149,7 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
|
||||
public List<MsCaseApplicationVO> list(MsCaseApplicationReq req) {
|
||||
// admin查询所有案件
|
||||
if (StrUtil.equals(SecurityUtils.getUsername(), "admin")) {
|
||||
|
||||
if(req.getHearDateFlag()!=null){
|
||||
// todo 暂时写死
|
||||
req.setCaseFlowId(9);
|
||||
}
|
||||
startPage();
|
||||
|
||||
return msCaseApplicationMapper.list(req, null);
|
||||
}
|
||||
// 根据用户查询角色
|
||||
@@ -184,31 +178,16 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
|
||||
Map<String, MsCaseFlow> flowMap = caseFlows.stream().collect(Collectors.toMap(MsCaseFlow::getButtonAuthFlag, Function.identity()));
|
||||
List<String> caseStatusNames = caseFlows.stream().map(MsCaseFlow::getCaseStatusName).collect(Collectors.toList());
|
||||
for (SysRole role : roles) {
|
||||
if(StrUtil.isNotEmpty(role.getRoleName())&&StrUtil.equals(role.getRoleName(),"申请人")){
|
||||
req.setApplicantFlag(1);
|
||||
break;
|
||||
|
||||
}
|
||||
if(StrUtil.isNotEmpty(role.getRoleName())&&StrUtil.equals(role.getRoleName(),"被申请人")){
|
||||
caseStatusNames=new ArrayList<>();
|
||||
// todo 被申请人案件根据被申请人身份证号查询案件列表
|
||||
req.setRespondentIdentityNum(sysUser.getIdCard());
|
||||
MsCaseFlow caseFlow =null;
|
||||
// todo 查询待调解流程id被申请人暂时写死
|
||||
if(req.getMiniProgressFlag()!=null) {
|
||||
if (req.getHearDateFlag() != null) {
|
||||
// caseFlow = flowMap.get("caseManagement:list:mediate");
|
||||
caseStatusNames.add("待调解");
|
||||
} else {
|
||||
// 待选择调解员
|
||||
caseStatusNames.add("待选择调解员");
|
||||
}
|
||||
}else {
|
||||
// PC端
|
||||
caseStatusNames.add("待被申请人签收");
|
||||
if(StrUtil.isNotEmpty(role.getRoleName())){
|
||||
if(StrUtil.equals(role.getRoleName(),"申请人")) {
|
||||
caseStatusNames.add("待调解");
|
||||
break;
|
||||
}
|
||||
if(StrUtil.equals(role.getRoleName(),"被申请人")){
|
||||
caseStatusNames.add("待调解");
|
||||
req.setRespondentIdentityNum(sysUser.getIdCard());
|
||||
break;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
startPage();
|
||||
@@ -904,6 +883,7 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
|
||||
if (StrUtil.isNotEmpty(affiliate.getRespondentPhone())) {
|
||||
String sendContent = "尊敬的" + affiliate.getRespondentName() + "用户,您的" + application.getCaseNum() + "仲裁案件,已成功受理,请知晓,如非本人操作,请忽略本短信";
|
||||
// 给被申请人发送案件受理短信 尊敬的{1}用户,您的{2}仲裁案件,已成功受理,请知晓,如非本人操作,请忽略本短信
|
||||
// todo 发送申请人注册小程序短信
|
||||
Boolean smsFlag = SmsUtils.sendSms(application.getId(), "2049503", affiliate.getRespondentPhone(), new String[]{affiliate.getRespondentName(), application.getCaseNum()});
|
||||
CaseLogUtils.insertCaseLog(application.getId(), caseFlow.getNodeId(), caseFlow.getNodeName(), "向被申请人发送短信," + sendContent);
|
||||
SmsSendRecord smsSendRecord = new SmsSendRecord(application.getId(), application.getCaseNum(), affiliate.getRespondentPhone(), new Date(), sendContent);
|
||||
|
||||
Reference in New Issue
Block a user