From 334671f232de96d4b67c752ae97a2c01b1d23db3 Mon Sep 17 00:00:00 2001 From: cheney <1251790704@qq.com> Date: Thu, 21 Dec 2023 15:48:01 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=90=8D=E7=A7=B0=E6=9B=B4?= =?UTF-8?q?=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); }