Showing
1 changed file
with
3 additions
and
2 deletions
@@ -501,6 +501,9 @@ public class PaymentServiceImpl implements IPaymentService { | @@ -501,6 +501,9 @@ public class PaymentServiceImpl implements IPaymentService { | ||
501 | logger.info("transferMon插入初始化转账信息成功,接下来计算费用"); | 501 | logger.info("transferMon插入初始化转账信息成功,接下来计算费用"); |
502 | // 算费 | 502 | // 算费 |
503 | BigDecimal transferAmount = calcTransferAmount(sellerOrder.getUid(), sellerOrder.getSkup(), transferType); | 503 | BigDecimal transferAmount = calcTransferAmount(sellerOrder.getUid(), sellerOrder.getSkup(), transferType); |
504 | + transfer.setAmount(transferAmount); | ||
505 | + record.setAmount(transferAmount); | ||
506 | + | ||
504 | logger.info("transferMon计算费用结果为 {}", transferAmount); | 507 | logger.info("transferMon计算费用结果为 {}", transferAmount); |
505 | if (transferAmount == null || transferAmount.compareTo(new BigDecimal("0.1")) < 0) { | 508 | if (transferAmount == null || transferAmount.compareTo(new BigDecimal("0.1")) < 0) { |
506 | logger.warn("transferMonErr transferMon计算费用结果为 {}, 不合法的金额", transferAmount); | 509 | logger.warn("transferMonErr transferMon计算费用结果为 {}, 不合法的金额", transferAmount); |
@@ -508,8 +511,6 @@ public class PaymentServiceImpl implements IPaymentService { | @@ -508,8 +511,6 @@ public class PaymentServiceImpl implements IPaymentService { | ||
508 | addTradeBills(record); | 511 | addTradeBills(record); |
509 | throw new ServiceException(400, "不合法的金额:" + transferAmount); | 512 | throw new ServiceException(400, "不合法的金额:" + transferAmount); |
510 | } | 513 | } |
511 | - transfer.setAmount(transferAmount); | ||
512 | - record.setAmount(transferAmount); | ||
513 | // 因为转账支付宝扣费累计计算,使用转账额 | 514 | // 因为转账支付宝扣费累计计算,使用转账额 |
514 | record.setSystemAmount(transferAmount.multiply(new BigDecimal("-1"))); | 515 | record.setSystemAmount(transferAmount.multiply(new BigDecimal("-1"))); |
515 | 516 |
-
Please register or login to post a comment