|
|
@ -125,6 +125,7 @@ public class HighGasController { |
|
|
|
|
|
|
|
|
|
|
|
// 原始油品价格
|
|
|
|
// 原始油品价格
|
|
|
|
JSONArray originalOilPriceList = result.getJSONArray("oilPriceList"); |
|
|
|
JSONArray originalOilPriceList = result.getJSONArray("oilPriceList"); |
|
|
|
|
|
|
|
|
|
|
|
// 新油品价格
|
|
|
|
// 新油品价格
|
|
|
|
JSONArray newOilPriceList = new JSONArray(); |
|
|
|
JSONArray newOilPriceList = new JSONArray(); |
|
|
|
|
|
|
|
|
|
|
@ -139,7 +140,11 @@ public class HighGasController { |
|
|
|
// 油品国标价 * 最终优惠比例
|
|
|
|
// 油品国标价 * 最终优惠比例
|
|
|
|
price.put("priceVip", price.getBigDecimal("priceOfficial").multiply(priceRate).setScale(2, BigDecimal.ROUND_DOWN)); |
|
|
|
price.put("priceVip", price.getBigDecimal("priceOfficial").multiply(priceRate).setScale(2, BigDecimal.ROUND_DOWN)); |
|
|
|
} |
|
|
|
} |
|
|
|
newOilPriceList.add(price); |
|
|
|
|
|
|
|
|
|
|
|
// 过滤油品,只保留汽油
|
|
|
|
|
|
|
|
if (price.getInteger("oilType") == 1) { |
|
|
|
|
|
|
|
newOilPriceList.add(price); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
result.put("oilPriceList", newOilPriceList); |
|
|
|
result.put("oilPriceList", newOilPriceList); |
|
|
|
|
|
|
|
|
|
|
|