【7.1.3】【user】用户列表增加数据范围的控制

pull/22/head
fengshuonan 2021-09-25 15:09:02 +08:00
parent be77382df1
commit f2210538dd
1 changed files with 3 additions and 3 deletions

View File

@ -414,12 +414,12 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
else if (dataScopeTypeEnums.contains(DataScopeTypeEnum.DEPT)
|| dataScopeTypeEnums.contains(DataScopeTypeEnum.DEPT_WITH_CHILD)
|| dataScopeTypeEnums.contains(DataScopeTypeEnum.DEFINE)) {
sysUserRequest.setScopeOrgIds(null);
sysUserRequest.setUserScopeIds(dataScopeUserIds);
sysUserRequest.setScopeOrgIds(dataScopeOrganizationIds);
sysUserRequest.setUserScopeIds(null);
}
// 如果包含了仅有自己的数据
else if (dataScopeTypeEnums.contains(DataScopeTypeEnum.SELF)) {
sysUserRequest.setScopeOrgIds(dataScopeOrganizationIds);
sysUserRequest.setScopeOrgIds(null);
sysUserRequest.setUserScopeIds(dataScopeUserIds);
}
// 其他情况,没有设置数据范围,则查所有