修改会员逻辑

This commit is contained in:
韩鹏辉
2024-05-31 15:34:43 +08:00
parent 78c5f533a8
commit 543f840aaa

View File

@@ -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 信息