From 79522213c23d3a759ee1f798630e723cf08b61e1 Mon Sep 17 00:00:00 2001 From: hurui <177768073@qq.com> Date: Mon, 20 May 2024 11:47:18 +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 --- .../hai/order/service/impl/OrderCreateHandleServiceImpl.java | 4 ++++ .../hai/order/service/impl/OrderPayBeforeServiceImpl.java | 5 ----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/hai-service/src/main/java/com/hai/order/service/impl/OrderCreateHandleServiceImpl.java b/hai-service/src/main/java/com/hai/order/service/impl/OrderCreateHandleServiceImpl.java index 3570fdcd..aa7e5733 100644 --- a/hai-service/src/main/java/com/hai/order/service/impl/OrderCreateHandleServiceImpl.java +++ b/hai-service/src/main/java/com/hai/order/service/impl/OrderCreateHandleServiceImpl.java @@ -1289,6 +1289,10 @@ public class OrderCreateHandleServiceImpl implements OrderCreateHandleService { @Override public HighChildOrder oilCard(HighOrder order, CreateOrderChildModel createOrderChildModel) { + SecConfig type = secConfigService.findByCodeType("OIL_CARD_RECHARGE"); + if (type != null && type.getCodeValue().equals("false")) { + throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "暂时无法充值!"); + } // 查询油卡 HighOilCard card = oilCardService.getOilCardByCardNo(createOrderChildModel.getGoodsId().toString()); if (card == null) { diff --git a/hai-service/src/main/java/com/hai/order/service/impl/OrderPayBeforeServiceImpl.java b/hai-service/src/main/java/com/hai/order/service/impl/OrderPayBeforeServiceImpl.java index 96d51f4c..b5d56557 100644 --- a/hai-service/src/main/java/com/hai/order/service/impl/OrderPayBeforeServiceImpl.java +++ b/hai-service/src/main/java/com/hai/order/service/impl/OrderPayBeforeServiceImpl.java @@ -96,11 +96,6 @@ public class OrderPayBeforeServiceImpl implements OrderPayBeforeService { throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未配置支付参数,请稍后重试!"); } - } else if (order.getProductType().equals(OrderProductType.PRODUCT_TYPE16.getNumber())) { - SecConfig type = secConfigService.findByCodeType("OIL_CARD_RECHARGE"); - if (type != null && type.getCodeValue().equals("false")) { - throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "暂时进行无法充值!"); - } } } }