diff --git a/src/main/java/com/chint/domain/factoriy/order_detail/CTripOrderExtensionFactoryImpl.java b/src/main/java/com/chint/domain/factoriy/order_detail/CTripOrderExtensionFactoryImpl.java index c24dad83..cf1743f6 100644 --- a/src/main/java/com/chint/domain/factoriy/order_detail/CTripOrderExtensionFactoryImpl.java +++ b/src/main/java/com/chint/domain/factoriy/order_detail/CTripOrderExtensionFactoryImpl.java @@ -239,6 +239,10 @@ public class CTripOrderExtensionFactoryImpl implements OrderExtensionFactory { flightOrderDetail.setPersonalPaymentAmount(String.valueOf(flightOrderBasicInfo.getAmount())); } + //默认为0 + flightOrderDetail.setChangeFee(KEEP_TWO_DECIMAL_ZERO); + flightOrderDetail.setRefundAmount(KEEP_TWO_DECIMAL_ZERO); + //对飞机明细的航班明细进行录入 List flightInfoList = flightOrderInfoEntity.getFlightInfo(); if (flightInfoList != null && !flightInfoList.isEmpty()) { @@ -261,11 +265,18 @@ public class CTripOrderExtensionFactoryImpl implements OrderExtensionFactory { flightOrderDetail.setFlightModel(flightInfo.getFlight()); //前后收服务费 flightOrderDetail.setPreServiceFee(String.valueOf(flightInfo.getItineraryFee())); - flightOrderDetail.setFuelTax(String.valueOf(flightInfo.getOilFee())); - flightOrderDetail.setAirportTax(String.valueOf(flightInfo.getTax())); - flightOrderDetail.setFacePrice(String.valueOf(flightInfo.getPrice())); - flightOrderDetail.setStandard(flightInfo.getClassName() + flightInfo.getPriceRate()); - flightOrderDetail.setNotBookedLowestPriceReason(flightInfo.getReasonDesc()); + if(flightOrderDetail.getOrderStatus().equals(FSSC_FLIGHT_STATUS_SUCCESS)){ + flightOrderDetail.setFuelTax(String.valueOf(flightInfo.getOilFee())); + flightOrderDetail.setAirportTax(String.valueOf(flightInfo.getTax())); + flightOrderDetail.setFacePrice(String.valueOf(flightInfo.getPrice())); + flightOrderDetail.setStandard(flightInfo.getClassName() + flightInfo.getPriceRate()); + flightOrderDetail.setNotBookedLowestPriceReason(flightInfo.getReasonDesc()); + } else { + flightOrderDetail.setFuelTax(KEEP_TWO_DECIMAL_ZERO); + flightOrderDetail.setAirportTax(KEEP_TWO_DECIMAL_ZERO); + flightOrderDetail.setFacePrice(KEEP_TWO_DECIMAL_ZERO); + flightOrderDetail.setStandard(flightInfo.getClassName() + flightInfo.getPriceRate()); + } }