|
@@ -1,9 +1,11 @@
|
|
import com.hrsk.cloud.eg.Application;
|
|
import com.hrsk.cloud.eg.Application;
|
|
|
|
+import com.hrsk.cloud.eg.app.business.ApiRouteService;
|
|
import com.hrsk.cloud.eg.domain.api.ApiGateway;
|
|
import com.hrsk.cloud.eg.domain.api.ApiGateway;
|
|
import com.hrsk.cloud.eg.dto.data.CheckIntoParamDto;
|
|
import com.hrsk.cloud.eg.dto.data.CheckIntoParamDto;
|
|
import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
|
|
import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
|
|
import com.hrsk.cloud.eg.dto.data.user.UserInBaseInfoDto;
|
|
import com.hrsk.cloud.eg.dto.data.user.UserInBaseInfoDto;
|
|
import com.hrsk.cloud.eg.app.business.GenerateCheckIntoHttpApiConfigService;
|
|
import com.hrsk.cloud.eg.app.business.GenerateCheckIntoHttpApiConfigService;
|
|
|
|
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
|
|
import com.hrsk.cloud.eg.infrastructure.service.EgApiEndpointService;
|
|
import com.hrsk.cloud.eg.infrastructure.service.EgApiEndpointService;
|
|
import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
|
|
import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
|
|
import org.junit.Test;
|
|
import org.junit.Test;
|
|
@@ -19,6 +21,8 @@ import java.util.ArrayList;
|
|
import java.util.HashMap;
|
|
import java.util.HashMap;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
|
+import java.util.concurrent.ExecutorService;
|
|
|
|
+import java.util.concurrent.Executors;
|
|
|
|
|
|
/**
|
|
/**
|
|
* @author zhangyy
|
|
* @author zhangyy
|
|
@@ -42,13 +46,16 @@ public class StartApiTest {
|
|
@Resource
|
|
@Resource
|
|
private ApiGateway apiGateway;
|
|
private ApiGateway apiGateway;
|
|
|
|
|
|
|
|
+ @Resource
|
|
|
|
+ private ApiRouteService apiRouteService;
|
|
|
|
+
|
|
@Test
|
|
@Test
|
|
public void apiHuiRonTest(){
|
|
public void apiHuiRonTest(){
|
|
- Long apiId= 441293753667392L;
|
|
|
|
|
|
+// Integer apiId= 441293753667392;
|
|
UserInBaseInfoDto user =new UserInBaseInfoDto();
|
|
UserInBaseInfoDto user =new UserInBaseInfoDto();
|
|
user.setPhoneMd5("b5500dfab55f42b340d31326561e16cb");
|
|
user.setPhoneMd5("b5500dfab55f42b340d31326561e16cb");
|
|
PlanDto plan =new PlanDto();
|
|
PlanDto plan =new PlanDto();
|
|
- plan.setApiId(apiId);
|
|
|
|
|
|
+// plan.setApiId(apiId);
|
|
plan.setBid("aff1c7b30d8b240826030235business");
|
|
plan.setBid("aff1c7b30d8b240826030235business");
|
|
CheckIntoParamDto checkin =new CheckIntoParamDto();
|
|
CheckIntoParamDto checkin =new CheckIntoParamDto();
|
|
checkin.setPlan(plan);
|
|
checkin.setPlan(plan);
|
|
@@ -59,12 +66,12 @@ public class StartApiTest {
|
|
|
|
|
|
@Test
|
|
@Test
|
|
public void openApiRsaTest(){
|
|
public void openApiRsaTest(){
|
|
- Long apiId= 441312253769280L;
|
|
|
|
|
|
+// Long apiId= 441312253769280L;
|
|
UserInBaseInfoDto user =new UserInBaseInfoDto();
|
|
UserInBaseInfoDto user =new UserInBaseInfoDto();
|
|
user.setPhoneMd5("b5500dfab55f42b340d31326561e16cb");
|
|
user.setPhoneMd5("b5500dfab55f42b340d31326561e16cb");
|
|
user.setCompanyCity("重庆");
|
|
user.setCompanyCity("重庆");
|
|
PlanDto plan =new PlanDto();
|
|
PlanDto plan =new PlanDto();
|
|
- plan.setApiId(apiId);
|
|
|
|
|
|
+// plan.setApiId(apiId);
|
|
plan.setBid("aff1c7b30d8b240826030235business");
|
|
plan.setBid("aff1c7b30d8b240826030235business");
|
|
CheckIntoParamDto checkin =new CheckIntoParamDto();
|
|
CheckIntoParamDto checkin =new CheckIntoParamDto();
|
|
checkin.setPlan(plan);
|
|
checkin.setPlan(plan);
|
|
@@ -81,12 +88,12 @@ public class StartApiTest {
|
|
*/
|
|
*/
|
|
@Test
|
|
@Test
|
|
public void qinYuApiRsaTest(){
|
|
public void qinYuApiRsaTest(){
|
|
- Long apiId= 441333216126016L;
|
|
|
|
|
|
+// Long apiId= 441333216126016L;
|
|
UserInBaseInfoDto user =new UserInBaseInfoDto();
|
|
UserInBaseInfoDto user =new UserInBaseInfoDto();
|
|
user.setPhoneMd5("b5500dfab55f42b340d31326561e16cb");
|
|
user.setPhoneMd5("b5500dfab55f42b340d31326561e16cb");
|
|
user.setCompanyCity("重庆");
|
|
user.setCompanyCity("重庆");
|
|
PlanDto plan =new PlanDto();
|
|
PlanDto plan =new PlanDto();
|
|
- plan.setApiId(apiId);
|
|
|
|
|
|
+// plan.setApiId(apiId);
|
|
plan.setBid("aff1c7b30d8b240826030235business");
|
|
plan.setBid("aff1c7b30d8b240826030235business");
|
|
CheckIntoParamDto checkin =new CheckIntoParamDto();
|
|
CheckIntoParamDto checkin =new CheckIntoParamDto();
|
|
checkin.setPlan(plan);
|
|
checkin.setPlan(plan);
|
|
@@ -103,12 +110,12 @@ public class StartApiTest {
|
|
*/
|
|
*/
|
|
@Test
|
|
@Test
|
|
public void xinLuApiRsaTest(){
|
|
public void xinLuApiRsaTest(){
|
|
- Long apiId= 441336439865408L;
|
|
|
|
|
|
+// Long apiId= 441336439865408L;
|
|
UserInBaseInfoDto user =new UserInBaseInfoDto();
|
|
UserInBaseInfoDto user =new UserInBaseInfoDto();
|
|
user.setPhoneMd5("b5500dfab55f42b340d31326561e16cb");
|
|
user.setPhoneMd5("b5500dfab55f42b340d31326561e16cb");
|
|
user.setCompanyCity("重庆");
|
|
user.setCompanyCity("重庆");
|
|
PlanDto plan =new PlanDto();
|
|
PlanDto plan =new PlanDto();
|
|
- plan.setApiId(apiId);
|
|
|
|
|
|
+// plan.setApiId(apiId);
|
|
plan.setBid("aff1c7b30d8b240826030235business");
|
|
plan.setBid("aff1c7b30d8b240826030235business");
|
|
CheckIntoParamDto checkin =new CheckIntoParamDto();
|
|
CheckIntoParamDto checkin =new CheckIntoParamDto();
|
|
checkin.setPlan(plan);
|
|
checkin.setPlan(plan);
|
|
@@ -125,12 +132,12 @@ public class StartApiTest {
|
|
*/
|
|
*/
|
|
@Test
|
|
@Test
|
|
public void xkdApiRsaTest(){
|
|
public void xkdApiRsaTest(){
|
|
- Long apiId= 441336439865408L;
|
|
|
|
|
|
+// Long apiId= 441336439865408L;
|
|
UserInBaseInfoDto user =new UserInBaseInfoDto();
|
|
UserInBaseInfoDto user =new UserInBaseInfoDto();
|
|
user.setPhoneMd5("b5500dfab55f42b340d31326561e16cb");
|
|
user.setPhoneMd5("b5500dfab55f42b340d31326561e16cb");
|
|
user.setCompanyCity("重庆");
|
|
user.setCompanyCity("重庆");
|
|
PlanDto plan =new PlanDto();
|
|
PlanDto plan =new PlanDto();
|
|
- plan.setApiId(apiId);
|
|
|
|
|
|
+// plan.setApiId(apiId);
|
|
plan.setBid("aff1c7b30d8b240826030235business");
|
|
plan.setBid("aff1c7b30d8b240826030235business");
|
|
CheckIntoParamDto checkin =new CheckIntoParamDto();
|
|
CheckIntoParamDto checkin =new CheckIntoParamDto();
|
|
checkin.setPlan(plan);
|
|
checkin.setPlan(plan);
|
|
@@ -147,12 +154,12 @@ public class StartApiTest {
|
|
*/
|
|
*/
|
|
@Test
|
|
@Test
|
|
public void jinDieApiRsaTest(){
|
|
public void jinDieApiRsaTest(){
|
|
- Long apiId= 441425735573312L;
|
|
|
|
|
|
+// Long apiId= 441425735573312L;
|
|
UserInBaseInfoDto user =new UserInBaseInfoDto();
|
|
UserInBaseInfoDto user =new UserInBaseInfoDto();
|
|
user.setPhoneMd5("b5500dfab55f42b340d31326561e16cb");
|
|
user.setPhoneMd5("b5500dfab55f42b340d31326561e16cb");
|
|
user.setCompanyCity("重庆");
|
|
user.setCompanyCity("重庆");
|
|
PlanDto plan =new PlanDto();
|
|
PlanDto plan =new PlanDto();
|
|
- plan.setApiId(apiId);
|
|
|
|
|
|
+// plan.setApiId(apiId);
|
|
plan.setBid("aff1c7b30d8b240826030235business");
|
|
plan.setBid("aff1c7b30d8b240826030235business");
|
|
CheckIntoParamDto checkin =new CheckIntoParamDto();
|
|
CheckIntoParamDto checkin =new CheckIntoParamDto();
|
|
checkin.setPlan(plan);
|
|
checkin.setPlan(plan);
|
|
@@ -170,12 +177,12 @@ public class StartApiTest {
|
|
*/
|
|
*/
|
|
@Test
|
|
@Test
|
|
public void rxkApiTest(){
|
|
public void rxkApiTest(){
|
|
- Long apiId= 441338278858304L;
|
|
|
|
|
|
+// Long apiId= 441338278858304L;
|
|
UserInBaseInfoDto user =new UserInBaseInfoDto();
|
|
UserInBaseInfoDto user =new UserInBaseInfoDto();
|
|
user.setPhoneMd5("b5500dfab55f42b340d31326561e16cb");
|
|
user.setPhoneMd5("b5500dfab55f42b340d31326561e16cb");
|
|
user.setCompanyCity("重庆");
|
|
user.setCompanyCity("重庆");
|
|
PlanDto plan =new PlanDto();
|
|
PlanDto plan =new PlanDto();
|
|
- plan.setApiId(apiId);
|
|
|
|
|
|
+// plan.setApiId(apiId);
|
|
plan.setBid("aff1c7b30d8b240826030235business");
|
|
plan.setBid("aff1c7b30d8b240826030235business");
|
|
CheckIntoParamDto checkin =new CheckIntoParamDto();
|
|
CheckIntoParamDto checkin =new CheckIntoParamDto();
|
|
checkin.setPlan(plan);
|
|
checkin.setPlan(plan);
|
|
@@ -193,12 +200,12 @@ public class StartApiTest {
|
|
*/
|
|
*/
|
|
@Test
|
|
@Test
|
|
public void huiZhonApiTest(){
|
|
public void huiZhonApiTest(){
|
|
- Long apiId= 441421777748032L;
|
|
|
|
|
|
+// Long apiId= 441421777748032L;
|
|
UserInBaseInfoDto user =new UserInBaseInfoDto();
|
|
UserInBaseInfoDto user =new UserInBaseInfoDto();
|
|
user.setPhoneMd5("b5500dfab55f42b340d31326561e16cb");
|
|
user.setPhoneMd5("b5500dfab55f42b340d31326561e16cb");
|
|
user.setCompanyCity("重庆");
|
|
user.setCompanyCity("重庆");
|
|
PlanDto plan =new PlanDto();
|
|
PlanDto plan =new PlanDto();
|
|
- plan.setApiId(apiId);
|
|
|
|
|
|
+// plan.setApiId(apiId);
|
|
plan.setBid("aff1c7b30d8b240826030235business");
|
|
plan.setBid("aff1c7b30d8b240826030235business");
|
|
CheckIntoParamDto checkin =new CheckIntoParamDto();
|
|
CheckIntoParamDto checkin =new CheckIntoParamDto();
|
|
checkin.setPlan(plan);
|
|
checkin.setPlan(plan);
|
|
@@ -215,12 +222,12 @@ public class StartApiTest {
|
|
*/
|
|
*/
|
|
@Test
|
|
@Test
|
|
public void huiZhongApiTest(){
|
|
public void huiZhongApiTest(){
|
|
- Long apiId= 441425580433728L;
|
|
|
|
|
|
+// Long apiId= 441425580433728L;
|
|
UserInBaseInfoDto user =new UserInBaseInfoDto();
|
|
UserInBaseInfoDto user =new UserInBaseInfoDto();
|
|
user.setPhoneMd5("b5500dfab55f42b340d31326561e16cb");
|
|
user.setPhoneMd5("b5500dfab55f42b340d31326561e16cb");
|
|
user.setCompanyCity("重庆");
|
|
user.setCompanyCity("重庆");
|
|
PlanDto plan =new PlanDto();
|
|
PlanDto plan =new PlanDto();
|
|
- plan.setApiId(apiId);
|
|
|
|
|
|
+// plan.setApiId(apiId);
|
|
plan.setBid("aff1c7b30d8b240826030235business");
|
|
plan.setBid("aff1c7b30d8b240826030235business");
|
|
CheckIntoParamDto checkin =new CheckIntoParamDto();
|
|
CheckIntoParamDto checkin =new CheckIntoParamDto();
|
|
checkin.setPlan(plan);
|
|
checkin.setPlan(plan);
|
|
@@ -237,12 +244,12 @@ public class StartApiTest {
|
|
*/
|
|
*/
|
|
@Test
|
|
@Test
|
|
public void yinHuaApiTest(){
|
|
public void yinHuaApiTest(){
|
|
- Long apiId= 441425513479232L;
|
|
|
|
|
|
+// Long apiId= 441425513479232L;
|
|
UserInBaseInfoDto user =new UserInBaseInfoDto();
|
|
UserInBaseInfoDto user =new UserInBaseInfoDto();
|
|
user.setPhoneMd5("b5500dfab55f42b340d31326561e16cb");
|
|
user.setPhoneMd5("b5500dfab55f42b340d31326561e16cb");
|
|
user.setCompanyCity("重庆");
|
|
user.setCompanyCity("重庆");
|
|
PlanDto plan =new PlanDto();
|
|
PlanDto plan =new PlanDto();
|
|
- plan.setApiId(apiId);
|
|
|
|
|
|
+// plan.setApiId(apiId);
|
|
plan.setBid("aff1c7b30d8b240826030235business");
|
|
plan.setBid("aff1c7b30d8b240826030235business");
|
|
CheckIntoParamDto checkin =new CheckIntoParamDto();
|
|
CheckIntoParamDto checkin =new CheckIntoParamDto();
|
|
checkin.setPlan(plan);
|
|
checkin.setPlan(plan);
|
|
@@ -259,12 +266,12 @@ public class StartApiTest {
|
|
*/
|
|
*/
|
|
@Test
|
|
@Test
|
|
public void huiXinApiTest(){
|
|
public void huiXinApiTest(){
|
|
- Long apiId= 441424531642944L;
|
|
|
|
|
|
+// Long apiId= 441424531642944L;
|
|
UserInBaseInfoDto user =new UserInBaseInfoDto();
|
|
UserInBaseInfoDto user =new UserInBaseInfoDto();
|
|
user.setPhoneMd5("b5500dfab55f42b340d31326561e16cb");
|
|
user.setPhoneMd5("b5500dfab55f42b340d31326561e16cb");
|
|
user.setCompanyCity("重庆");
|
|
user.setCompanyCity("重庆");
|
|
PlanDto plan =new PlanDto();
|
|
PlanDto plan =new PlanDto();
|
|
- plan.setApiId(apiId);
|
|
|
|
|
|
+// plan.setApiId(apiId);
|
|
plan.setBid("aff1c7b30d8b240826030235business");
|
|
plan.setBid("aff1c7b30d8b240826030235business");
|
|
CheckIntoParamDto checkin =new CheckIntoParamDto();
|
|
CheckIntoParamDto checkin =new CheckIntoParamDto();
|
|
checkin.setPlan(plan);
|
|
checkin.setPlan(plan);
|
|
@@ -275,12 +282,12 @@ public class StartApiTest {
|
|
|
|
|
|
@Test
|
|
@Test
|
|
public void yuKuaiHuaApiTest(){
|
|
public void yuKuaiHuaApiTest(){
|
|
- Long apiId= 441424861741888L;
|
|
|
|
|
|
+// Long apiId= 441424861741888L;
|
|
UserInBaseInfoDto user =new UserInBaseInfoDto();
|
|
UserInBaseInfoDto user =new UserInBaseInfoDto();
|
|
user.setPhoneMd5("b5500dfab55f42b340d31326561e16cb");
|
|
user.setPhoneMd5("b5500dfab55f42b340d31326561e16cb");
|
|
user.setCompanyCity("重庆");
|
|
user.setCompanyCity("重庆");
|
|
PlanDto plan =new PlanDto();
|
|
PlanDto plan =new PlanDto();
|
|
- plan.setApiId(apiId);
|
|
|
|
|
|
+// plan.setApiId(apiId);
|
|
plan.setBid("aff1c7b30d8b240826030235business");
|
|
plan.setBid("aff1c7b30d8b240826030235business");
|
|
CheckIntoParamDto checkin =new CheckIntoParamDto();
|
|
CheckIntoParamDto checkin =new CheckIntoParamDto();
|
|
checkin.setPlan(plan);
|
|
checkin.setPlan(plan);
|
|
@@ -290,12 +297,12 @@ public class StartApiTest {
|
|
|
|
|
|
@Test
|
|
@Test
|
|
public void youRonApiTest(){
|
|
public void youRonApiTest(){
|
|
- Long apiId= 441426447379776L;
|
|
|
|
|
|
+// Long apiId= 441426447379776L;
|
|
UserInBaseInfoDto user =new UserInBaseInfoDto();
|
|
UserInBaseInfoDto user =new UserInBaseInfoDto();
|
|
user.setPhoneMd5("b5500dfab55f42b340d31326561e16cb");
|
|
user.setPhoneMd5("b5500dfab55f42b340d31326561e16cb");
|
|
user.setCompanyCity("重庆");
|
|
user.setCompanyCity("重庆");
|
|
PlanDto plan =new PlanDto();
|
|
PlanDto plan =new PlanDto();
|
|
- plan.setApiId(apiId);
|
|
|
|
|
|
+// plan.setApiId(apiId);
|
|
plan.setBid("aff1c7b30d8b240826030235business");
|
|
plan.setBid("aff1c7b30d8b240826030235business");
|
|
CheckIntoParamDto checkin =new CheckIntoParamDto();
|
|
CheckIntoParamDto checkin =new CheckIntoParamDto();
|
|
checkin.setPlan(plan);
|
|
checkin.setPlan(plan);
|
|
@@ -305,12 +312,12 @@ public class StartApiTest {
|
|
|
|
|
|
@Test
|
|
@Test
|
|
public void HamiguaApiTest(){
|
|
public void HamiguaApiTest(){
|
|
- Long apiId= 441426784657728L;
|
|
|
|
|
|
+// Long apiId= 441426784657728L;
|
|
UserInBaseInfoDto user =new UserInBaseInfoDto();
|
|
UserInBaseInfoDto user =new UserInBaseInfoDto();
|
|
user.setPhoneMd5("b5500dfab55f42b340d31326561e16cb");
|
|
user.setPhoneMd5("b5500dfab55f42b340d31326561e16cb");
|
|
user.setCompanyCity("重庆");
|
|
user.setCompanyCity("重庆");
|
|
PlanDto plan =new PlanDto();
|
|
PlanDto plan =new PlanDto();
|
|
- plan.setApiId(apiId);
|
|
|
|
|
|
+// plan.setApiId(apiId);
|
|
plan.setBid("aff1c7b30d8b240826030235business");
|
|
plan.setBid("aff1c7b30d8b240826030235business");
|
|
CheckIntoParamDto checkin =new CheckIntoParamDto();
|
|
CheckIntoParamDto checkin =new CheckIntoParamDto();
|
|
checkin.setPlan(plan);
|
|
checkin.setPlan(plan);
|
|
@@ -320,12 +327,12 @@ public class StartApiTest {
|
|
|
|
|
|
@Test
|
|
@Test
|
|
public void haohanwuyinApiTest(){
|
|
public void haohanwuyinApiTest(){
|
|
- Long apiId= 441427018106688L;
|
|
|
|
|
|
+// Long apiId= 441427018106688L;
|
|
UserInBaseInfoDto user =new UserInBaseInfoDto();
|
|
UserInBaseInfoDto user =new UserInBaseInfoDto();
|
|
user.setPhoneMd5("b5500dfab55f42b340d31326561e16cb");
|
|
user.setPhoneMd5("b5500dfab55f42b340d31326561e16cb");
|
|
user.setCompanyCity("重庆");
|
|
user.setCompanyCity("重庆");
|
|
PlanDto plan =new PlanDto();
|
|
PlanDto plan =new PlanDto();
|
|
- plan.setApiId(apiId);
|
|
|
|
|
|
+// plan.setApiId(apiId);
|
|
plan.setBid("aff1c7b30d8b240826030235business");
|
|
plan.setBid("aff1c7b30d8b240826030235business");
|
|
CheckIntoParamDto checkin =new CheckIntoParamDto();
|
|
CheckIntoParamDto checkin =new CheckIntoParamDto();
|
|
checkin.setPlan(plan);
|
|
checkin.setPlan(plan);
|
|
@@ -335,12 +342,12 @@ public class StartApiTest {
|
|
|
|
|
|
@Test
|
|
@Test
|
|
public void gexinjinfuApiTest(){
|
|
public void gexinjinfuApiTest(){
|
|
- Long apiId= 441427703907136L;
|
|
|
|
|
|
+// Long apiId= 441427703907136L;
|
|
UserInBaseInfoDto user =new UserInBaseInfoDto();
|
|
UserInBaseInfoDto user =new UserInBaseInfoDto();
|
|
user.setPhoneMd5("b5500dfab55f42b340d31326561e16cb");
|
|
user.setPhoneMd5("b5500dfab55f42b340d31326561e16cb");
|
|
user.setCompanyCity("重庆");
|
|
user.setCompanyCity("重庆");
|
|
PlanDto plan =new PlanDto();
|
|
PlanDto plan =new PlanDto();
|
|
- plan.setApiId(apiId);
|
|
|
|
|
|
+// plan.setApiId(apiId);
|
|
plan.setBid("aff1c7b30d8b240826030235business");
|
|
plan.setBid("aff1c7b30d8b240826030235business");
|
|
CheckIntoParamDto checkin =new CheckIntoParamDto();
|
|
CheckIntoParamDto checkin =new CheckIntoParamDto();
|
|
checkin.setPlan(plan);
|
|
checkin.setPlan(plan);
|
|
@@ -350,12 +357,12 @@ public class StartApiTest {
|
|
|
|
|
|
@Test
|
|
@Test
|
|
public void kuaiyidaiApiTest(){
|
|
public void kuaiyidaiApiTest(){
|
|
- Long apiId= 441428658950208L;
|
|
|
|
|
|
+// Long apiId= 441428658950208L;
|
|
UserInBaseInfoDto user =new UserInBaseInfoDto();
|
|
UserInBaseInfoDto user =new UserInBaseInfoDto();
|
|
user.setPhoneMd5("b5500dfab55f42b340d31326561e16cb");
|
|
user.setPhoneMd5("b5500dfab55f42b340d31326561e16cb");
|
|
user.setCityAllName("重庆市");
|
|
user.setCityAllName("重庆市");
|
|
PlanDto plan =new PlanDto();
|
|
PlanDto plan =new PlanDto();
|
|
- plan.setApiId(apiId);
|
|
|
|
|
|
+// plan.setApiId(apiId);
|
|
plan.setBid("aff1c7b30d8b240826030235business");
|
|
plan.setBid("aff1c7b30d8b240826030235business");
|
|
CheckIntoParamDto checkin =new CheckIntoParamDto();
|
|
CheckIntoParamDto checkin =new CheckIntoParamDto();
|
|
checkin.setPlan(plan);
|
|
checkin.setPlan(plan);
|
|
@@ -363,6 +370,30 @@ public class StartApiTest {
|
|
apiGateway.checkIntoRequest(checkin);
|
|
apiGateway.checkIntoRequest(checkin);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Test
|
|
|
|
+ public void apiTest(){
|
|
|
|
+ UserInBaseInfoDto user =new UserInBaseInfoDto();
|
|
|
|
+ user.setPhoneMd5("b5500dfab55f42b340d31326561e16cb");
|
|
|
|
+ user.setCityAllName("重庆市");
|
|
|
|
+ user.setCompanyCity("重庆");
|
|
|
|
+
|
|
|
|
+ CheckIntoParamDto checkin =new CheckIntoParamDto();
|
|
|
|
+// ProductBusinessApiInfoDo apiInfoByRedis = productBusinessApiInfoService.getApiInfoByRedis(1491);
|
|
|
|
+ List<ProductBusinessApiInfoDo> productBusinessApiInfoDos = productBusinessApiInfoService.apiList();
|
|
|
|
+ for (ProductBusinessApiInfoDo productBusinessApiInfoDo : productBusinessApiInfoDos) {
|
|
|
|
+// ExecutorService executorService= Executors.newFixedThreadPool(75);
|
|
|
|
+// executorService.execute(()->{
|
|
|
|
+ PlanDto plan =new PlanDto();
|
|
|
|
+ plan.setApiId(productBusinessApiInfoDo.getId());
|
|
|
|
+ plan.setBid("aff1c7b30d8b240826030235business");
|
|
|
|
+ checkin.setPlan(plan);
|
|
|
|
+ checkin.setUser(user);
|
|
|
|
+ apiRouteService.loanCheckInto(checkin);
|
|
|
|
+// });
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
@Test
|
|
@Test
|
|
public void spel(){
|
|
public void spel(){
|
|
Map<String,Object> map =new HashMap<>();
|
|
Map<String,Object> map =new HashMap<>();
|