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)) {