修改会员逻辑
This commit is contained in:
@@ -116,6 +116,28 @@ public class LoginService {
|
||||
tbShopUserMapper.updateByPrimaryKey(tbShopUser);
|
||||
}
|
||||
}
|
||||
|
||||
List<TbShopUser> tbShopUse= tbShopUserMapper.selectByPhone(telephone);
|
||||
if(ObjectUtil.isNotNull(tbShopUse)){
|
||||
TbUserInfo finalUserInfo = userInfo;
|
||||
tbShopUse.parallelStream().forEach(it->{
|
||||
if(ObjectUtil.isNull(it.getUserId())||ObjectUtil.isEmpty(it.getUserId())){
|
||||
it.setUserId(finalUserInfo.getId().toString());
|
||||
it.setUpdatedAt(System.currentTimeMillis());
|
||||
tbShopUserMapper.updateByPrimaryKey(it);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
//生成token 信息
|
||||
|
||||
Reference in New Issue
Block a user