mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-22 15:21:53 +08:00
返回使用过优惠券逻辑---->状态字段取错了
Signed-off-by: Ai3_刘小龙 <wisty0317@163.com>
This commit is contained in:
parent
e4378e5628
commit
7b587a79ca
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user