修复酒店退款bug

This commit is contained in:
lulz1 2024-03-14 23:58:20 +08:00
parent d6a661ae23
commit ddb6b4b876
1 changed files with 1 additions and 3 deletions

View File

@ -567,9 +567,7 @@ public class CTripOrderExtensionFactoryImpl implements OrderExtensionFactory {
Optional<OrderEvent> first1 = orderDetail.getOrderEventList()
.stream()
.findFirst();
if (first1 != null){
hotelOrderDetail.setOverStandardReason(first1.get().getExtension());
}
first1.ifPresent(orderEvent -> hotelOrderDetail.setOverStandardReason(orderEvent.getExtension()));
return hotelOrderDetail;
}