|
|
@ -443,18 +443,12 @@ public class HrUserAccountServiceImpl extends ServiceImpl<HrUserAccountMapper, H |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public R updateAvatars(String openId, String url, String userName) { |
|
|
|
public R updateAvatars(String openId, String url, String userName) { |
|
|
|
//查询账号详情List
|
|
|
|
//查询账号详情
|
|
|
|
List<HrUserAccount> userAccountList = hrUserAccountMapper.selectList(new QueryWrapper<HrUserAccount>() |
|
|
|
HrUserAccount hrUserAccount = hrUserAccountMapper.selectOne(new QueryWrapper<HrUserAccount>() |
|
|
|
.eq("app_open_id", openId)); |
|
|
|
.eq("app_open_id", openId).eq("platform_id", 7)); |
|
|
|
//查询个人端用户信息
|
|
|
|
|
|
|
|
Integer userId = null; |
|
|
|
|
|
|
|
for (HrUserAccount hrUserAccount : userAccountList) { |
|
|
|
|
|
|
|
if (hrUserAccount.getPlatformId().equals("7")){ |
|
|
|
|
|
|
|
userId = hrUserAccount.getUserId(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
//查询用户信息
|
|
|
|
//查询用户信息
|
|
|
|
HrUserInfo hrUserInfo = hrUserInfoMapper.selectByUserId(userId); |
|
|
|
HrUserInfo hrUserInfo = hrUserInfoMapper.selectByUserId(hrUserAccount.getUserId()); |
|
|
|
if (StringUtils.isNotBlank(url)){ |
|
|
|
if (StringUtils.isNotBlank(url)){ |
|
|
|
hrUserInfo.setUserAvatars(url); |
|
|
|
hrUserInfo.setUserAvatars(url); |
|
|
|
} |
|
|
|
} |
|
|
|