同步代码
This commit is contained in:
parent
92fe207374
commit
1b9fff32d8
|
@ -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");
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,5 +7,5 @@ public class PriceQueryData {
|
|||
private String departCity;
|
||||
private String arriveCity;
|
||||
private String departDate;
|
||||
private String arriveData;
|
||||
private String arriveDate;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue