Commit 7b587a79ca8b6b6dbc29712f69dc2aa9de59e251
Committed by
Gitee
1 parent
e4378e56
返回使用过优惠券逻辑---->状态字段取错了
Signed-off-by: Ai3_刘小龙 <wisty0317@163.com>
Showing
1 changed file
with
1 additions
and
1 deletions
yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/service/coupon/CouponServiceImpl.java
| @@ -111,7 +111,7 @@ public class CouponServiceImpl implements CouponService { | @@ -111,7 +111,7 @@ public class CouponServiceImpl implements CouponService { | ||
| 111 | throw exception(COUPON_NOT_EXISTS); | 111 | throw exception(COUPON_NOT_EXISTS); |
| 112 | } | 112 | } |
| 113 | // 校验状态 | 113 | // 校验状态 |
| 114 | - if (ObjectUtil.notEqual(coupon.getTemplateId(), CouponStatusEnum.USED.getStatus())) { | 114 | + if (ObjectUtil.notEqual(coupon.getStatus(), CouponStatusEnum.USED.getStatus())) { |
| 115 | throw exception(COUPON_STATUS_NOT_USED); | 115 | throw exception(COUPON_STATUS_NOT_USED); |
| 116 | } | 116 | } |
| 117 | 117 |