From aae9040d1137d23b5eca48493d05512963a143bf Mon Sep 17 00:00:00 2001 From: puzhibing <393733352@qq.com> Date: 星期二, 03 十二月 2024 16:40:39 +0800 Subject: [PATCH] 修改启动异常 --- ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/service/impl/AppUserServiceImpl.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/service/impl/AppUserServiceImpl.java b/ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/service/impl/AppUserServiceImpl.java index 535e9dd..da54600 100644 --- a/ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/service/impl/AppUserServiceImpl.java +++ b/ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/service/impl/AppUserServiceImpl.java @@ -307,11 +307,11 @@ } public AppUser getTopAppUser(List<AppUser> list, Long id){ - AppUser appUser = list.stream().filter(s -> s.getInviteUserId().equals(id)).findFirst().get(); + AppUser appUser = list.stream().filter(s -> s.getId().equals(id)).findFirst().get(); if(null == appUser.getInviteUserId()){ return appUser; } - return getTopAppUser(list, appUser.getId()); + return getTopAppUser(list, appUser.getInviteUserId()); } -- Gitblit v1.7.1