1.修改同程打车数据修改类
This commit is contained in:
parent
aa4af85bbc
commit
2ae8305145
|
@ -549,6 +549,8 @@ public class LYOrderExtensionFactoryImpl implements OrderExtensionFactory {
|
|||
CarDetailResponse.CarOrderDetailInfo carOrderDetailInfo = data.getCarOrderDetailInfo();
|
||||
CarDetailResponse.OrderExtendInfo orderExtendInfo = data.getOrderExtendInfo();
|
||||
|
||||
CarDetailResponse.OrderDriverInfo orderDriverInfo = data.getOrderDriverInfo();
|
||||
|
||||
CarOrderDetail carOrderDetail = new CarOrderDetail();
|
||||
RouteOrder routeOrder = null;
|
||||
if (carOrderDetailInfo != null) {
|
||||
|
@ -614,11 +616,21 @@ public class LYOrderExtensionFactoryImpl implements OrderExtensionFactory {
|
|||
carOrderDetail.setArriveTime(orderExtendInfo.getFinishTime());
|
||||
carOrderDetail.setFromStationName(orderExtendInfo.getStartAddress());
|
||||
carOrderDetail.setToStationName(orderExtendInfo.getEndAddress());
|
||||
carOrderDetail.setCarModel(String.valueOf(orderExtendInfo.getCarType()));
|
||||
carOrderDetail.setFromCity(orderExtendInfo.getStartCityName());
|
||||
carOrderDetail.setToCity(orderExtendInfo.getEndCityName());
|
||||
carOrderDetail.setRunTime(orderExtendInfo.getDuration());
|
||||
carOrderDetail.setMileage(orderExtendInfo.getMileage());
|
||||
|
||||
String duration = orderExtendInfo.getDuration();
|
||||
String durationNumbers = duration.replaceAll("\\D+", "");
|
||||
carOrderDetail.setRunTime(durationNumbers);
|
||||
|
||||
String mileage = orderExtendInfo.getMileage();
|
||||
String mileageNumbers = mileage.replaceAll("\\D+", "");
|
||||
carOrderDetail.setMileage(mileageNumbers);
|
||||
}
|
||||
|
||||
|
||||
if (orderDriverInfo != null){
|
||||
carOrderDetail.setCarModel(String.valueOf(orderDriverInfo.getCarType()));
|
||||
}
|
||||
List<CarDetailResponse.SubmitItem> submitItemList =
|
||||
data.getTravelDataInfo().getSubmitItemList();
|
||||
|
|
|
@ -213,7 +213,7 @@ public class CTripTest {
|
|||
@Test
|
||||
void search() {
|
||||
BaseContext.setCurrentUser(user);
|
||||
SearchOrderResponse response = orderSearchRequest.searchOrderResponseByOrderId("30352884087");
|
||||
SearchOrderResponse response = orderSearchRequest.searchOrderResponseByOrderId("18367772578");
|
||||
System.out.println(response);
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ import com.chint.interfaces.rest.ly.*;
|
|||
import com.chint.interfaces.rest.ly.dto.applyordersync.*;
|
||||
import com.chint.interfaces.rest.ly.dto.commonresult.Result;
|
||||
import com.chint.interfaces.rest.ly.dto.estimateprice.*;
|
||||
import com.chint.interfaces.rest.ly.dto.search.response.car.CarDetailResponse;
|
||||
import com.chint.interfaces.rest.ly.dto.search.response.filght.FlightOrderResponse;
|
||||
import com.chint.interfaces.rest.ly.dto.search.response.hotel.HotelDetailResponse;
|
||||
import com.chint.interfaces.rest.ly.dto.search.response.train.TrainDetailResponse;
|
||||
|
@ -808,9 +809,17 @@ public class LYTest {
|
|||
// String json = gson.toJson(trainDetailResponse);
|
||||
// System.out.println(json);
|
||||
|
||||
HotelDetailResponse trainDetailResponse = lySearchRequest.getHotelOrderDetail("HO20240314170700934118");
|
||||
// HotelDetailResponse trainDetailResponse = lySearchRequest.getHotelOrderDetail("HO20240314114500180104");
|
||||
// Gson gson = new Gson();
|
||||
// String json = gson.toJson(trainDetailResponse);
|
||||
// System.out.println(json);
|
||||
|
||||
|
||||
// 30352884087
|
||||
|
||||
CarDetailResponse carDetailResponse = lySearchRequest.getCarDetailResponse("30352884087");
|
||||
Gson gson = new Gson();
|
||||
String json = gson.toJson(trainDetailResponse);
|
||||
String json = gson.toJson(carDetailResponse);
|
||||
System.out.println(json);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue