仲裁bug修复
This commit is contained in:
@@ -39,7 +39,7 @@ public interface VideoService {
|
||||
* @param userId
|
||||
* @return
|
||||
*/
|
||||
AjaxResult secretaryRoleByUserId(Long userId);
|
||||
AjaxResult secretaryRoleByUserId(Long userId,Long caseId);
|
||||
|
||||
/**
|
||||
* 根据html字符串转pdf并和案件关联
|
||||
|
||||
+19
-2
@@ -321,11 +321,28 @@ public class VideoServiceImpl implements VideoService {
|
||||
}
|
||||
|
||||
@Override
|
||||
public AjaxResult secretaryRoleByUserId(Long userId) {
|
||||
public AjaxResult secretaryRoleByUserId(Long userId,Long caseId) {
|
||||
CaseApplication application = new CaseApplication();
|
||||
application.setId(caseId);
|
||||
// 根据案件id查询案件
|
||||
CaseApplication caseApplication = caseApplicationMapper.selectCaseApplication(application);
|
||||
if(caseApplication==null){
|
||||
return AjaxResult.error("案件不存在");
|
||||
}
|
||||
List<SysRole> roles = roleMapper.selectRolePermissionByUserId(userId);
|
||||
JSONObject jsonObject = new JSONObject();
|
||||
boolean isSecretaryRole=false;
|
||||
if(CollectionUtil.isNotEmpty(roles)){
|
||||
if(caseApplication.getArbitratorId()!=null&& Objects.equals(userId, caseApplication.getArbitratorId())){
|
||||
// 是调解员
|
||||
if(CollectionUtil.isNotEmpty(roles)){
|
||||
for (SysRole role : roles) {
|
||||
if("仲裁员".equals(role.getRoleName())){
|
||||
isSecretaryRole=true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}else if(CollectionUtil.isNotEmpty(roles)){
|
||||
for (SysRole role : roles) {
|
||||
if("法律顾问".equals(role.getRoleName()) || "秘书".equals(role.getRoleName())){
|
||||
isSecretaryRole=true;
|
||||
|
||||
Reference in New Issue
Block a user