Commit b79f6a88595419189e095352e4bb01b7c487da4f
Committed by
Gitee
!764 返回使用过优惠券逻辑---->状态字段取错了
Merge pull request !764 from Ai3_刘小龙/N/A
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 | 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 | 115 | throw exception(COUPON_STATUS_NOT_USED); |
| 116 | 116 | } |
| 117 | 117 | ... | ... |