This commit is contained in:
墨大叔 2024-09-09 16:59:38 +08:00
parent 3c83165a93
commit 3dbe80c279

View File

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