From ea75f92b749d9e0ecef29742058c87392373c48d Mon Sep 17 00:00:00 2001 From: lulz1 Date: Tue, 19 Mar 2024 16:34:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=90=BA=E7=A8=8B=E9=A3=9E?= =?UTF-8?q?=E6=9C=BA=E8=AE=A2=E5=8D=95=E6=98=8E=E7=BB=86=E7=9A=84=E7=94=9F?= =?UTF-8?q?=E6=88=90=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CTripOrderExtensionFactoryImpl.java | 21 ++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) 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()); + } }