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

Signed-off-by: Ai3_刘小龙 <wisty0317@163.com>
This commit is contained in:
Ai3_刘小龙 2023-11-28 09:16:58 +00:00 committed by Gitee
parent e4378e5628
commit 7b587a79ca
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);
}
// 校验状态
if (ObjectUtil.notEqual(coupon.getTemplateId(), CouponStatusEnum.USED.getStatus())) {
if (ObjectUtil.notEqual(coupon.getStatus(), CouponStatusEnum.USED.getStatus())) {
throw exception(COUPON_STATUS_NOT_USED);
}