会员信息接口修改

This commit is contained in:
张松 2025-03-11 16:43:36 +08:00
parent 34b10dee11
commit e278862d7d
1 changed files with 1 additions and 0 deletions

View File

@ -271,6 +271,7 @@ public class ShopUserServiceImpl extends ServiceImpl<ShopUserMapper, ShopUser> i
long couponNum = 0;
if (shopUser == null) {
shopUser = new ShopUser();
shopUser.setIsVip(0);
}else {
couponNum = shopActivateCouponRecordService.count(new QueryWrapper().eq(ShopActivateCouponRecord::getShopUserId, shopUser.getId()).eq(ShopActivateCouponRecord::getStatus, 0));
}