提交代码

dev
胡锐 2 months ago
parent 32ee57951b
commit e69ae7415e
  1. 2
      service/src/main/java/com/hfkj/service/order/OrderCreateService.java

@ -142,7 +142,7 @@ public class OrderCreateService {
gasOrder.setDeductionCouponPrice(orderDeduction.getCouponDiscountActualPrice()); gasOrder.setDeductionCouponPrice(orderDeduction.getCouponDiscountActualPrice());
gasOrder.setDeductionOilPrice(priceModel.getTotalPreferences()); gasOrder.setDeductionOilPrice(priceModel.getTotalPreferences());
gasOrder.setTotalDeductionPrice(gasOrder.getDeductionOilPrice().add(gasOrder.getDeductionCouponPrice())); gasOrder.setTotalDeductionPrice(gasOrder.getDeductionOilPrice().add(gasOrder.getDeductionCouponPrice()));
gasOrder.setPayablePrice(priceModel.getPayPrice().subtract(gasOrder.getTotalDeductionPrice())); gasOrder.setPayablePrice(priceModel.getOilingPrice().subtract(gasOrder.getTotalDeductionPrice()));
gasOrder.setPayablePrice(gasOrder.getPayablePrice().compareTo(new BigDecimal("0"))>=0?gasOrder.getPayablePrice():new BigDecimal("0")); gasOrder.setPayablePrice(gasOrder.getPayablePrice().compareTo(new BigDecimal("0"))>=0?gasOrder.getPayablePrice():new BigDecimal("0"));
// 油价信息 // 油价信息

Loading…
Cancel
Save