同步机票退款代码
This commit is contained in:
parent
b85060b299
commit
f4bc30ecf8
|
@ -371,7 +371,7 @@ public class CTripOrderExtensionFactoryImpl implements OrderExtensionFactory {
|
|||
flightOrderDetail.setRefundAmount(String.valueOf(flightOrderFeeDetail.getTransactionAmount()));
|
||||
}
|
||||
if (flightRefundInfo != null) {
|
||||
if (!flightRefundInfo.getRefundDetail().isEmpty()) {
|
||||
if (flightRefundInfo.getRefundDetail() != null && !flightRefundInfo.getRefundDetail().isEmpty()) {
|
||||
FlightRefundDetail refundDetail = flightRefundInfo.getRefundDetail().get(0);
|
||||
flightOrderDetail.setRefundFee(String.valueOf(refundDetail.getRefundFee()));
|
||||
}
|
||||
|
|
|
@ -215,15 +215,17 @@ public class OrderDomainService {
|
|||
.reason(command.getExtension())
|
||||
.sendToQueue();
|
||||
|
||||
if (!orderEventType.equals(ORDER_EVENT_ETA) && orderDetail.getProductType().equals(LEG_TYPE_AIRPLANE)) {
|
||||
generateRefundAndChangeOrder(orderDetail.getOrderNo());
|
||||
}
|
||||
if (orderDetail.getSupplierName().equals(SUPPLIER_C_TRIP)) {
|
||||
if (!orderEventType.equals(ORDER_EVENT_ETA) && orderDetail.getProductType().equals(LEG_TYPE_AIRPLANE)) {
|
||||
generateRefundAndChangeOrder(orderDetail.getOrderNo());
|
||||
}
|
||||
|
||||
if (!orderEventType.equals(ORDER_EVENT_ETA) && orderDetail.getProductType().equals(LEG_TYPE_HOTEL)) {
|
||||
generateHotelRefundAndChangeOrder(orderDetail.getOrderNo());
|
||||
}
|
||||
if (!orderEventType.equals(ORDER_EVENT_ETA) && orderDetail.getProductType().equals(LEG_TYPE_TAXI)) {
|
||||
carRefundChangeOrder(orderDetail.getOrderNo());
|
||||
if (!orderEventType.equals(ORDER_EVENT_ETA) && orderDetail.getProductType().equals(LEG_TYPE_HOTEL)) {
|
||||
generateHotelRefundAndChangeOrder(orderDetail.getOrderNo());
|
||||
}
|
||||
if (!orderEventType.equals(ORDER_EVENT_ETA) && orderDetail.getProductType().equals(LEG_TYPE_TAXI)) {
|
||||
carRefundChangeOrder(orderDetail.getOrderNo());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue