From 34e8d39e3b8624eb4f6aa9cf239aa82e0129e549 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=9D=BE?= <8605635+zhang3064194730@user.noreply.gitee.com> Date: Fri, 14 Mar 2025 16:43:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=85=A5=E4=BC=9A=E5=91=98=E5=90=88?= =?UTF-8?q?=E5=B9=B6=E5=90=8C=E8=B4=A6=E5=8F=B7=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../czg/service/account/service/impl/ShopUserServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cash-service/account-service/src/main/java/com/czg/service/account/service/impl/ShopUserServiceImpl.java b/cash-service/account-service/src/main/java/com/czg/service/account/service/impl/ShopUserServiceImpl.java index 261fe3a8d..97072d32c 100644 --- a/cash-service/account-service/src/main/java/com/czg/service/account/service/impl/ShopUserServiceImpl.java +++ b/cash-service/account-service/src/main/java/com/czg/service/account/service/impl/ShopUserServiceImpl.java @@ -292,7 +292,7 @@ public class ShopUserServiceImpl extends ServiceImpl 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));