diff --git a/smart-switch-service/src/main/java/com/ruoyi/ss/transactionBill/service/impl/TransactionBillServiceImpl.java b/smart-switch-service/src/main/java/com/ruoyi/ss/transactionBill/service/impl/TransactionBillServiceImpl.java index 3436b85c..238013b8 100644 --- a/smart-switch-service/src/main/java/com/ruoyi/ss/transactionBill/service/impl/TransactionBillServiceImpl.java +++ b/smart-switch-service/src/main/java/com/ruoyi/ss/transactionBill/service/impl/TransactionBillServiceImpl.java @@ -293,7 +293,11 @@ public class TransactionBillServiceImpl implements TransactionBillService, After // 最低服务费 BigDecimal minService = sysConfigService.getBigDecimal(ConfigKey.RECHARGE_MIN_SERVICE); ServiceUtil.assertion(order.getMoney().compareTo(minService) < 0, "当前套餐金额小于最低服务费,请联系商户处理"); + if (serviceCharge.compareTo(minService) < 0) { + serviceCharge = minService; + } order.setServiceCharge(serviceCharge); + // 商户最终到账的金额 = 交易金额 - 服务费 order.setArrivalAmount(order.getMoney().subtract(serviceCharge)); } else {