Browse Source

[补贴][修改]:添加补贴额打印

release_toaliyun_real
Stormeye Wu 7 years ago
parent
commit
ef59bd7477
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      mallinkService/src/main/java/com/iformall/service/impl/WxCardSpendServiceImpl.java

+ 1
- 0
mallinkService/src/main/java/com/iformall/service/impl/WxCardSpendServiceImpl.java View File

@@ -183,6 +183,7 @@ public class WxCardSpendServiceImpl implements WxCardSpendService {
// 8. 补贴
// 补贴额 = 商城补贴总额/卡券面额 * 抵扣额(本次支付额)
Integer subsidyFee = record.getDeductionAmount() * coupon.getSubsidyNum() / cardInfo.getAmount();
logger.info("补贴额: " + subsidyFee);
if(subsidyFee > 0) {
// 有补贴时入库
Double dSubChargeFee = Math.ceil(subsidyFee * 1.0D * payAccount.getRate() / 10000);


Loading…
Cancel
Save