修复消费明细的部分问题

This commit is contained in:
lulz1 2024-03-19 00:25:44 +08:00
parent 0a635cff82
commit b8688f7bca
2 changed files with 2 additions and 5 deletions

View File

@ -238,7 +238,7 @@ public class CTripOrderExtensionFactoryImpl implements OrderExtensionFactory {
if (first.get().getFlightOrderDetail() == null) {
flightOrderDetail = new FlightOrderDetail();
} else {
flightOrderDetail = first.get().getFlightOrderDetail();
return first.get().getFlightOrderDetail();
}
} else {
flightOrderDetail = new FlightOrderDetail();

View File

@ -412,7 +412,7 @@ public class LYOrderExtensionFactoryImpl implements OrderExtensionFactory {
TrainOrderDetail trainOrderDetail;
if (byOrderNo.isPresent()) {
if (byOrderNo.get().getHotelOrderDetail() == null) {
if (byOrderNo.get().getTrainOrderDetail() == null) {
trainOrderDetail = new TrainOrderDetail();
} else {
return byOrderNo.get().getTrainOrderDetail();
@ -508,7 +508,6 @@ public class LYOrderExtensionFactoryImpl implements OrderExtensionFactory {
trainOrderDetail.setCostCenter(approveOrderNo.getCostCenter());
trainOrderDetail.setProjectOrderNo(approveOrderNo.getProjectName());
}
}
if (item != null) {
@ -516,7 +515,6 @@ public class LYOrderExtensionFactoryImpl implements OrderExtensionFactory {
trainOrderDetail.setPostServiceFee(String.valueOf(item.getAfterServiceCharge()));
trainOrderDetail.setRefundAmount(String.valueOf(item.getRefundAmountCor()));
if (item.getSeatClass().equals("secondseat")) {
trainOrderDetail.setSeatType("二等座");
}
@ -549,7 +547,6 @@ public class LYOrderExtensionFactoryImpl implements OrderExtensionFactory {
if (changeItem != null) {
trainOrderDetail.setChangeDifference(String.valueOf(changeItem.getChangePrice()));
trainOrderDetail.setChangeDifference(String.valueOf(changeItem.getChangePrice()));
}
// trainOrderDetail.setSupplier(SUPPLIER_L_Y_EXTENSION_NAME);