diff --git a/pom.xml b/pom.xml index f9e30f64..30cfa90d 100644 --- a/pom.xml +++ b/pom.xml @@ -13,8 +13,11 @@ 0.0.1-SNAPSHOT Route Route - - + + 8 + 8 + UTF-8 + org.springframework.boot @@ -85,21 +88,6 @@ app - - - org.springframework.boot - spring-boot-maven-plugin - - - org.apache.maven.plugins - maven-compiler-plugin - 3.10.1 - - 1.8 - 1.8 - - - diff --git a/src/main/java/com/chint/application/out/OrderOutController.java b/src/main/java/com/chint/application/out/OrderOutController.java index 3a301987..ae717555 100644 --- a/src/main/java/com/chint/application/out/OrderOutController.java +++ b/src/main/java/com/chint/application/out/OrderOutController.java @@ -43,4 +43,6 @@ public class OrderOutController { return Result.Success(SUCCESS, orderQuery.pageQuery(queryData)); } + + } diff --git a/src/test/java/com/chint/CTripTest.java b/src/test/java/com/chint/CTripTest.java index a3932004..6abb7838 100644 --- a/src/test/java/com/chint/CTripTest.java +++ b/src/test/java/com/chint/CTripTest.java @@ -14,6 +14,7 @@ import com.chint.interfaces.rest.ctrip.dto.location.CTripCountry; import com.chint.interfaces.rest.ctrip.dto.login.CTripLoginParam; import com.chint.interfaces.rest.ctrip.dto.login.PCResponse; import com.chint.interfaces.rest.ctrip.dto.search.SearchOrderResponse; +import com.google.gson.Gson; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; @@ -102,7 +103,7 @@ public class CTripTest { System.out.println(loginRequest.h5Login()); } -// @Test + // @Test void estimateFlight() { BaseContext.setCurrentUser(user); FlightProductInfo flightProductInfo = new FlightProductInfo(); @@ -129,10 +130,11 @@ public class CTripTest { BookingRelatedApiRequest bookingRelatedApiRequest = estimateRequest .generateBaseRequest(null, trainProductInfo); BookingRelatedApiResponse estimate = estimateRequest.estimate(bookingRelatedApiRequest); - System.out.println(estimate); + Gson gson = new Gson(); + System.out.println(gson.toJson(estimate)); } -// @Test + // @Test void search() { BaseContext.setCurrentUser(user); SearchOrderResponse response = orderSearchRequest.searchOrder("actual12345622");