From c0c2de5a10b3adcf36874014eeebe8731f3f1080 Mon Sep 17 00:00:00 2001 From: hurui <177768073@qq.com> Date: Mon, 27 May 2024 10:16:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/hfkj/service/order/impl/BsOrderServiceImpl.java | 2 ++ 1 file changed, 2 insertions(+) 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) {