From 1b9fff32d8a68452ae66d12b43e3e719b8b887a2 Mon Sep 17 00:00:00 2001 From: lulz1 Date: Wed, 28 Feb 2024 12:39:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chint/application/queryies/estimate/CTripEstimatePrice.java | 2 +- .../com/chint/domain/service/amount_estimate/CTripEstimate.java | 2 +- src/main/java/com/chint/domain/value_object/PriceQueryData.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/chint/application/queryies/estimate/CTripEstimatePrice.java b/src/main/java/com/chint/application/queryies/estimate/CTripEstimatePrice.java index 393564f8..62270cce 100644 --- a/src/main/java/com/chint/application/queryies/estimate/CTripEstimatePrice.java +++ b/src/main/java/com/chint/application/queryies/estimate/CTripEstimatePrice.java @@ -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"); diff --git a/src/main/java/com/chint/domain/service/amount_estimate/CTripEstimate.java b/src/main/java/com/chint/domain/service/amount_estimate/CTripEstimate.java index 1c36a5d1..ae760c75 100644 --- a/src/main/java/com/chint/domain/service/amount_estimate/CTripEstimate.java +++ b/src/main/java/com/chint/domain/service/amount_estimate/CTripEstimate.java @@ -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; } } diff --git a/src/main/java/com/chint/domain/value_object/PriceQueryData.java b/src/main/java/com/chint/domain/value_object/PriceQueryData.java index a98f4ee1..0fea9dd0 100644 --- a/src/main/java/com/chint/domain/value_object/PriceQueryData.java +++ b/src/main/java/com/chint/domain/value_object/PriceQueryData.java @@ -7,5 +7,5 @@ public class PriceQueryData { private String departCity; private String arriveCity; private String departDate; - private String arriveData; + private String arriveDate; }