修改联调问题

This commit is contained in:
wh
2026-05-12 17:04:37 +08:00
parent a226d1f1ad
commit b9000e18d8

View File

@@ -43,12 +43,9 @@ public class UserService {
public List<SysUser> listAllUsers(LoginUser currentUser) {
try {
assertSystemAdmin(currentUser);
// LambdaQueryWrapper wrapper = new LambdaQueryWrapper<SysUser>()
// .eq(SysUser::getPosition, UserPosition.ADMIN) // 添加岗位过滤
// .orderByAsc(SysUser::getId);
LambdaQueryWrapper wrapper = new LambdaQueryWrapper<SysUser>()
.ne(SysUser::getId, currentUser.userId())
.eq(SysUser::getPosition, UserPosition.ADMIN)
.in(SysUser::getPosition, UserPosition.ADMIN, UserPosition.SUPER_ADMIN)
.orderByAsc(SysUser::getId);
return sysUserMapper.selectList(wrapper);
} catch (ForbiddenException e) {