完成携程飞机订单明细拆解

This commit is contained in:
lulz1 2024-03-19 17:18:15 +08:00
parent 5a5ed598f1
commit dd01d7db6f
1 changed files with 9 additions and 8 deletions

View File

@ -224,7 +224,14 @@ public class CTripOrderExtensionFactoryImpl implements OrderExtensionFactory {
//对基础信息的录入OrderBasicInfo
flightOrderDetail.setCreateTime(flightOrderBasicInfo.getCreateTime());
flightOrderDetail.setOrderAmount(String.valueOf(flightOrderBasicInfo.getAmount()));
flightOrderDetail.setPostServiceFee(String.valueOf(flightOrderBasicInfo.getPostBasicServiceFee()));
//只有下单成功得状态会收取服务费
if (flightOrderDetail.equals(FSSC_FLIGHT_STATUS_SUCCESS)) {
flightOrderDetail.setPostServiceFee(String.valueOf(flightOrderBasicInfo.getPostBasicServiceFee()));
} else {
flightOrderDetail.setPostServiceFee(KEEP_TWO_DECIMAL_ZERO);
}
flightOrderDetail.setChangeFee(String.valueOf(flightOrderBasicInfo.getChangeAmount()));
flightOrderDetail.setRefundFee(String.valueOf(flightOrderBasicInfo.getRefundAmount()));
if (flightOrderBasicInfo.getPrepayType().equals("ACCNT")) {
@ -468,13 +475,7 @@ public class CTripOrderExtensionFactoryImpl implements OrderExtensionFactory {
hotelOrderDetail.setPreServiceFee(hotelOrderInfoEntity.getFrontendServiceFee());
if (hotelOrderDetail.getOrderStatus().equals(FSSC_FLIGHT_STATUS_SUCCESS)) {
//只有下单成功之后 会收取一笔服务费
hotelOrderDetail.setPostServiceFee(hotelOrderInfoEntity.getAfterServiceFee());
} else {
hotelOrderDetail.setPostServiceFee(KEEP_TWO_DECIMAL_ZERO);
}
hotelOrderDetail.setPostServiceFee(hotelOrderInfoEntity.getAfterServiceFee());
hotelOrderDetail.setStandardItems(hotelOrderInfoEntity.getTPMaxPrice());
if (hotelOrderInfoEntity.getHotelType().equals("协议酒店")) {