券 领取数量校验

图库
This commit is contained in:
2025-09-26 13:58:53 +08:00
parent f5b6f5829c
commit a4d36a470c
9 changed files with 235 additions and 10 deletions

View File

@@ -130,7 +130,7 @@ public class ShopCouponServiceImpl extends ServiceImpl<ShopCouponMapper, ShopCou
continue;
}
} else {
long count = recordService.count(new QueryWrapper().eq(MkShopCouponRecord::getCouponSyncId, coupon.getId()));
long count = recordService.count(new QueryWrapper().eq(MkShopCouponRecord::getCouponId, coupon.getId()));
if (count >= coupon.getGetLimit()) {
continue;
}