|
@@ -1,17 +1,15 @@
|
|
package com.hrsk.cloud.eg.app.loan.executor;
|
|
package com.hrsk.cloud.eg.app.loan.executor;
|
|
|
|
|
|
-import com.alibaba.fastjson2.JSONObject;
|
|
|
|
-import com.google.common.collect.Lists;
|
|
|
|
-import com.hrsk.cloud.eg.clinet.constant.BusinessPrefixEnum;
|
|
|
|
|
|
+import com.hrsk.cloud.eg.client.constant.BusinessPrefixEnum;
|
|
import com.hrsk.cloud.eg.domain.api.*;
|
|
import com.hrsk.cloud.eg.domain.api.*;
|
|
import com.hrsk.cloud.eg.domain.api.common.ApiPayloadTypeEnum;
|
|
import com.hrsk.cloud.eg.domain.api.common.ApiPayloadTypeEnum;
|
|
import com.hrsk.cloud.eg.domain.api.common.ValueObjectTypeEnum;
|
|
import com.hrsk.cloud.eg.domain.api.common.ValueObjectTypeEnum;
|
|
import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
|
|
import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
|
|
-import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgApiDo;
|
|
|
|
-import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgApiEndpointDo;
|
|
|
|
-import com.hrsk.cloud.eg.infrastructure.service.EgApiEndpointService;
|
|
|
|
|
|
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgressApiDo;
|
|
|
|
+import com.hrsk.cloud.eg.infrastructure.service.EgApiChannelService;
|
|
import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
|
|
import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
+import net.minidev.json.JSONObject;
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
@@ -32,7 +30,7 @@ public class GenerateCheckIntoHttpApiConfigCmdExe {
|
|
private EgApiService egApiService;
|
|
private EgApiService egApiService;
|
|
|
|
|
|
@Resource
|
|
@Resource
|
|
- private EgApiEndpointService egApiEndpointService;
|
|
|
|
|
|
+ private EgApiChannelService egApiChannelService;
|
|
|
|
|
|
/**
|
|
/**
|
|
* @description: 原始惠融对接api转化
|
|
* @description: 原始惠融对接api转化
|
|
@@ -42,14 +40,14 @@ public class GenerateCheckIntoHttpApiConfigCmdExe {
|
|
* @date: 2024/8/29 17:58
|
|
* @date: 2024/8/29 17:58
|
|
*/
|
|
*/
|
|
public void generateHuiRonHuiRonApiConfig(String huiRonApiConfig){
|
|
public void generateHuiRonHuiRonApiConfig(String huiRonApiConfig){
|
|
- EgApiDo egApiDo=new EgApiDo();
|
|
|
|
|
|
+ EgressApiDo egApiDo=new EgressApiDo();
|
|
egApiDo.setApiCode("EG:"+BusinessPrefixEnum.CHECK_INTO_PREFIX.getCode()+":HUIRONG_CRM:9");
|
|
egApiDo.setApiCode("EG:"+BusinessPrefixEnum.CHECK_INTO_PREFIX.getCode()+":HUIRONG_CRM:9");
|
|
egApiDo.setApiName(BusinessPrefixEnum.CHECK_INTO_PREFIX.getMsg());
|
|
egApiDo.setApiName(BusinessPrefixEnum.CHECK_INTO_PREFIX.getMsg());
|
|
egApiService.save(egApiDo);
|
|
egApiService.save(egApiDo);
|
|
JSONObject jsonObject = JSONObject.parseObject(huiRonApiConfig);
|
|
JSONObject jsonObject = JSONObject.parseObject(huiRonApiConfig);
|
|
EgApiEndpointDo egApiEndpointDo=new EgApiEndpointDo();
|
|
EgApiEndpointDo egApiEndpointDo=new EgApiEndpointDo();
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
- egApiEndpointService.save(egApiEndpointDo);
|
|
|
|
|
|
+ egApiChannelService.save(egApiEndpointDo);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -70,7 +68,7 @@ public class GenerateCheckIntoHttpApiConfigCmdExe {
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
|
|
|
|
egApiEndpointDo.setRequestConfig(HessianUtils.serialize(createOpenApiRsaCheckIntoBean(openApiConfig)));
|
|
egApiEndpointDo.setRequestConfig(HessianUtils.serialize(createOpenApiRsaCheckIntoBean(openApiConfig)));
|
|
- egApiEndpointService.save(egApiEndpointDo);
|
|
|
|
|
|
+ egApiChannelService.save(egApiEndpointDo);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -91,7 +89,7 @@ public class GenerateCheckIntoHttpApiConfigCmdExe {
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
|
|
|
|
egApiEndpointDo.setRequestConfig(HessianUtils.serialize(createOpenApiAesCheckIntoBean(openApiConfig)));
|
|
egApiEndpointDo.setRequestConfig(HessianUtils.serialize(createOpenApiAesCheckIntoBean(openApiConfig)));
|
|
- egApiEndpointService.save(egApiEndpointDo);
|
|
|
|
|
|
+ egApiChannelService.save(egApiEndpointDo);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -112,7 +110,7 @@ public class GenerateCheckIntoHttpApiConfigCmdExe {
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
|
|
|
|
egApiEndpointDo.setRequestConfig(HessianUtils.serialize(createQinYuCheckIntoBean(openApiConfig)));
|
|
egApiEndpointDo.setRequestConfig(HessianUtils.serialize(createQinYuCheckIntoBean(openApiConfig)));
|
|
- egApiEndpointService.save(egApiEndpointDo);
|
|
|
|
|
|
+ egApiChannelService.save(egApiEndpointDo);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -129,7 +127,7 @@ public class GenerateCheckIntoHttpApiConfigCmdExe {
|
|
JSONObject jsonObject = JSONObject.parseObject(openApiConfig);
|
|
JSONObject jsonObject = JSONObject.parseObject(openApiConfig);
|
|
EgApiEndpointDo egApiEndpointDo=new EgApiEndpointDo();
|
|
EgApiEndpointDo egApiEndpointDo=new EgApiEndpointDo();
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
- egApiEndpointService.save(egApiEndpointDo);
|
|
|
|
|
|
+ egApiChannelService.save(egApiEndpointDo);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -150,7 +148,7 @@ public class GenerateCheckIntoHttpApiConfigCmdExe {
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
|
|
|
|
egApiEndpointDo.setRequestConfig(HessianUtils.serialize(createXkdApiCheckIntoBean(openApiConfig)));
|
|
egApiEndpointDo.setRequestConfig(HessianUtils.serialize(createXkdApiCheckIntoBean(openApiConfig)));
|
|
- egApiEndpointService.save(egApiEndpointDo);
|
|
|
|
|
|
+ egApiChannelService.save(egApiEndpointDo);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -171,7 +169,7 @@ public class GenerateCheckIntoHttpApiConfigCmdExe {
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
|
|
|
|
egApiEndpointDo.setRequestConfig(HessianUtils.serialize(createJinDieCheckIntoBean(openApiConfig)));
|
|
egApiEndpointDo.setRequestConfig(HessianUtils.serialize(createJinDieCheckIntoBean(openApiConfig)));
|
|
- egApiEndpointService.save(egApiEndpointDo);
|
|
|
|
|
|
+ egApiChannelService.save(egApiEndpointDo);
|
|
}
|
|
}
|
|
|
|
|
|
private HttpApiConfig createJinDieCheckIntoBean(String openApiConfig) {
|
|
private HttpApiConfig createJinDieCheckIntoBean(String openApiConfig) {
|
|
@@ -230,7 +228,7 @@ public class GenerateCheckIntoHttpApiConfigCmdExe {
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
|
|
|
|
egApiEndpointDo.setRequestConfig(HessianUtils.serialize(createJinDieCheckIntoBean(openApiConfig)));
|
|
egApiEndpointDo.setRequestConfig(HessianUtils.serialize(createJinDieCheckIntoBean(openApiConfig)));
|
|
- egApiEndpointService.save(egApiEndpointDo);
|
|
|
|
|
|
+ egApiChannelService.save(egApiEndpointDo);
|
|
}
|
|
}
|
|
|
|
|
|
private HttpApiConfig createJinDieV3CheckIntoBean(String openApiConfig) {
|
|
private HttpApiConfig createJinDieV3CheckIntoBean(String openApiConfig) {
|
|
@@ -290,7 +288,7 @@ public class GenerateCheckIntoHttpApiConfigCmdExe {
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
|
|
|
|
egApiEndpointDo.setRequestConfig(HessianUtils.serialize(createRxkCheckIntoBean(openApiConfig)));
|
|
egApiEndpointDo.setRequestConfig(HessianUtils.serialize(createRxkCheckIntoBean(openApiConfig)));
|
|
- egApiEndpointService.save(egApiEndpointDo);
|
|
|
|
|
|
+ egApiChannelService.save(egApiEndpointDo);
|
|
}
|
|
}
|
|
|
|
|
|
private HttpApiConfig createRxkCheckIntoBean(String openApiConfig) {
|
|
private HttpApiConfig createRxkCheckIntoBean(String openApiConfig) {
|
|
@@ -647,7 +645,7 @@ public class GenerateCheckIntoHttpApiConfigCmdExe {
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
|
|
|
|
egApiEndpointDo.setRequestConfig(HessianUtils.serialize(createHuiZhongCheckIntoBean(openApiConfig)));
|
|
egApiEndpointDo.setRequestConfig(HessianUtils.serialize(createHuiZhongCheckIntoBean(openApiConfig)));
|
|
- egApiEndpointService.save(egApiEndpointDo);
|
|
|
|
|
|
+ egApiChannelService.save(egApiEndpointDo);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -713,7 +711,7 @@ public class GenerateCheckIntoHttpApiConfigCmdExe {
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
|
|
|
|
egApiEndpointDo.setRequestConfig(HessianUtils.serialize(createYinHuaCheckIntoBean(openApiConfig)));
|
|
egApiEndpointDo.setRequestConfig(HessianUtils.serialize(createYinHuaCheckIntoBean(openApiConfig)));
|
|
- egApiEndpointService.save(egApiEndpointDo);
|
|
|
|
|
|
+ egApiChannelService.save(egApiEndpointDo);
|
|
}
|
|
}
|
|
|
|
|
|
private HttpApiConfig createYinHuaCheckIntoBean(String openApiConfig) {
|
|
private HttpApiConfig createYinHuaCheckIntoBean(String openApiConfig) {
|
|
@@ -775,7 +773,7 @@ public class GenerateCheckIntoHttpApiConfigCmdExe {
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
|
|
|
|
egApiEndpointDo.setRequestConfig(HessianUtils.serialize(createHuixinCheckIntoBean(threeSystemConfig)));
|
|
egApiEndpointDo.setRequestConfig(HessianUtils.serialize(createHuixinCheckIntoBean(threeSystemConfig)));
|
|
- egApiEndpointService.save(egApiEndpointDo);
|
|
|
|
|
|
+ egApiChannelService.save(egApiEndpointDo);
|
|
}
|
|
}
|
|
|
|
|
|
private HttpApiConfig createHuixinCheckIntoBean(String threeSystemConfig) {
|
|
private HttpApiConfig createHuixinCheckIntoBean(String threeSystemConfig) {
|
|
@@ -844,7 +842,7 @@ public class GenerateCheckIntoHttpApiConfigCmdExe {
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
|
|
|
|
egApiEndpointDo.setRequestConfig(HessianUtils.serialize(createHuiZhongCheckIntoBean(openApiConfig)));
|
|
egApiEndpointDo.setRequestConfig(HessianUtils.serialize(createHuiZhongCheckIntoBean(openApiConfig)));
|
|
- egApiEndpointService.save(egApiEndpointDo);
|
|
|
|
|
|
+ egApiChannelService.save(egApiEndpointDo);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -911,7 +909,7 @@ public class GenerateCheckIntoHttpApiConfigCmdExe {
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
|
|
|
|
egApiEndpointDo.setRequestConfig(HessianUtils.serialize(createYuKuaiHuaCheckIntoBean(openApiConfig)));
|
|
egApiEndpointDo.setRequestConfig(HessianUtils.serialize(createYuKuaiHuaCheckIntoBean(openApiConfig)));
|
|
- egApiEndpointService.save(egApiEndpointDo);
|
|
|
|
|
|
+ egApiChannelService.save(egApiEndpointDo);
|
|
}
|
|
}
|
|
|
|
|
|
private HttpApiConfig createYuKuaiHuaCheckIntoBean(String openApiConfig) {
|
|
private HttpApiConfig createYuKuaiHuaCheckIntoBean(String openApiConfig) {
|
|
@@ -970,7 +968,7 @@ public class GenerateCheckIntoHttpApiConfigCmdExe {
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
|
|
|
|
egApiEndpointDo.setRequestConfig(HessianUtils.serialize(createYinJieCheckIntoBean(openApiConfig)));
|
|
egApiEndpointDo.setRequestConfig(HessianUtils.serialize(createYinJieCheckIntoBean(openApiConfig)));
|
|
- egApiEndpointService.save(egApiEndpointDo);
|
|
|
|
|
|
+ egApiChannelService.save(egApiEndpointDo);
|
|
}
|
|
}
|
|
|
|
|
|
private HttpApiConfig createYinJieCheckIntoBean(String openApiConfig) {
|
|
private HttpApiConfig createYinJieCheckIntoBean(String openApiConfig) {
|
|
@@ -1033,7 +1031,7 @@ public class GenerateCheckIntoHttpApiConfigCmdExe {
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
|
|
|
|
egApiEndpointDo.setRequestConfig(HessianUtils.serialize(createYouRonCheckIntoBean(openApiConfig)));
|
|
egApiEndpointDo.setRequestConfig(HessianUtils.serialize(createYouRonCheckIntoBean(openApiConfig)));
|
|
- egApiEndpointService.save(egApiEndpointDo);
|
|
|
|
|
|
+ egApiChannelService.save(egApiEndpointDo);
|
|
}
|
|
}
|
|
|
|
|
|
private HttpApiConfig createYouRonCheckIntoBean(String openApiConfig) {
|
|
private HttpApiConfig createYouRonCheckIntoBean(String openApiConfig) {
|
|
@@ -1093,7 +1091,7 @@ public class GenerateCheckIntoHttpApiConfigCmdExe {
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
|
|
|
|
egApiEndpointDo.setRequestConfig(HessianUtils.serialize(createHamiguaCheckIntoBean(openApiConfig)));
|
|
egApiEndpointDo.setRequestConfig(HessianUtils.serialize(createHamiguaCheckIntoBean(openApiConfig)));
|
|
- egApiEndpointService.save(egApiEndpointDo);
|
|
|
|
|
|
+ egApiChannelService.save(egApiEndpointDo);
|
|
}
|
|
}
|
|
|
|
|
|
private HttpApiConfig createHamiguaCheckIntoBean(String openApiConfig) {
|
|
private HttpApiConfig createHamiguaCheckIntoBean(String openApiConfig) {
|
|
@@ -1159,7 +1157,7 @@ public class GenerateCheckIntoHttpApiConfigCmdExe {
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
egApiEndpointDo.setApiId(egApiDo.getId());
|
|
|
|
|
|
egApiEndpointDo.setRequestConfig(HessianUtils.serialize(createHaohanwuyinCheckIntoBean(openApiConfig)));
|
|
egApiEndpointDo.setRequestConfig(HessianUtils.serialize(createHaohanwuyinCheckIntoBean(openApiConfig)));
|
|
- egApiEndpointService.save(egApiEndpointDo);
|
|
|
|
|
|
+ egApiChannelService.save(egApiEndpointDo);
|
|
}
|
|
}
|
|
|
|
|
|
private HttpApiConfig createHaohanwuyinCheckIntoBean(String openApiConfig) {
|
|
private HttpApiConfig createHaohanwuyinCheckIntoBean(String openApiConfig) {
|