同步机票退款代码

This commit is contained in:
lulz1 2024-03-14 23:08:17 +08:00
parent 9b57083795
commit c65f245406
1 changed files with 3 additions and 4 deletions

View File

@ -232,7 +232,8 @@ public class CTripOrderExtensionFactoryImpl implements OrderExtensionFactory {
List<FlightRefundInfo> flightRefundInfoList = flightOrderInfoEntity.getRefundInfo();
FlightRefundInfo flightRefundInfo=new FlightRefundInfo();
if (flightRefundInfoList.size() > 1) {
if (flightRefundInfoList != null && flightRefundInfoList.size() > 1) {
flightRefundInfo = flightRefundInfoList.get(0);
}
FlightOrderFeeDetail flightOrderFeeDetail = null;
@ -394,9 +395,7 @@ public class CTripOrderExtensionFactoryImpl implements OrderExtensionFactory {
Optional<OrderEvent> first1 = orderDetail.getOrderEventList()
.stream()
.findFirst();
if (first1 != null){
flightOrderDetail.setOverStandardReason(first1.get().getExtension());
}
first1.ifPresent(orderEvent -> flightOrderDetail.setOverStandardReason(orderEvent.getExtension()));
// flightOrderDetail.setPostServiceFee();
// flightOrderDetail.setParentOrderNo();