|
|
|
@@ -105,13 +105,13 @@ public class WxCardSpendServiceImpl implements WxCardSpendService { |
|
|
|
Integer payment = cardInfo.getSaleAmount() * record.getDeductionAmount() / cardInfo.getAmount(); |
|
|
|
Double dChargeFee = Math.ceil(payment * 1.0D * payAccount.getRate() / 10000); |
|
|
|
Integer real_payment = payment - dChargeFee.intValue(); |
|
|
|
Integer remain_real_pament = cardInfo.getRemainingShareFeeAmount()-real_payment; |
|
|
|
Integer remain_real_pament = cardInfo.getRemainingShareFeeAmount() - real_payment; |
|
|
|
|
|
|
|
Integer remaingAmount = cardInfo.getRemainingAmount()-record.getDeductionAmount(); |
|
|
|
if(remaingAmount.equals(0)) { |
|
|
|
// 最后一次支付时 |
|
|
|
real_payment = Math.min(real_payment, cardInfo.getRemainingShareFeeAmount()); |
|
|
|
remain_real_pament = 0; |
|
|
|
remain_real_pament = cardInfo.getRemainingShareFeeAmount() - real_payment; |
|
|
|
} |
|
|
|
|
|
|
|
// 6 insert card_spend |
|
|
|
|