From 3c18daeb083311808c14813589ad6ade5892a657 Mon Sep 17 00:00:00 2001 From: hurui <177768073@qq.com> Date: Thu, 18 May 2023 10:25:24 +0800 Subject: [PATCH 1/2] =?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/impl/BsTradeOrderServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/src/main/java/com/hfkj/service/impl/BsTradeOrderServiceImpl.java b/service/src/main/java/com/hfkj/service/impl/BsTradeOrderServiceImpl.java index 23e94ca..0b7ad99 100644 --- a/service/src/main/java/com/hfkj/service/impl/BsTradeOrderServiceImpl.java +++ b/service/src/main/java/com/hfkj/service/impl/BsTradeOrderServiceImpl.java @@ -119,7 +119,7 @@ public class BsTradeOrderServiceImpl implements BsTradeOrderService { tradeOrder.setStoreDiscountFinalCostPrice(storeDiscount.getFinalCostPrice()); if (storeDiscount.getDiscountType().equals(StoreDiscountActivityTypeEnum.type1.getNumber())) { // 未达到满减门槛 - if (userDiscount.getDiscountCondition().compareTo(tradeOrder.getTradeAmount()) >= 0) { + if (tradeOrder.getTradeAmount().compareTo(storeDiscount.getDiscountCondition()) < 0) { throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "满减优惠,未达到满减条件"); } else { tradeOrder.setStoreDiscountSatisfy(true); @@ -155,7 +155,7 @@ public class BsTradeOrderServiceImpl implements BsTradeOrderService { tradeOrder.setUserDiscountType(userDiscount.getDiscountType()); tradeOrder.setUserDiscountPrice(userDiscount.getDiscountPrice()); if (userDiscount.getDiscountType().equals(UserDiscountTypeEnum.type1.getNumber())) { - if (userDiscount.getDiscountCondition().compareTo(tradeOrder.getTradeAmount()) > 0) { + if (tradeOrder.getTradeAmount().compareTo(userDiscount.getDiscountCondition()) < 0) { throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "优惠券未达到满减门槛"); } tradeOrder.setUserDiscountActualPrice(userDiscount.getDiscountPrice()); From d431ca9fe0463ceba2996bdc5cb1c990b718f113 Mon Sep 17 00:00:00 2001 From: hurui <177768073@qq.com> Date: Thu, 18 May 2023 10:45:38 +0800 Subject: [PATCH 2/2] =?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 --- .../main/java/com/hfkj/channel/hsg/config/HsgConfig.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/service/src/main/java/com/hfkj/channel/hsg/config/HsgConfig.java b/service/src/main/java/com/hfkj/channel/hsg/config/HsgConfig.java index ee96e65..948947b 100644 --- a/service/src/main/java/com/hfkj/channel/hsg/config/HsgConfig.java +++ b/service/src/main/java/com/hfkj/channel/hsg/config/HsgConfig.java @@ -10,7 +10,10 @@ import com.hfkj.config.CommonSysConst; public class HsgConfig { public final static String hsgDomainName = CommonSysConst.getSysConfig().getHsg_domain_name(); - public final static String apiKey = "0C7897EA3BD96156A5881618FF2FF645"; - public final static String merchId = "20230258302"; +/* public final static String apiKey = "0C7897EA3BD96156A5881618FF2FF645"; + public final static String merchId = "20230258302";*/ + + public final static String apiKey = "B94B5E62807FA56A7260AB581D8A1B48"; + public final static String merchId = "20230394901"; }