修改携程飞机订单明细的生成逻辑
This commit is contained in:
parent
596d0fbf1d
commit
ea75f92b74
|
@ -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<FlightInfo> 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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue