diff --git a/service/src/main/java/com/hfkj/service/order/impl/BsOrderServiceImpl.java b/service/src/main/java/com/hfkj/service/order/impl/BsOrderServiceImpl.java index 6472b5f..3614bce 100644 --- a/service/src/main/java/com/hfkj/service/order/impl/BsOrderServiceImpl.java +++ b/service/src/main/java/com/hfkj/service/order/impl/BsOrderServiceImpl.java @@ -284,6 +284,8 @@ public class BsOrderServiceImpl implements BsOrderService { if (discountUserRel.getStatus() != 1) { throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "优惠券状态不处于待使用"); } + discountUserRel.setStatus(2); + couponDiscountUserRelService.update(discountUserRel); // 查询优惠券 CouponDiscount discount = couponDiscountService.queryDetail(discountUserRel.getDiscountId()); if (discount == null) {