|
|
|
@ -279,7 +279,7 @@ public class BsTradeOrderServiceImpl implements BsTradeOrderService { |
|
|
|
|
tradeOrder.setRebateActivityPrice(rebateActivity.getPrice()); |
|
|
|
|
|
|
|
|
|
// 优惠折扣
|
|
|
|
|
BigDecimal priceRate = tradeOrder.getRebateActivityPrice().divide(new BigDecimal("10")).setScale(2, BigDecimal.ROUND_DOWN); |
|
|
|
|
BigDecimal priceRate = tradeOrder.getRebateActivityPrice().divide(new BigDecimal("100")).setScale(2, BigDecimal.ROUND_DOWN); |
|
|
|
|
tradeOrder.setRebateActivityActualPrice(tradeOrder.getTradeActualAmount().subtract(tradeOrder.getTradeActualAmount().multiply(priceRate).setScale(2, BigDecimal.ROUND_HALF_UP))); |
|
|
|
|
tradeOrder.setTradeActualAmount(tradeOrder.getTradeActualAmount().subtract(tradeOrder.getRebateActivityActualPrice())); |
|
|
|
|
} |
|
|
|
|