|
@@ -1,8 +1,8 @@
|
|
|
-package com.hrsk.cloud.eg.app.business;
|
|
|
+package com.hrsk.cloud.eg.app.loan.executor;
|
|
|
|
|
|
import com.alibaba.fastjson2.JSONObject;
|
|
|
import com.google.common.collect.Lists;
|
|
|
-import com.hrsk.cloud.eg.constant.BusinessPrefixEnum;
|
|
|
+import com.hrsk.cloud.eg.clinet.constant.BusinessPrefixEnum;
|
|
|
import com.hrsk.cloud.eg.domain.api.*;
|
|
|
import com.hrsk.cloud.eg.domain.api.common.ApiPayloadTypeEnum;
|
|
|
import com.hrsk.cloud.eg.domain.api.common.ValueObjectTypeEnum;
|
|
@@ -12,7 +12,7 @@ import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgApiEndpoint
|
|
|
import com.hrsk.cloud.eg.infrastructure.service.EgApiEndpointService;
|
|
|
import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
-import org.springframework.stereotype.Service;
|
|
|
+import org.springframework.stereotype.Component;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
import java.util.ArrayList;
|
|
@@ -24,9 +24,9 @@ import java.util.List;
|
|
|
* @description: GenerateHttpApiConfig 迁移api配置的处理类
|
|
|
* @date 2024/8/29 17:54
|
|
|
*/
|
|
|
+@Component
|
|
|
@Slf4j
|
|
|
-@Service
|
|
|
-public class GenerateCheckIntoHttpApiConfigService {
|
|
|
+public class GenerateCheckIntoHttpApiConfigCmdExe {
|
|
|
|
|
|
@Resource
|
|
|
private EgApiService egApiService;
|
|
@@ -48,10 +48,7 @@ public class GenerateCheckIntoHttpApiConfigService {
|
|
|
egApiService.save(egApiDo);
|
|
|
JSONObject jsonObject = JSONObject.parseObject(huiRonApiConfig);
|
|
|
EgApiEndpointDo egApiEndpointDo=new EgApiEndpointDo();
|
|
|
- egApiEndpointDo.setApiCode(egApiDo.getApiCode());
|
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
|
- egApiEndpointDo.setApiName(jsonObject.getString("name"));
|
|
|
- egApiEndpointDo.setApiConfig(HessianUtils.serialize(createHuiRonCheckIntoBean(huiRonApiConfig)));
|
|
|
egApiEndpointService.save(egApiEndpointDo);
|
|
|
}
|
|
|
|
|
@@ -69,10 +66,10 @@ public class GenerateCheckIntoHttpApiConfigService {
|
|
|
egApiService.save(egApiDo);
|
|
|
JSONObject jsonObject = JSONObject.parseObject(openApiConfig);
|
|
|
EgApiEndpointDo egApiEndpointDo=new EgApiEndpointDo();
|
|
|
- egApiEndpointDo.setApiCode(egApiDo.getApiCode());
|
|
|
+
|
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
|
- egApiEndpointDo.setApiName(jsonObject.getString("name"));
|
|
|
- egApiEndpointDo.setApiConfig(HessianUtils.serialize(createOpenApiRsaCheckIntoBean(openApiConfig)));
|
|
|
+
|
|
|
+ egApiEndpointDo.setRequestConfig(HessianUtils.serialize(createOpenApiRsaCheckIntoBean(openApiConfig)));
|
|
|
egApiEndpointService.save(egApiEndpointDo);
|
|
|
}
|
|
|
|
|
@@ -90,10 +87,10 @@ public class GenerateCheckIntoHttpApiConfigService {
|
|
|
egApiService.save(egApiDo);
|
|
|
JSONObject jsonObject = JSONObject.parseObject(openApiConfig);
|
|
|
EgApiEndpointDo egApiEndpointDo=new EgApiEndpointDo();
|
|
|
- egApiEndpointDo.setApiCode(egApiDo.getApiCode());
|
|
|
+
|
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
|
- egApiEndpointDo.setApiName(jsonObject.getString("name"));
|
|
|
- egApiEndpointDo.setApiConfig(HessianUtils.serialize(createOpenApiAesCheckIntoBean(openApiConfig)));
|
|
|
+
|
|
|
+ egApiEndpointDo.setRequestConfig(HessianUtils.serialize(createOpenApiAesCheckIntoBean(openApiConfig)));
|
|
|
egApiEndpointService.save(egApiEndpointDo);
|
|
|
}
|
|
|
|
|
@@ -111,10 +108,10 @@ public class GenerateCheckIntoHttpApiConfigService {
|
|
|
egApiService.save(egApiDo);
|
|
|
JSONObject jsonObject = JSONObject.parseObject(openApiConfig);
|
|
|
EgApiEndpointDo egApiEndpointDo=new EgApiEndpointDo();
|
|
|
- egApiEndpointDo.setApiCode(egApiDo.getApiCode());
|
|
|
+
|
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
|
- egApiEndpointDo.setApiName(jsonObject.getString("name"));
|
|
|
- egApiEndpointDo.setApiConfig(HessianUtils.serialize(createQinYuCheckIntoBean(openApiConfig)));
|
|
|
+
|
|
|
+ egApiEndpointDo.setRequestConfig(HessianUtils.serialize(createQinYuCheckIntoBean(openApiConfig)));
|
|
|
egApiEndpointService.save(egApiEndpointDo);
|
|
|
}
|
|
|
|
|
@@ -131,10 +128,7 @@ public class GenerateCheckIntoHttpApiConfigService {
|
|
|
egApiService.save(egApiDo);
|
|
|
JSONObject jsonObject = JSONObject.parseObject(openApiConfig);
|
|
|
EgApiEndpointDo egApiEndpointDo=new EgApiEndpointDo();
|
|
|
- egApiEndpointDo.setApiCode(egApiDo.getApiCode());
|
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
|
- egApiEndpointDo.setApiName(jsonObject.getString("name"));
|
|
|
- egApiEndpointDo.setApiConfig(HessianUtils.serialize(createXinLuApiCheckIntoBean(openApiConfig)));
|
|
|
egApiEndpointService.save(egApiEndpointDo);
|
|
|
}
|
|
|
|
|
@@ -152,10 +146,10 @@ public class GenerateCheckIntoHttpApiConfigService {
|
|
|
egApiService.save(egApiDo);
|
|
|
JSONObject jsonObject = JSONObject.parseObject(openApiConfig);
|
|
|
EgApiEndpointDo egApiEndpointDo=new EgApiEndpointDo();
|
|
|
- egApiEndpointDo.setApiCode(egApiDo.getApiCode());
|
|
|
+
|
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
|
- egApiEndpointDo.setApiName(jsonObject.getString("name"));
|
|
|
- egApiEndpointDo.setApiConfig(HessianUtils.serialize(createXkdApiCheckIntoBean(openApiConfig)));
|
|
|
+
|
|
|
+ egApiEndpointDo.setRequestConfig(HessianUtils.serialize(createXkdApiCheckIntoBean(openApiConfig)));
|
|
|
egApiEndpointService.save(egApiEndpointDo);
|
|
|
}
|
|
|
|
|
@@ -173,10 +167,10 @@ public class GenerateCheckIntoHttpApiConfigService {
|
|
|
egApiService.save(egApiDo);
|
|
|
JSONObject jsonObject = JSONObject.parseObject(openApiConfig);
|
|
|
EgApiEndpointDo egApiEndpointDo=new EgApiEndpointDo();
|
|
|
- egApiEndpointDo.setApiCode(egApiDo.getApiCode());
|
|
|
+
|
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
|
- egApiEndpointDo.setApiName(jsonObject.getString("name"));
|
|
|
- egApiEndpointDo.setApiConfig(HessianUtils.serialize(createJinDieCheckIntoBean(openApiConfig)));
|
|
|
+
|
|
|
+ egApiEndpointDo.setRequestConfig(HessianUtils.serialize(createJinDieCheckIntoBean(openApiConfig)));
|
|
|
egApiEndpointService.save(egApiEndpointDo);
|
|
|
}
|
|
|
|
|
@@ -232,10 +226,10 @@ public class GenerateCheckIntoHttpApiConfigService {
|
|
|
egApiService.save(egApiDo);
|
|
|
JSONObject jsonObject = JSONObject.parseObject(openApiConfig);
|
|
|
EgApiEndpointDo egApiEndpointDo=new EgApiEndpointDo();
|
|
|
- egApiEndpointDo.setApiCode(egApiDo.getApiCode());
|
|
|
+
|
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
|
- egApiEndpointDo.setApiName(jsonObject.getString("name"));
|
|
|
- egApiEndpointDo.setApiConfig(HessianUtils.serialize(createJinDieCheckIntoBean(openApiConfig)));
|
|
|
+
|
|
|
+ egApiEndpointDo.setRequestConfig(HessianUtils.serialize(createJinDieCheckIntoBean(openApiConfig)));
|
|
|
egApiEndpointService.save(egApiEndpointDo);
|
|
|
}
|
|
|
|
|
@@ -292,10 +286,10 @@ public class GenerateCheckIntoHttpApiConfigService {
|
|
|
egApiService.save(egApiDo);
|
|
|
JSONObject jsonObject = JSONObject.parseObject(openApiConfig);
|
|
|
EgApiEndpointDo egApiEndpointDo=new EgApiEndpointDo();
|
|
|
- egApiEndpointDo.setApiCode(egApiDo.getApiCode());
|
|
|
+
|
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
|
- egApiEndpointDo.setApiName(jsonObject.getString("name"));
|
|
|
- egApiEndpointDo.setApiConfig(HessianUtils.serialize(createRxkCheckIntoBean(openApiConfig)));
|
|
|
+
|
|
|
+ egApiEndpointDo.setRequestConfig(HessianUtils.serialize(createRxkCheckIntoBean(openApiConfig)));
|
|
|
egApiEndpointService.save(egApiEndpointDo);
|
|
|
}
|
|
|
|
|
@@ -649,10 +643,10 @@ public class GenerateCheckIntoHttpApiConfigService {
|
|
|
egApiService.save(egApiDo);
|
|
|
JSONObject jsonObject = JSONObject.parseObject(openApiConfig);
|
|
|
EgApiEndpointDo egApiEndpointDo=new EgApiEndpointDo();
|
|
|
- egApiEndpointDo.setApiCode(egApiDo.getApiCode());
|
|
|
+
|
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
|
- egApiEndpointDo.setApiName(jsonObject.getString("name"));
|
|
|
- egApiEndpointDo.setApiConfig(HessianUtils.serialize(createHuiZhongCheckIntoBean(openApiConfig)));
|
|
|
+
|
|
|
+ egApiEndpointDo.setRequestConfig(HessianUtils.serialize(createHuiZhongCheckIntoBean(openApiConfig)));
|
|
|
egApiEndpointService.save(egApiEndpointDo);
|
|
|
}
|
|
|
|
|
@@ -715,10 +709,10 @@ public class GenerateCheckIntoHttpApiConfigService {
|
|
|
egApiService.save(egApiDo);
|
|
|
JSONObject jsonObject = JSONObject.parseObject(openApiConfig);
|
|
|
EgApiEndpointDo egApiEndpointDo=new EgApiEndpointDo();
|
|
|
- egApiEndpointDo.setApiCode(egApiDo.getApiCode());
|
|
|
+
|
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
|
- egApiEndpointDo.setApiName(jsonObject.getString("name"));
|
|
|
- egApiEndpointDo.setApiConfig(HessianUtils.serialize(createYinHuaCheckIntoBean(openApiConfig)));
|
|
|
+
|
|
|
+ egApiEndpointDo.setRequestConfig(HessianUtils.serialize(createYinHuaCheckIntoBean(openApiConfig)));
|
|
|
egApiEndpointService.save(egApiEndpointDo);
|
|
|
}
|
|
|
|
|
@@ -777,10 +771,10 @@ public class GenerateCheckIntoHttpApiConfigService {
|
|
|
egApiService.save(egApiDo);
|
|
|
JSONObject jsonObject = JSONObject.parseObject(threeSystemConfig);
|
|
|
EgApiEndpointDo egApiEndpointDo=new EgApiEndpointDo();
|
|
|
- egApiEndpointDo.setApiCode(egApiDo.getApiCode());
|
|
|
+
|
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
|
- egApiEndpointDo.setApiName(jsonObject.getString("name"));
|
|
|
- egApiEndpointDo.setApiConfig(HessianUtils.serialize(createHuixinCheckIntoBean(threeSystemConfig)));
|
|
|
+
|
|
|
+ egApiEndpointDo.setRequestConfig(HessianUtils.serialize(createHuixinCheckIntoBean(threeSystemConfig)));
|
|
|
egApiEndpointService.save(egApiEndpointDo);
|
|
|
}
|
|
|
|
|
@@ -846,10 +840,10 @@ public class GenerateCheckIntoHttpApiConfigService {
|
|
|
egApiService.save(egApiDo);
|
|
|
JSONObject jsonObject = JSONObject.parseObject(openApiConfig);
|
|
|
EgApiEndpointDo egApiEndpointDo=new EgApiEndpointDo();
|
|
|
- egApiEndpointDo.setApiCode(egApiDo.getApiCode());
|
|
|
+
|
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
|
- egApiEndpointDo.setApiName(jsonObject.getString("name"));
|
|
|
- egApiEndpointDo.setApiConfig(HessianUtils.serialize(createHuiZhongCheckIntoBean(openApiConfig)));
|
|
|
+
|
|
|
+ egApiEndpointDo.setRequestConfig(HessianUtils.serialize(createHuiZhongCheckIntoBean(openApiConfig)));
|
|
|
egApiEndpointService.save(egApiEndpointDo);
|
|
|
}
|
|
|
|
|
@@ -913,10 +907,10 @@ public class GenerateCheckIntoHttpApiConfigService {
|
|
|
egApiService.save(egApiDo);
|
|
|
JSONObject jsonObject = JSONObject.parseObject(openApiConfig);
|
|
|
EgApiEndpointDo egApiEndpointDo=new EgApiEndpointDo();
|
|
|
- egApiEndpointDo.setApiCode(egApiDo.getApiCode());
|
|
|
+
|
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
|
- egApiEndpointDo.setApiName(jsonObject.getString("name"));
|
|
|
- egApiEndpointDo.setApiConfig(HessianUtils.serialize(createYuKuaiHuaCheckIntoBean(openApiConfig)));
|
|
|
+
|
|
|
+ egApiEndpointDo.setRequestConfig(HessianUtils.serialize(createYuKuaiHuaCheckIntoBean(openApiConfig)));
|
|
|
egApiEndpointService.save(egApiEndpointDo);
|
|
|
}
|
|
|
|
|
@@ -972,10 +966,10 @@ public class GenerateCheckIntoHttpApiConfigService {
|
|
|
egApiService.save(egApiDo);
|
|
|
JSONObject jsonObject = JSONObject.parseObject(openApiConfig);
|
|
|
EgApiEndpointDo egApiEndpointDo=new EgApiEndpointDo();
|
|
|
- egApiEndpointDo.setApiCode(egApiDo.getApiCode());
|
|
|
+
|
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
|
- egApiEndpointDo.setApiName(jsonObject.getString("name"));
|
|
|
- egApiEndpointDo.setApiConfig(HessianUtils.serialize(createYinJieCheckIntoBean(openApiConfig)));
|
|
|
+
|
|
|
+ egApiEndpointDo.setRequestConfig(HessianUtils.serialize(createYinJieCheckIntoBean(openApiConfig)));
|
|
|
egApiEndpointService.save(egApiEndpointDo);
|
|
|
}
|
|
|
|
|
@@ -1035,10 +1029,10 @@ public class GenerateCheckIntoHttpApiConfigService {
|
|
|
egApiService.save(egApiDo);
|
|
|
JSONObject jsonObject = JSONObject.parseObject(openApiConfig);
|
|
|
EgApiEndpointDo egApiEndpointDo=new EgApiEndpointDo();
|
|
|
- egApiEndpointDo.setApiCode(egApiDo.getApiCode());
|
|
|
+
|
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
|
- egApiEndpointDo.setApiName(jsonObject.getString("name"));
|
|
|
- egApiEndpointDo.setApiConfig(HessianUtils.serialize(createYouRonCheckIntoBean(openApiConfig)));
|
|
|
+
|
|
|
+ egApiEndpointDo.setRequestConfig(HessianUtils.serialize(createYouRonCheckIntoBean(openApiConfig)));
|
|
|
egApiEndpointService.save(egApiEndpointDo);
|
|
|
}
|
|
|
|
|
@@ -1095,10 +1089,10 @@ public class GenerateCheckIntoHttpApiConfigService {
|
|
|
egApiService.save(egApiDo);
|
|
|
JSONObject jsonObject = JSONObject.parseObject(openApiConfig);
|
|
|
EgApiEndpointDo egApiEndpointDo=new EgApiEndpointDo();
|
|
|
- egApiEndpointDo.setApiCode(egApiDo.getApiCode());
|
|
|
+
|
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
|
- egApiEndpointDo.setApiName(jsonObject.getString("name"));
|
|
|
- egApiEndpointDo.setApiConfig(HessianUtils.serialize(createHamiguaCheckIntoBean(openApiConfig)));
|
|
|
+
|
|
|
+ egApiEndpointDo.setRequestConfig(HessianUtils.serialize(createHamiguaCheckIntoBean(openApiConfig)));
|
|
|
egApiEndpointService.save(egApiEndpointDo);
|
|
|
}
|
|
|
|
|
@@ -1161,10 +1155,10 @@ public class GenerateCheckIntoHttpApiConfigService {
|
|
|
egApiService.save(egApiDo);
|
|
|
JSONObject jsonObject = JSONObject.parseObject(openApiConfig);
|
|
|
EgApiEndpointDo egApiEndpointDo=new EgApiEndpointDo();
|
|
|
- egApiEndpointDo.setApiCode(egApiDo.getApiCode());
|
|
|
+
|
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
|
- egApiEndpointDo.setApiName(jsonObject.getString("name"));
|
|
|
- egApiEndpointDo.setApiConfig(HessianUtils.serialize(createHaohanwuyinCheckIntoBean(openApiConfig)));
|
|
|
+
|
|
|
+ egApiEndpointDo.setRequestConfig(HessianUtils.serialize(createHaohanwuyinCheckIntoBean(openApiConfig)));
|
|
|
egApiEndpointService.save(egApiEndpointDo);
|
|
|
}
|
|
|
|