7-29-根据角色查询用户,过滤器条件修改

This commit is contained in:
郝彬 2025-07-29 09:47:38 +08:00
parent 4ac2b4314c
commit 6e4c96b404
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ public class UserRoleServiceImpl extends ServiceImpl<UserRoleMapper, UserRoleEnt
if (CollUtil.isEmpty(userIds)) {
return new ArrayList<>();
}
List<UserEntity> users = userService.listByIds(userIds).stream().filter(user -> Constants.DEL_FLAG_0.equals(user.getDelFlag()) && Constants.STATUS_1.equals(user.getStatus())).toList();
List<UserEntity> users = userService.listByIds(userIds).stream().filter(user -> Constants.DEL_FLAG_0.equals(user.getDelFlag()) && Constants.STATUS_0.equals(user.getStatus())).toList();
return Converts.INSTANCE.toUserResp(users);
}
}