同步代码

This commit is contained in:
lulz1 2024-02-28 12:39:57 +08:00
parent 92fe207374
commit 1b9fff32d8
3 changed files with 3 additions and 3 deletions

View File

@ -118,7 +118,7 @@ public class CTripEstimatePrice implements EstimatePrice {
HotelPriceData hotelPriceData = new HotelPriceData();
if (!travelStandards.isEmpty()) {
String price = travelStandards.get(0).getPrice();
String arriveData = priceQueryData.getArriveData();
String arriveData = priceQueryData.getArriveDate();
String departDate = priceQueryData.getDepartDate();
if (arriveData != null) {
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");

View File

@ -74,7 +74,7 @@ public class CTripEstimate implements AmountEstimate {
priceQueryData.setArriveCity(leg.getDestinationLocation().getLocationName());
priceQueryData.setDepartCity(leg.getOriginLocation().getLocationName());
priceQueryData.setDepartDate(dateTimeFormatter.format(leg.getStartTime()));
priceQueryData.setArriveData(dateTimeFormatter.format(leg.getEndTime()));
priceQueryData.setArriveDate(dateTimeFormatter.format(leg.getEndTime()));
return priceQueryData;
}
}

View File

@ -7,5 +7,5 @@ public class PriceQueryData {
private String departCity;
private String arriveCity;
private String departDate;
private String arriveData;
private String arriveDate;
}