修复飞机状态自动更新的问题

This commit is contained in:
lulz1 2024-03-17 15:30:47 +08:00
parent 0ff9b994da
commit e0f1d4568f
1 changed files with 12 additions and 1 deletions

View File

@ -253,7 +253,18 @@ public class CTripOrderExtensionFactoryImpl implements OrderExtensionFactory {
String sysCode = routeOrder.getApproveOrderNo().getSysCode();
Optional<OrderDetail> first = routeOrder.getOrderDetails().stream().filter(orderDetail -> orderDetail.getOrderNo().equals(orderNo)).findFirst();
FlightOrderDetail flightOrderDetail = new FlightOrderDetail();
FlightOrderDetail flightOrderDetail;
if (first.isPresent()) {
if (first.get().getFlightOrderDetail() == null) {
flightOrderDetail = new FlightOrderDetail();
} else {
return first.get().getFlightOrderDetail();
}
} else {
flightOrderDetail = new FlightOrderDetail();
}
// flightOrderDetail.setSupplier(SUPPLIER_C_TRIP_EXTENSION_NAME);