1.修改飞机数据坐位数据问题

This commit is contained in:
wanglf3 2024-03-13 19:26:25 +08:00
parent d5e92277b2
commit 1b23c2c5a6
3 changed files with 4 additions and 3 deletions

View File

@ -162,8 +162,8 @@ public class CTripOrderExtensionFactoryImpl implements OrderExtensionFactory {
flightOrderDetail.setDistance(String.valueOf(flightInfo.getTpm()));
flightOrderDetail.setFlightCompName(flightInfo.getAirLineName());
flightOrderDetail.setFlightNum(flightInfo.getFlight());
flightOrderDetail.setSeatPoint(flightInfo.getClassName());
flightOrderDetail.setSeatPointName(flightInfo.getFlightClass());
flightOrderDetail.setSeatPoint(flightInfo.getFlightClass());
flightOrderDetail.setSeatPointName(flightInfo.getClassName());
flightOrderDetail.setFlightModel(flightInfo.getFlight());
//前后收服务费
flightOrderDetail.setPreServiceFee(String.valueOf(flightInfo.getItineraryFee()));

View File

@ -140,6 +140,7 @@ public class LYOrderExtensionFactoryImpl implements OrderExtensionFactory {
.stream()
.filter(it -> it.getOrderNo().equals(flightOrderDetail.getOrderNo()))
.findFirst();
first1.ifPresent(it ->{
OrderEvent lastEvent = it.getLastEvent();
if(lastEvent != null){

View File

@ -788,7 +788,7 @@ public class LYTest {
// @Test
void search(){
FlightOrderResponse t1 = lySearchRequest
.getFlightOrderDetail("DFC24031366600525071");
.getFlightOrderDetail("DFR24031366553705767");
Gson gson = new Gson();
String json = gson.toJson(t1);
System.out.println(json);