法律顾问查询

This commit is contained in:
18792927508
2023-10-31 16:01:54 +08:00
parent 5c13015bde
commit daf7621503
@@ -147,7 +147,9 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
} }
if (role.getRoleName().equals("法律顾问")) { if (role.getRoleName().equals("法律顾问")) {
// 查询角色有关的用户部门 // 查询角色有关的用户部门
List<Long> deptIds = sysDeptMapper.selectUserDeptListByRoleId(role.getRoleId()); // List<Long> deptIds = sysDeptMapper.selectUserDeptListByRoleId(role.getRoleId());
List<Long> deptIds =new ArrayList<>();
deptIds.add(sysUser.getDeptId());
caseApplication.setDeptIds(deptIds); caseApplication.setDeptIds(deptIds);
} }
if (StrUtil.isEmpty(caseApplication.getNameId()) && role.getRoleName().equals("申请人")) { if (StrUtil.isEmpty(caseApplication.getNameId()) && role.getRoleName().equals("申请人")) {
@@ -205,7 +207,9 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
} }
if(role.getRoleName().equals("法律顾问")){ if(role.getRoleName().equals("法律顾问")){
// 查询角色有关的用户部门 // 查询角色有关的用户部门
List<Long> deptIds = sysDeptMapper.selectUserDeptListByRoleId(role.getRoleId()); // List<Long> deptIds = sysDeptMapper.selectUserDeptListByRoleId(role.getRoleId());
List<Long> deptIds =new ArrayList<>();
deptIds.add(sysUser.getDeptId());
caseApplication.setDeptIds(deptIds); caseApplication.setDeptIds(deptIds);
} }
if(StrUtil.isEmpty(caseApplication.getNameId())&&role.getRoleName().equals("申请人")){ if(StrUtil.isEmpty(caseApplication.getNameId())&&role.getRoleName().equals("申请人")){