修复飞机状态自动更新的问题
This commit is contained in:
parent
0ff9b994da
commit
e0f1d4568f
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue