完成携程飞机订单明细拆解
This commit is contained in:
parent
ea75f92b74
commit
ab4c1a8026
|
@ -233,16 +233,18 @@ public class CTripOrderExtensionFactoryImpl implements OrderExtensionFactory {
|
|||
flightOrderDetail.setPaymentType("1");
|
||||
}
|
||||
//付款方式 ACCNT:公司统付 其他类型:个人支付
|
||||
if (flightOrderDetail.getPaymentType().equals("0")) {
|
||||
if (flightOrderDetail.getPaymentType().equals("0") && flightOrderDetail.getOrderStatus().equals(FSSC_FLIGHT_STATUS_SUCCESS)) {
|
||||
flightOrderDetail.setCompanyPaymentAmount(String.valueOf(flightOrderBasicInfo.getAmount()));
|
||||
flightOrderDetail.setPersonalPaymentAmount(KEEP_TWO_DECIMAL_ZERO);
|
||||
} else {
|
||||
flightOrderDetail.setPersonalPaymentAmount(String.valueOf(flightOrderBasicInfo.getAmount()));
|
||||
flightOrderDetail.setCompanyPaymentAmount(KEEP_TWO_DECIMAL_ZERO);
|
||||
flightOrderDetail.setPersonalPaymentAmount(KEEP_TWO_DECIMAL_ZERO);
|
||||
}
|
||||
|
||||
//默认为0
|
||||
//默认为0 , 根据不同的状态不同的值
|
||||
flightOrderDetail.setChangeFee(KEEP_TWO_DECIMAL_ZERO);
|
||||
flightOrderDetail.setRefundAmount(KEEP_TWO_DECIMAL_ZERO);
|
||||
|
||||
flightOrderDetail.setUpFee(KEEP_TWO_DECIMAL_ZERO);
|
||||
//对飞机明细的航班明细进行录入
|
||||
List<FlightInfo> flightInfoList = flightOrderInfoEntity.getFlightInfo();
|
||||
if (flightInfoList != null && !flightInfoList.isEmpty()) {
|
||||
|
@ -265,7 +267,7 @@ public class CTripOrderExtensionFactoryImpl implements OrderExtensionFactory {
|
|||
flightOrderDetail.setFlightModel(flightInfo.getFlight());
|
||||
//前后收服务费
|
||||
flightOrderDetail.setPreServiceFee(String.valueOf(flightInfo.getItineraryFee()));
|
||||
if(flightOrderDetail.getOrderStatus().equals(FSSC_FLIGHT_STATUS_SUCCESS)){
|
||||
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()));
|
||||
|
@ -302,8 +304,9 @@ public class CTripOrderExtensionFactoryImpl implements OrderExtensionFactory {
|
|||
ChangeInfo changeInfo = sequenceInfo.getChangeInfo().get(0);
|
||||
flightOrderDetail.setUpFee(String.valueOf(changeInfo.getPriceDifferential()));
|
||||
//如果是改签的,要加入改签费
|
||||
flightOrderDetail.setChangeFee(String.valueOf(changeInfo.getCFee()));
|
||||
flightOrderDetail.setChangeFee(String.valueOf(changeInfo.getRebookServiceFee()));
|
||||
flightOrderDetail.setOrderAmount(String.valueOf(changeInfo.getCFee()));
|
||||
flightOrderDetail.setCompanyPaymentAmount(String.valueOf(changeInfo.getCFee()));
|
||||
}
|
||||
}
|
||||
PassengerBasic passengerBasic = passengerInfo.getPassengerBasic();
|
||||
|
|
Loading…
Reference in New Issue