|
|
|
@ -98,7 +98,7 @@ public class HighGasController { |
|
|
|
|
// 优惠比例 / 100 = 最终优惠比例
|
|
|
|
|
BigDecimal priceRate = gasDiscountOilPrice.getPriceRate().divide(new BigDecimal("100").setScale(2, BigDecimal.ROUND_DOWN)); |
|
|
|
|
// 油品国标价 * 最终优惠比例
|
|
|
|
|
map.put("price_vip", new BigDecimal(MapUtils.getString(map, "price_official")).multiply(priceRate).setScale(1, BigDecimal.ROUND_DOWN)); |
|
|
|
|
map.put("price_vip", new BigDecimal(MapUtils.getString(map, "price_official")).multiply(priceRate).setScale(2, BigDecimal.ROUND_DOWN)); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -137,7 +137,7 @@ public class HighGasController { |
|
|
|
|
// 优惠比例 / 100 = 最终优惠比例
|
|
|
|
|
BigDecimal priceRate = gasDiscountOilPrice.getPriceRate().divide(new BigDecimal("100").setScale(2, BigDecimal.ROUND_DOWN)); |
|
|
|
|
// 油品国标价 * 最终优惠比例
|
|
|
|
|
price.put("priceVip", price.getBigDecimal("priceOfficial").multiply(priceRate).setScale(1, BigDecimal.ROUND_DOWN)); |
|
|
|
|
price.put("priceVip", price.getBigDecimal("priceOfficial").multiply(priceRate).setScale(2, BigDecimal.ROUND_DOWN)); |
|
|
|
|
} |
|
|
|
|
newOilPriceList.add(price); |
|
|
|
|
} |
|
|
|
|