diff --git a/nakadai/src/main/java/com/huoran/nakadai/service/impl/PlatformTeamAccountServiceImpl.java b/nakadai/src/main/java/com/huoran/nakadai/service/impl/PlatformTeamAccountServiceImpl.java index 0387d16..4edfbd3 100644 --- a/nakadai/src/main/java/com/huoran/nakadai/service/impl/PlatformTeamAccountServiceImpl.java +++ b/nakadai/src/main/java/com/huoran/nakadai/service/impl/PlatformTeamAccountServiceImpl.java @@ -159,7 +159,9 @@ public class PlatformTeamAccountServiceImpl extends ServiceImpl userAccountList = hrUserAccountMapper.selectList(new QueryWrapper() .eq("app_open_id", openId)); - //查询用户信息 - HrUserInfo hrUserInfo = hrUserInfoMapper.selectByUserId(userAccountList.get(0).getUserId()); - hrUserInfo.setPhone(userAccountList.get(0).getPhone()); + //查询个人端用户信息 + Integer userId = null; + for (HrUserAccount hrUserAccount : userAccountList) { + if (hrUserAccount.getPlatformId().equals("7")){ + userId = hrUserAccount.getUserId(); + } + } + HrUserInfo hrUserInfo = hrUserInfoMapper.selectByUserId(userId); hrUserInfo.setAuthentication("未认证"); UserAuthenticationInformation authenticationInformation = userAuthenticationInformationMapper.selectOne(