同程结算接口数据拉取
This commit is contained in:
parent
a34688a971
commit
216a41b1fd
|
@ -354,7 +354,7 @@ public class LYTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
//超标
|
//超标
|
||||||
@Test
|
// @Test
|
||||||
void exceedStandard() {
|
void exceedStandard() {
|
||||||
BPMBaseRequest bpmRequest = new BPMBaseRequest();
|
BPMBaseRequest bpmRequest = new BPMBaseRequest();
|
||||||
Gson gson = new Gson();
|
Gson gson = new Gson();
|
||||||
|
@ -384,7 +384,7 @@ public class LYTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
//改签
|
//改签
|
||||||
@Test
|
// @Test
|
||||||
void reschedule() {
|
void reschedule() {
|
||||||
BPMBaseRequest bpmRequest = new BPMBaseRequest();
|
BPMBaseRequest bpmRequest = new BPMBaseRequest();
|
||||||
Gson gson = new Gson();
|
Gson gson = new Gson();
|
||||||
|
@ -802,7 +802,7 @@ public class LYTest {
|
||||||
String join = String.join(",", set);
|
String join = String.join(",", set);
|
||||||
System.out.println("join = " + join);
|
System.out.println("join = " + join);
|
||||||
}
|
}
|
||||||
@Test
|
// @Test
|
||||||
void searchFlight() {
|
void searchFlight() {
|
||||||
FlightOrderResponse flightOrderDetail = lySearchRequest.getFlightOrderDetail("DF24032167509129714");
|
FlightOrderResponse flightOrderDetail = lySearchRequest.getFlightOrderDetail("DF24032167509129714");
|
||||||
Gson gson = new Gson();
|
Gson gson = new Gson();
|
||||||
|
@ -810,7 +810,7 @@ public class LYTest {
|
||||||
System.out.println(json);
|
System.out.println(json);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
// @Test
|
||||||
void searchTrain() {
|
void searchTrain() {
|
||||||
TrainDetailResponse trainOrderDetail = lySearchRequest.getTrainOrderDetail("DT24032167537614664");
|
TrainDetailResponse trainOrderDetail = lySearchRequest.getTrainOrderDetail("DT24032167537614664");
|
||||||
Gson gson = new Gson();
|
Gson gson = new Gson();
|
||||||
|
@ -818,7 +818,7 @@ public class LYTest {
|
||||||
System.out.println(json);
|
System.out.println(json);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
// @Test
|
||||||
void searchHotel() {
|
void searchHotel() {
|
||||||
HotelDetailResponse hotelOrderDetail = lySearchRequest.getHotelOrderDetail("HO20240320223900768299");
|
HotelDetailResponse hotelOrderDetail = lySearchRequest.getHotelOrderDetail("HO20240320223900768299");
|
||||||
Gson gson = new Gson();
|
Gson gson = new Gson();
|
||||||
|
@ -826,7 +826,7 @@ public class LYTest {
|
||||||
System.out.println(json);
|
System.out.println(json);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
// @Test
|
||||||
void searchCar() {
|
void searchCar() {
|
||||||
CarDetailResponse carDetailResponse = lySearchRequest.getCarDetailResponse("DC24031566878059751");
|
CarDetailResponse carDetailResponse = lySearchRequest.getCarDetailResponse("DC24031566878059751");
|
||||||
Gson gson = new Gson();
|
Gson gson = new Gson();
|
||||||
|
@ -834,7 +834,7 @@ public class LYTest {
|
||||||
System.out.println(json);
|
System.out.println(json);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
// @Test
|
||||||
void deleteOrderDetailById(){
|
void deleteOrderDetailById(){
|
||||||
orderDetailRepository.deleteById(2617L);
|
orderDetailRepository.deleteById(2617L);
|
||||||
orderDetailRepository.deleteById(2618L);
|
orderDetailRepository.deleteById(2618L);
|
||||||
|
@ -869,7 +869,7 @@ public class LYTest {
|
||||||
// System.out.println(json);
|
// System.out.println(json);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
// @Test
|
||||||
void testRoomStandard(){
|
void testRoomStandard(){
|
||||||
String dayStandardPrice = "300.00";
|
String dayStandardPrice = "300.00";
|
||||||
String[] split = dayStandardPrice.split(",");
|
String[] split = dayStandardPrice.split(",");
|
||||||
|
@ -879,18 +879,18 @@ public class LYTest {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
// @Test
|
||||||
void conform() {
|
void conform() {
|
||||||
commonController.changeFlight(1, 9, "DFC24031767042246246");
|
commonController.changeFlight(1, 9, "DFC24031767042246246");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
// @Test
|
||||||
void sendMsg() {
|
void sendMsg() {
|
||||||
commonController.sendMsg("T24032167509127504");
|
commonController.sendMsg("T24032167509127504");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Test
|
// @Test
|
||||||
void generateLyTrain() {
|
void generateLyTrain() {
|
||||||
TrainDetailResponse trainOrderDetail = lySearchRequest.getTrainOrderDetail("DTC24031767004591541");
|
TrainDetailResponse trainOrderDetail = lySearchRequest.getTrainOrderDetail("DTC24031767004591541");
|
||||||
TrainDetailResponse.TrainDetailData data = trainOrderDetail.getData();
|
TrainDetailResponse.TrainDetailData data = trainOrderDetail.getData();
|
||||||
|
@ -920,14 +920,14 @@ public class LYTest {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
// @Test
|
||||||
void syncToSupplierOne(){
|
void syncToSupplierOne(){
|
||||||
RouteOrder routeOrder = routeRepository.queryById(665L);
|
RouteOrder routeOrder = routeRepository.queryById(665L);
|
||||||
lyOrderSyncAdapter.syncSupplierOrder(routeOrder);
|
lyOrderSyncAdapter.syncSupplierOrder(routeOrder);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Test
|
// @Test
|
||||||
void queryHotelCustom(){
|
void queryHotelCustom(){
|
||||||
OrderDetail byId = orderDetailRepository.findById(2569L);
|
OrderDetail byId = orderDetailRepository.findById(2569L);
|
||||||
HotelOrderDetailDto hotelOrderDetailDto = HotelOrderDetailDto.copyFrom(byId.getHotelOrderDetail());
|
HotelOrderDetailDto hotelOrderDetailDto = HotelOrderDetailDto.copyFrom(byId.getHotelOrderDetail());
|
||||||
|
|
Loading…
Reference in New Issue