From 8c565ab4495af6ab6fa5c07e7b44bd8893f7ddd1 Mon Sep 17 00:00:00 2001 From: hurui <177768073@qq.com> Date: Fri, 21 Jul 2023 14:31:16 +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/web/controller/business/OrderCouponController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hai-order/src/main/java/com/web/controller/business/OrderCouponController.java b/hai-order/src/main/java/com/web/controller/business/OrderCouponController.java index 752f1210..bb45c6a9 100644 --- a/hai-order/src/main/java/com/web/controller/business/OrderCouponController.java +++ b/hai-order/src/main/java/com/web/controller/business/OrderCouponController.java @@ -240,7 +240,7 @@ public class OrderCouponController { if (!order.getProductType().equals(OrderProductType.PRODUCT_TYPE5.getNumber())) { throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "只支持卡券交易补发"); } - if (order.getOrderStatus().equals(OrderStatusEnum.type2.getType())) { + if (!order.getOrderStatus().equals(OrderStatusEnum.type2.getType())) { throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "补发失败!交易未处于已支付状态"); } if (!order.getExceptionStatus().equals(true)) {