高德加签测试
This commit is contained in:
parent
d2619520eb
commit
df4f952240
|
@ -134,7 +134,7 @@ public class CTripTest {
|
|||
|
||||
private User user = new User(1L, "230615020", 1, "卢麟哲", "1033719135@qq.com", "15857193365", "A30000001");
|
||||
|
||||
@Test
|
||||
// @Test
|
||||
void syncOrder() {
|
||||
RouteOrder routeOrder = routeRepository.queryById(3892L);
|
||||
cTripOrderSyncAdapter.syncSupplierOrder(routeOrder);
|
||||
|
@ -186,13 +186,13 @@ public class CTripTest {
|
|||
}
|
||||
|
||||
|
||||
@Test
|
||||
// @Test
|
||||
void hSingleLogin() {
|
||||
BaseContext.setCurrentUser(user);
|
||||
System.out.println(loginRequest.hSingleLogin(null).getRedirectUrl());
|
||||
}
|
||||
|
||||
@Test
|
||||
// @Test
|
||||
void h5LoginTest() {
|
||||
BaseContext.setCurrentUser(user);
|
||||
System.out.println(loginRequest.h5Login(null));
|
||||
|
@ -243,7 +243,7 @@ public class CTripTest {
|
|||
System.out.println(gson.toJson(estimate));
|
||||
}
|
||||
|
||||
@Test
|
||||
// @Test
|
||||
void search() {
|
||||
BaseContext.setCurrentUser(user);
|
||||
SearchOrderResponse response = orderSearchRequest.searchOrderResponseByOrderId("31108053999");
|
||||
|
@ -591,7 +591,7 @@ public class CTripTest {
|
|||
|
||||
}
|
||||
|
||||
@Test
|
||||
// @Test
|
||||
void generateRecord(){
|
||||
CTripHotelRecord hotelRecordByRecordId = cTripOrderDetailRepository.findHotelRecordByRecordId("99127528");
|
||||
OrderRecordExtensionFactory orderRecordExtensionFactory = orderRecordFactorySelector.extensionFactoryOfSupplierName(SUPPLIER_C_TRIP);
|
||||
|
|
|
@ -10,11 +10,10 @@ import com.authine.cloudpivot.opensdk.config.CloudpivotEnvConfig;
|
|||
import com.authine.cloudpivot.opensdk.model.request.workflow.StartWorkflowRequest;
|
||||
import com.authine.cloudpivot.opensdk.model.response.workflow.StartWorkflowResponse;
|
||||
import com.chint.application.commands.RefundOrderGenerateCommand;
|
||||
import com.chint.application.in.AutoWorkController;
|
||||
import com.chint.application.in.RouteOrderPageDto;
|
||||
import com.chint.application.services.login.strategy.ANFeiShuLoginStrategy;
|
||||
import com.chint.domain.aggregates.order.*;
|
||||
import com.chint.domain.aggregates.order.order_record.OrderHotelRecord;
|
||||
|
||||
import com.chint.domain.aggregates.order.order_record.ly_order_record.LyOrderCarRecord;
|
||||
import com.chint.domain.aggregates.order.order_record.ly_order_record.LyOrderFlightRecord;
|
||||
import com.chint.domain.aggregates.order.order_record.ly_order_record.LyOrderHotelRecord;
|
||||
|
@ -42,8 +41,9 @@ import com.chint.interfaces.rest.ctrip.dto.search.car.CarQuickOrderInfoEntity;
|
|||
import com.chint.interfaces.rest.ctrip.dto.search.car.OrderFee;
|
||||
import com.chint.interfaces.rest.ctrip.dto.search.flight.ChangeInfo;
|
||||
import com.chint.interfaces.rest.ctrip.dto.search.flight.FlightOrderInfoEntity;
|
||||
|
||||
import com.chint.interfaces.rest.ly.LYSearchRequest;
|
||||
import com.chint.interfaces.rest.ly.dto.LYBaseRequest;
|
||||
|
||||
import com.chint.interfaces.rest.ly.dto.search.response.filght.FlightOrderResponse;
|
||||
import com.chint.interfaces.rest.ly.dto.search.response.train.TrainDetailResponse;
|
||||
import com.chint.interfaces.rest.ly.reconciliation.dto.BaseDetailParam;
|
||||
|
@ -60,8 +60,6 @@ import com.fasterxml.jackson.core.JsonProcessingException;
|
|||
import com.google.gson.Gson;
|
||||
import com.google.gson.reflect.TypeToken;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
|
@ -501,7 +499,7 @@ public class ExcelTest {
|
|||
@Autowired
|
||||
private JdbcLyOrderCarRecord jdbcLyOrderCarRecord;
|
||||
|
||||
@Test
|
||||
// @Test
|
||||
void statementTest() {
|
||||
StatementPageList param = new StatementPageList();
|
||||
param.setPageIndex(1)
|
||||
|
@ -789,5 +787,4 @@ public class ExcelTest {
|
|||
throw new Exception();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -829,9 +829,9 @@ public class LYTest {
|
|||
System.out.println(json);
|
||||
}
|
||||
|
||||
@Test
|
||||
// @Test
|
||||
void searchHotel() {
|
||||
HotelDetailResponse hotelOrderDetail = lySearchRequest.getHotelOrderDetail("HO20240317122300088705");
|
||||
HotelDetailResponse hotelOrderDetail = lySearchRequest.getHotelOrderDetail("HO20240325155100629867");
|
||||
Gson gson = new Gson();
|
||||
String json = gson.toJson(hotelOrderDetail);
|
||||
System.out.println(json);
|
||||
|
@ -1078,6 +1078,7 @@ public class LYTest {
|
|||
|
||||
@Autowired
|
||||
private JdbcLyOrderDetailFlightRecord jdbcLyOrderDetailFlightRecord;
|
||||
|
||||
// @Test
|
||||
public void dasfag() {
|
||||
LyOrderDetailFlightRecord orderDetail = jdbcLyOrderDetailFlightRecord.findByOrderNo("123");
|
||||
|
@ -1091,5 +1092,4 @@ public class LYTest {
|
|||
System.out.println("为空");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -263,7 +263,7 @@ class RouteApplicationTests {
|
|||
System.out.println(orderInfo.getOrderSerialNo());
|
||||
}
|
||||
|
||||
@Test
|
||||
// @Test
|
||||
void loginSign() {
|
||||
String sfno = "240412063";
|
||||
String syscode = "FSSC";
|
||||
|
@ -278,7 +278,7 @@ class RouteApplicationTests {
|
|||
// log.trace("trace");
|
||||
}
|
||||
|
||||
@Test
|
||||
// @Test
|
||||
void loginSignProd() {
|
||||
String sfno = "240412063";
|
||||
String syscode = "FSSC";
|
||||
|
@ -323,10 +323,9 @@ class RouteApplicationTests {
|
|||
routeRepository.deleteById(875L);
|
||||
}
|
||||
|
||||
@Test
|
||||
// @Test
|
||||
void deleteOrderDetail() {
|
||||
orderDetailRepository.deleteById(2977L);
|
||||
// orderDetailRepository.deleteById(2975L);
|
||||
orderDetailRepository.deleteById(2609L);
|
||||
}
|
||||
|
||||
// @Test
|
||||
|
@ -1196,7 +1195,8 @@ class RouteApplicationTests {
|
|||
}
|
||||
|
||||
|
||||
@Test
|
||||
|
||||
// @Test
|
||||
void addRanks() {
|
||||
|
||||
RanksData ranksData = new RanksData();
|
||||
|
@ -1252,14 +1252,14 @@ class RouteApplicationTests {
|
|||
orderDomainService.checkCompanyNameIfBlack("乐清正泰电器销售有限公司");
|
||||
}
|
||||
|
||||
@Test
|
||||
// @Test
|
||||
void testSplit(){
|
||||
String str = "20240301";
|
||||
System.out.println(str.substring(0, 5));
|
||||
System.out.println(lastMonthStr());
|
||||
}
|
||||
|
||||
@Test
|
||||
// @Test
|
||||
void testsplit2(){
|
||||
String inputOrderNo = "FSSC-CLSQ240409000001dev#NBWSAW";
|
||||
String orderNo = null;
|
||||
|
|
Loading…
Reference in New Issue