!764 返回使用过优惠券逻辑---->状态字段取错了

Merge pull request !764 from Ai3_刘小龙/N/A
This commit is contained in:
芋道源码 2023-11-28 12:25:05 +00:00 committed by Gitee
commit b79f6a8859
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -111,7 +111,7 @@ public class CouponServiceImpl implements CouponService {
throw exception(COUPON_NOT_EXISTS); throw exception(COUPON_NOT_EXISTS);
} }
// 校验状态 // 校验状态
if (ObjectUtil.notEqual(coupon.getTemplateId(), CouponStatusEnum.USED.getStatus())) { if (ObjectUtil.notEqual(coupon.getStatus(), CouponStatusEnum.USED.getStatus())) {
throw exception(COUPON_STATUS_NOT_USED); throw exception(COUPON_STATUS_NOT_USED);
} }