|
|
|
@ -198,11 +198,11 @@ public class HighGasDiscountOilPriceServiceImpl implements HighGasDiscountOilPri |
|
|
|
|
// 优惠价格 油站VIP价 * 系统折扣
|
|
|
|
|
payPriceModel.setPricePreferences(priceVip.multiply(discount).setScale(2, BigDecimal.ROUND_HALF_UP)); |
|
|
|
|
|
|
|
|
|
// 每升优惠 国标价 - 优惠价格
|
|
|
|
|
payPriceModel.setLitersPreferences(payPriceModel.getPriceOfficial().subtract(payPriceModel.getPricePreferences())); |
|
|
|
|
// 每升优惠 油站价 - 优惠价格
|
|
|
|
|
payPriceModel.setLitersPreferences(payPriceModel.getPriceGun().subtract(payPriceModel.getPricePreferences())); |
|
|
|
|
|
|
|
|
|
// 本次优惠 加油升数 * 每升优惠
|
|
|
|
|
payPriceModel.setTotalPreferences(payPriceModel.getOilLiters().multiply(payPriceModel.getLitersPreferences()).setScale(2, BigDecimal.ROUND_DOWN)); |
|
|
|
|
payPriceModel.setTotalPreferences(payPriceModel.getOilLiters().multiply(payPriceModel.getLitersPreferences()).setScale(2, BigDecimal.ROUND_HALF_UP)); |
|
|
|
|
|
|
|
|
|
// 支付价格 加油金额 - 本次优惠
|
|
|
|
|
payPriceModel.setPayPrice(oilingPrice.subtract(payPriceModel.getTotalPreferences())); |
|
|
|
|