加入会员合并同账号数据

This commit is contained in:
张松
2025-03-14 16:43:37 +08:00
parent 2f4e55aad3
commit 34e8d39e3b

View File

@@ -292,7 +292,7 @@ public class ShopUserServiceImpl extends ServiceImpl<ShopUserMapper, ShopUser> i
BeanUtil.copyProperties(shopUserAddDTO, userInfo);
userInfoService.updateById(userInfo);
if (shopUser.getIsVip() != 1 && shopUser.getId() != null) {
if ((shopUser.getIsVip() == null || shopUser.getIsVip() != 1) && shopUser.getId() != null) {
shopUser.setIsVip(1);
if (StrUtil.isBlank(shopUser.getCode())) {
shopUser.setCode(generateCode(shopId));