修复酒店退款bug
This commit is contained in:
parent
d6a661ae23
commit
ddb6b4b876
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue