|
|
@ -323,8 +323,8 @@ public class UserServiceImpl extends BaseServiceImpl<UserDao, UserEntity> implem |
|
|
|
|
|
|
|
QueryWrapper<UserEntity> wrapper = new QueryWrapper<>(); |
|
|
|
wrapper.eq(UserFieldConsant.WX_OPEN_ID, gridLeader.getWxOpenId()); |
|
|
|
UserEntity existUser = this.baseDao.selectOne(wrapper); |
|
|
|
|
|
|
|
// UserEntity existUser = this.baseDao.selectOne(wrapper);
|
|
|
|
UserDTO existUser = selectUserByWxInfo(gridLeader.getWxOpenId(), gridLeader.getWxUnionId()); |
|
|
|
String userId; |
|
|
|
String faceImg = userEntity.getFaceImg(); |
|
|
|
|
|
|
@ -346,6 +346,10 @@ public class UserServiceImpl extends BaseServiceImpl<UserDao, UserEntity> implem |
|
|
|
// 不更新头像信息
|
|
|
|
userEntity.setFaceImg(null); |
|
|
|
userEntity.setId(userId); |
|
|
|
//用户已绑定手机号时不更新手机号
|
|
|
|
if(StringUtils.isNotBlank(existUser.getMobile())){ |
|
|
|
userEntity.setMobile(existUser.getMobile()); |
|
|
|
} |
|
|
|
this.updateById(userEntity); |
|
|
|
|
|
|
|
for (UserGridRelationDTO userGridRelation : userGridList) { |
|
|
|