debug
This commit is contained in:
parent
3c83165a93
commit
3dbe80c279
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user