提交代码

dev
胡锐 3 months ago
parent c399c302a8
commit b8afd0d323
  1. 4
      bweb/src/main/java/com/bweb/controller/BsGasOrderController.java
  2. 2
      service/src/main/java/com/hfkj/model/order/ExportGasOrderModel.java
  3. 4
      service/src/main/java/com/hfkj/service/gas/impl/BsGasServiceImpl.java

@ -292,7 +292,7 @@ public class BsGasOrderController {
model.setGasDiscount(gasOrder.getGasDiscount().compareTo(new BigDecimal("1")) != 0?gasOrder.getGasDiscount().multiply(new BigDecimal("100")).setScale(2).toString():"无");
model.setGasOilNo(gasOrder.getGasOilNo() + "#");
model.setGasGunNo(gasOrder.getGasGunNo() + "号枪");
model.setGasPriceVip(gasOrder.getGasPriceVip());
model.setGasPricePlatform(gasOrder.getGasPricePlatform());
model.setGasPriceGun(gasOrder.getGasPriceGun());
model.setGasPriceOfficial(gasOrder.getGasPriceOfficial());
model.setPayTypeName(gasOrder.getPayType()!=null? OrderPayTypeEnum.getDataByType(gasOrder.getPayType()).getName():"未支付");
@ -326,7 +326,7 @@ public class BsGasOrderController {
includeColumnFiledNames.add("gasOilNo");
includeColumnFiledNames.add("gasGunNo");
includeColumnFiledNames.add("gasDiscount");
includeColumnFiledNames.add("gasPriceVip");
includeColumnFiledNames.add("gasPricePlatform");
includeColumnFiledNames.add("gasPriceGun");
includeColumnFiledNames.add("gasPriceOfficial");
includeColumnFiledNames.add("payTypeName");

@ -70,7 +70,7 @@ public class ExportGasOrderModel {
@ColumnWidth(10)
@ExcelProperty({ "加油信息", "平台价"})
private BigDecimal gasPriceVip;
private BigDecimal gasPricePlatform;
@ColumnWidth(10)
@ExcelProperty({ "加油信息", "油站价"})

@ -100,8 +100,8 @@ public class BsGasServiceImpl implements BsGasService {
GasPayPriceModel payPriceModel = new GasPayPriceModel();
// 嗨森逛平台价 油价 * 折扣
BigDecimal pricePlatform = priceGun.multiply(discount).setScale(2, BigDecimal.ROUND_HALF_UP);
// 嗨森逛平台价 油站优惠价 * 折扣
BigDecimal pricePlatform = priceVip.multiply(discount).setScale(2, BigDecimal.ROUND_HALF_UP);
// 加油金额
payPriceModel.setOilingPrice(refuelPrice);

Loading…
Cancel
Save