This commit is contained in:
dzc committed 2026-06-11 14:18:15 +08:00
1 parent fdc9653ffd
commit 38d1acf27a
1 file changed
+3 -1
@@ -274,7 +274,9 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
*/
@Override
public IPage<UserVO> getUsersWithRolePage(Page page, UserDTO userDTO, DataScope dataScope) {
dataScope.setScopeUserName(null);
if (ObjectUtil.isNotEmpty(dataScope)) {
dataScope.setScopeUserName(null);
}
IPage<UserVO> list = baseMapper.getUserVosPage(page, userDTO, dataScope);
if (ObjectUtil.isNotEmpty(list.getRecords())) {
List<Long> userIds = list.getRecords().stream().map(UserVO::getUserId).distinct().toList();