From 7adb569d1667c4383b2000cecf7e03252148dce8 Mon Sep 17 00:00:00 2001 From: hurui <177768073@qq.com> Date: Tue, 7 Feb 2023 09:59:27 +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/OrderPayController.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/hai-order/src/main/java/com/web/controller/OrderPayController.java b/hai-order/src/main/java/com/web/controller/OrderPayController.java index ddd76c8c..d0e77ca8 100644 --- a/hai-order/src/main/java/com/web/controller/OrderPayController.java +++ b/hai-order/src/main/java/com/web/controller/OrderPayController.java @@ -83,6 +83,9 @@ public class OrderPayController { @Resource private HighGasService gasService; + @Resource + private HighCouponService couponService; + @Resource private HighGasChannelConfigService gasChannelConfigService; @@ -141,7 +144,13 @@ public class OrderPayController { orderTitle = productType.getName(); } - if (order.getProductType().equals(OrderProductType.PRODUCT_TYPE6.getNumber())) { + if (order.getProductType().equals(OrderProductType.PRODUCT_TYPE5.getNumber())) { + HighCoupon coupon = couponService.getCouponById(order.getHighChildOrderList().get(0).getGoodsId()); + if (coupon.getCouponSource() != null && coupon.getCouponSource().equals(4)) { + weChatPayReqInfo.setSub_mch_id(WxOrderConfig.MCH_ID_1634835264); + } + + } else if (order.getProductType().equals(OrderProductType.PRODUCT_TYPE6.getNumber())) { // 查询油站 HighMerchantStoreModel store = merchantStoreService.getMerchantStoreById(order.getHighChildOrderList().get(0).getGoodsId()); if (store == null) {