From 87c4873bb49c34d30f28f5cc2dbcd22b8d25916f Mon Sep 17 00:00:00 2001 From: cheney <1251790704@qq.com> Date: Thu, 21 Dec 2023 15:36:54 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=89=8B=E6=9C=BA=E5=8F=B7=E8=BF=94?= =?UTF-8?q?=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../huoran/users/service/impl/HrUserAccountServiceImpl.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/users/src/main/java/com/huoran/users/service/impl/HrUserAccountServiceImpl.java b/users/src/main/java/com/huoran/users/service/impl/HrUserAccountServiceImpl.java index a635418..eac8340 100644 --- a/users/src/main/java/com/huoran/users/service/impl/HrUserAccountServiceImpl.java +++ b/users/src/main/java/com/huoran/users/service/impl/HrUserAccountServiceImpl.java @@ -411,12 +411,15 @@ public class HrUserAccountServiceImpl extends ServiceImpl Date: Thu, 21 Dec 2023 15:48:01 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=90=8D=E7=A7=B0?= =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/HrUserAccountServiceImpl.java | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/users/src/main/java/com/huoran/users/service/impl/HrUserAccountServiceImpl.java b/users/src/main/java/com/huoran/users/service/impl/HrUserAccountServiceImpl.java index eac8340..d8834a5 100644 --- a/users/src/main/java/com/huoran/users/service/impl/HrUserAccountServiceImpl.java +++ b/users/src/main/java/com/huoran/users/service/impl/HrUserAccountServiceImpl.java @@ -443,18 +443,12 @@ public class HrUserAccountServiceImpl extends ServiceImpl userAccountList = hrUserAccountMapper.selectList(new QueryWrapper() - .eq("app_open_id", openId)); - //查询个人端用户信息 - Integer userId = null; - for (HrUserAccount hrUserAccount : userAccountList) { - if (hrUserAccount.getPlatformId().equals("7")){ - userId = hrUserAccount.getUserId(); - } - } + //查询账号详情 + HrUserAccount hrUserAccount = hrUserAccountMapper.selectOne(new QueryWrapper() + .eq("app_open_id", openId).eq("platform_id", 7)); + //查询用户信息 - HrUserInfo hrUserInfo = hrUserInfoMapper.selectByUserId(userId); + HrUserInfo hrUserInfo = hrUserInfoMapper.selectByUserId(hrUserAccount.getUserId()); if (StringUtils.isNotBlank(url)){ hrUserInfo.setUserAvatars(url); }