Ver Fonte

add api

GITZYY há 1 mês atrás
pai
commit
52d25cffcd
100 ficheiros alterados com 778 adições e 398 exclusões
  1. 6 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/business/ApiRouteService.java
  2. 12 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/AnHuiHengDaoCreditService.java
  3. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/BaiXinShunTaiCreditService.java
  4. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/BaiYiJinFuCreditService.java
  5. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/BeiJingChongHeCreditService.java
  6. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/CangZhouSuYiRonogCreditService.java
  7. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/CheYouRongCreditService.java
  8. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/ChengDuYiHeShengCreditService.java
  9. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/ChengHongHuiCreditService.java
  10. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/ChongQinDongRunCreditService.java
  11. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/ChongQingRuiShangXinCreditService.java
  12. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/ChongQingYiYueCreditService.java
  13. 7 5
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/ChuanjinCreditService.java
  14. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/DeLuoXuanAesCreditService.java
  15. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/DeLuoXuanCreditService.java
  16. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/DeZhouXinYiRongCreditService.java
  17. 8 6
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/DeZhouXinYiRongV2CreditService.java
  18. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/DfrzwCreditService.java
  19. 6 5
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/FangxinwangiCreditService.java
  20. 8 6
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/FuChengCreditService.java
  21. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/FuZhouBeiJiuCreditService.java
  22. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/FuZhouBeiYinJinRongCreditService.java
  23. 6 3
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/GexinjinfuCreditService.java
  24. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/GuanZhouPuHuiCreditService.java
  25. 8 6
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/GuangDongHaoEnCreditService.java
  26. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/GuangDongHongZhanCreditService.java
  27. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/GuangZhouHuaXinCreditService.java
  28. 6 3
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/HamiguaCreditService.java
  29. 6 3
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/HaohanwuyinCreditService.java
  30. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/HeFeiShenDaiCreditService.java
  31. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/HeZeRongXinCreditService.java
  32. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/HengYangJiuZhenCreditService.java
  33. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/HengaiCreditService.java
  34. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/HongShengJinFuCreditService.java
  35. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/HongXinPuHuiCreditService.java
  36. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/HuNanDiShuiYanCreditService.java
  37. 7 3
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/HuirongCrmCreditService.java
  38. 6 3
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/HuixinCreditService.java
  39. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/HuizhongCreditService.java
  40. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/JianZhanCreditService.java
  41. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/JiechengCreditService.java
  42. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/JilingHuiRongCreditService.java
  43. 7 3
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/JinDieV2CreditService.java
  44. 6 3
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/JinDieV3CreditService.java
  45. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/JinDieV4CreditService.java
  46. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/JinZhuLiCreditService.java
  47. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/JindieCreditService.java
  48. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/JiuXinKeCreditService.java
  49. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/KuaiYiRongCreditService.java
  50. 6 3
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/KuaiyidaiCreditService.java
  51. 6 3
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/KuaiyidaiFourToOneCreditService.java
  52. 6 3
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/KuaiyidaiNightCreditService.java
  53. 6 3
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/KuaiyidaiV2CreditService.java
  54. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/KunMingXiaoSongShuCreditService.java
  55. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/LeXiangRongCreditService.java
  56. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/LianKeYunKongCreditService.java
  57. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/LiaoChengXinYiDaiCreditService.java
  58. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/MoGuTouCreditService.java
  59. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/NanTongXingChengCreditService.java
  60. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/NiYouKeCreditService.java
  61. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/NingBoTianChengCreditService.java
  62. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/OpenApiAesCreditService.java
  63. 9 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/OpenApiCreditService.java
  64. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/PingDingShanCreditService.java
  65. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/PingXunCreditService.java
  66. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/QingDaoAoSengCreditService.java
  67. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/QingDaoAoSengV2CreditService.java
  68. 6 3
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/QingyuCreditService.java
  69. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/QingyuV2CreditService.java
  70. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/QingyuV3CreditService.java
  71. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/RongChuangJinFuCreditService.java
  72. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/RongXiangDaChangShaCreditService.java
  73. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/RongXiangKeBuShuCreditService.java
  74. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/RongXiangKeV2CreditService.java
  75. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/RongYiDaCreditService.java
  76. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/RongkedaiCreditService.java
  77. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/RongshengCreditService.java
  78. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/RongxiziCreditService.java
  79. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/RunMeiXinYiRongCreditService.java
  80. 8 6
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/RxkCreditService.java
  81. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/ShanDongBangBangDaiCreditService.java
  82. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/ShanXiHengShengDaiCreditService.java
  83. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/ShanXiMingDePuHuiCreditService.java
  84. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/ShangHaiHanGeCreditService.java
  85. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/ShangHaiJuHuiRongCreditService.java
  86. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/ShenLuoJinFuCreditService.java
  87. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/ShenYangHengXinCreditService.java
  88. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/ShenYangXinYiRongCreditService.java
  89. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/ShiYueCreditService.java
  90. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/ShuRongCreditService.java
  91. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/SiChuangRuiCreditService.java
  92. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/SouYuJinFuCreditService.java
  93. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/SuZhouJianYiRongCreditService.java
  94. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/SuzhouchangshuoCreditService.java
  95. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/TangShanRongYangCreditService.java
  96. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/TianJingJiaYiCreditService.java
  97. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/TianShuiShuYiRongCreditService.java
  98. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/TuoBaoRongCreditService.java
  99. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/WeiFangHuaShenCreditService.java
  100. 8 4
      egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/WeiFangYouYiCreditService.java

+ 6 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/business/ApiRouteService.java

@@ -6,7 +6,9 @@ import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.app.threedocking.impl.*;
 import com.hrsk.cloud.eg.dto.data.CheckIntoParamDto;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.vo.response.DataVo;
 import lombok.extern.slf4j.Slf4j;
@@ -25,7 +27,7 @@ import java.util.Objects;
 public class ApiRouteService {
 
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private ApiBizHandler apiBizHandler;
@@ -75,13 +77,13 @@ public class ApiRouteService {
      */
     public LoanDockingApi apiRouter(PlanDto xdProduct) {
         if (null == xdProduct.getApiId()) return null;
-        ProductBusinessApiInfoDo apiInfo = apiInfoService.getApiInfoByRedis(xdProduct.getApiId());
+        EgLoanApiConfigInfoDo apiInfo = egApiService.getApiInfoByRedis(xdProduct.getApiId());
         LoanDockingApi apiService = null;
         if (Objects.isNull(apiInfo)&&apiInfo.getNeedCheck()==0){
              apiService= pubNoCheckCreditService;
              return apiService;
         }
-        JoinMethodEnums method = JoinMethodEnums.getByCode(apiInfo.getJoinMethod());
+        JoinMethodEnums method = JoinMethodEnums.getByCode(apiInfo.getApiCode());
         if (null == method) return null;
         switch (method) {
             case CRM_QY:
@@ -114,7 +116,7 @@ public class ApiRouteService {
                 apiService = jinDieV3CreditService;
                 break;
             case BUSI_API:
-                apiService = apiBizHandler.getBizHandler(ServerCodeEnums.map.get(apiInfo.getJointType()));
+                apiService = apiBizHandler.getBizHandler(ServerCodeEnums.map.get(apiInfo.getApiCode()));
                 break;
             case CRM_QY_V3:
                 apiService = qingyuV3CreditService;

+ 12 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/AnHuiHengDaoCreditService.java

@@ -5,8 +5,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -29,7 +32,10 @@ public class AnHuiHengDaoCreditService implements LoanDockingApi {
      private RetryRestTemplate httpRestTemplate;
 
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
+
+    @Resource
+    private EgApiService egApiService;
 
     @Override
     public ServerCodeEnums getType() {
@@ -80,9 +86,11 @@ public class AnHuiHengDaoCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit AnHuiHengDaoCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+            EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
+
             log.info("安徽恒道对接参数:{}", JSON.toJSONString(config));
             CheckInfo checkInfo = new CheckInfo();
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/BaiXinShunTaiCreditService.java

@@ -5,8 +5,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.DateUtil;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
@@ -40,7 +43,7 @@ public class BaiXinShunTaiCreditService implements LoanDockingApi {
     private RetryRestTemplate httpRestTemplate;
 
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     //撞库
     @Data
@@ -89,9 +92,10 @@ public class BaiXinShunTaiCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit QingDaoBaiXinShunTaiCreditService qualityCheck begin...userId:{}", userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("青岛佰信顺泰对接参数:{}", JSON.toJSONString(config));
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();
             CheckInfo checkInfo = new CheckInfo();

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/BaiYiJinFuCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.infrastructure.utils.RedisUtil;
@@ -35,7 +38,7 @@ public class BaiYiJinFuCreditService implements LoanDockingApi {
     private RetryRestTemplate httpRestTemplate;
 
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
 
     @Data
@@ -87,9 +90,10 @@ public class BaiYiJinFuCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit BaiYiJinFuCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("佰亿金服对接参数:{}", JSON.toJSONString(config));
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();
             CheckInfo checkInfo = new CheckInfo();

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/BeiJingChongHeCreditService.java

@@ -5,8 +5,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -28,7 +31,7 @@ import javax.crypto.spec.SecretKeySpec;
 public class BeiJingChongHeCreditService implements LoanDockingApi {
 
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -170,9 +173,10 @@ public class BeiJingChongHeCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit BeiJingChongHeCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("北京重和对接参数:{}", JSONObject.toJSONString(config));
             CheckInfo checkInfo = new CheckInfo();
             checkInfo.setMd5_phone((userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5()));

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/CangZhouSuYiRonogCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -24,7 +27,7 @@ import javax.annotation.Resource;
 @Component
 public class CangZhouSuYiRonogCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -67,9 +70,10 @@ public class CangZhouSuYiRonogCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit CangZhouSuYiRongCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("沧州速易融对接参数:{}", JSON.toJSONString(config));
             CheckInfo checkInfo = new CheckInfo();
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/CheYouRongCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -27,7 +30,7 @@ import javax.crypto.spec.SecretKeySpec;
 @Component
 public class CheYouRongCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -72,9 +75,10 @@ public class CheYouRongCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit JiangXiCheYouRongCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("江西车优融对接参数:{}", JSON.toJSONString(config));
             CheckInfo checkInfo = new CheckInfo();
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/ChengDuYiHeShengCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -27,7 +30,7 @@ import javax.crypto.spec.SecretKeySpec;
 @Component
 public class ChengDuYiHeShengCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -71,9 +74,10 @@ public class ChengDuYiHeShengCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit ChengDuYiHeShengCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("成都亿禾生对接参数:{}", JSON.toJSONString(config));
             CheckInfo checkInfo = new CheckInfo();
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/ChengHongHuiCreditService.java

@@ -5,8 +5,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -31,7 +34,7 @@ import java.util.Base64;
 @Slf4j
 public class ChengHongHuiCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -82,9 +85,10 @@ public class ChengHongHuiCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
 //            log.info("credit ChengHongHuiCreditService qualityCheck begin...userId:{}", userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
 //            log.info("晨宏汇对接参数:{}", JSON.toJSONString(config));
             CheckInfo checkInfo = new CheckInfo();
             checkInfo.setTel((userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5()));

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/ChongQinDongRunCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -30,7 +33,7 @@ import java.util.Base64;
 @Component
 public class ChongQinDongRunCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -94,9 +97,10 @@ public class ChongQinDongRunCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit ChongQinDongRunCreditService qualityCheck begin...userId:{}", userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("重庆东润对接参数:{}", JSON.toJSONString(config));
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();
             CheckInfo checkInfo = new CheckInfo();

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/ChongQingRuiShangXinCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -32,7 +35,7 @@ import java.security.Key;
 public class ChongQingRuiShangXinCreditService implements LoanDockingApi {
 
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -88,9 +91,10 @@ public class ChongQingRuiShangXinCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit ChongQingRuiShangXinCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("重庆睿双鑫对接参数:{}", JSON.toJSONString(config));
             CheckInfo checkInfo = new CheckInfo();
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/ChongQingYiYueCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -25,7 +28,7 @@ import javax.annotation.Resource;
 @Service
 public class ChongQingYiYueCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -76,9 +79,10 @@ public class ChongQingYiYueCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit ChongQingYiYueCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("重庆易悦对接参数:{}", JSON.toJSONString(config));
             CheckInfo checkInfo = new CheckInfo();
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();

+ 7 - 5
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/ChuanjinCreditService.java

@@ -7,8 +7,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.vo.response.DataVo;
 import lombok.Data;
@@ -32,7 +35,7 @@ public class ChuanjinCreditService implements LoanDockingApi {
     private final static String applyPath = "customers";
 
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -75,10 +78,9 @@ public class ChuanjinCreditService implements LoanDockingApi {
         try {
             log.info("credit ChuanjinCreditService qualityCheck begin...userId:{}", userInfo.getUserId());
 //            XdProductJointConfig xdProductJointConfig = xdProductJointConfigMapper.selectById(product.getJointType());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-
-            JSONObject config = JSONObject.parseObject(configJson);
+            EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            Object requestConfig = HessianUtils.deserialize(loanApiConfigInfo.getRequestConfig()) ;
+            JSONObject config = JSONObject.parseObject(requestConfig.toString());
             log.info("川金对接参数:{}", JSON.toJSONString(config));
             String url = config.getString("url") + qualityCheckPath;
             ResResult response = null;

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/DeLuoXuanAesCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -26,7 +29,7 @@ import javax.annotation.Resource;
 public class DeLuoXuanAesCreditService implements LoanDockingApi {
 
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -71,9 +74,10 @@ public class DeLuoXuanAesCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit DeLuoXuanAesCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("德诺轩AES对接参数:{}", JSON.toJSONString(config));
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();
             CheckInfo checkInfo = new CheckInfo();

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/DeLuoXuanCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -25,7 +28,7 @@ import javax.annotation.Resource;
 @Service
 public class DeLuoXuanCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -71,9 +74,10 @@ public class DeLuoXuanCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit DeLuoXuanCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("德诺轩对接参数:{}", JSON.toJSONString(config));
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();
             CheckInfo checkInfo = new CheckInfo();

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/DeZhouXinYiRongCreditService.java

@@ -5,8 +5,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -24,7 +27,7 @@ import javax.annotation.Resource;
 @Service
 public class DeZhouXinYiRongCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -74,9 +77,10 @@ public class DeZhouXinYiRongCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit DeZhouXinYiRongCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("德州鑫易融对接参数:{}", JSONObject.toJSONString(config));
             CheckInfo checkInfo = new CheckInfo();
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();

+ 8 - 6
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/DeZhouXinYiRongV2CreditService.java

@@ -6,9 +6,10 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
-import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
-import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
 import lombok.Data;
@@ -27,7 +28,7 @@ import javax.annotation.Resource;
 public class DeZhouXinYiRongV2CreditService implements LoanDockingApi {
 
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -73,9 +74,10 @@ public class DeZhouXinYiRongV2CreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit DeZhouXinYiRongV2CreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+            EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("德州鑫易融V2对接参数:{}", JSON.toJSONString(config));
             CheckInfo checkInfo = new CheckInfo();
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/DfrzwCreditService.java

@@ -4,8 +4,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.DateUtil;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
@@ -48,7 +51,7 @@ public class DfrzwCreditService implements LoanDockingApi {
     private static final String REGISTER = "/rzr/TransferV2/Register";
 
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -66,9 +69,10 @@ public class DfrzwCreditService implements LoanDockingApi {
             log.info("东方融资网准入失败,用户手机号在黑名单中:{}",cellPhoneNumber);
             return DataVo.fail(1, "东方融资网准入失败,用户手机号在黑名单中", product.getPlanId());
         }
-        ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-        String configJson = apiInfo.getThreeSystemConfig();
-        JSONObject data = JSONObject.parseObject(configJson);
+        EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+
+        Object deserialize = HessianUtils.deserialize(loanApiConfigInfo.getRequestConfig());
+        JSONObject data = JSONObject.parseObject(deserialize.toString());
         String url = data.getString("url");
         String timeStampStr = DateUtil.getFormatDate(new Date(), "yyyyMMddHHmmss");
         JSONObject body = new JSONObject();

+ 6 - 5
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/FangxinwangiCreditService.java

@@ -6,9 +6,10 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
-import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
-import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
 import lombok.Data;
@@ -28,7 +29,7 @@ import java.util.Objects;
 @Slf4j
 public class FangxinwangiCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -81,8 +82,8 @@ public class FangxinwangiCreditService implements LoanDockingApi {
         try {
             log.info("credit FangxinwangCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
 //            XdProductJointConfig xdProductJointConfig = xdProductJointConfigMapper.selectById(product.getJointType());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
+            EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            String configJson = HessianUtils.deserialize(loanApiConfigInfo.getRequestConfig()).toString();
             JSONObject fangxinwangJointDTO = JSON.parseObject(configJson);
             log.info("放心网对接参数:{}", JSON.toJSONString(fangxinwangJointDTO));
             String url = fangxinwangJointDTO.getString("url") + qualityCheckPath;

+ 8 - 6
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/FuChengCreditService.java

@@ -6,9 +6,10 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
-import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
-import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
 import lombok.Data;
@@ -32,7 +33,7 @@ import java.util.Map;
 @Service
 public class FuChengCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -64,9 +65,10 @@ public class FuChengCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit FuChengCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("福程对接参数:{}", JSON.toJSONString(config));
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();
             CheckInfo checkInfo = new CheckInfo();

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/FuZhouBeiJiuCreditService.java

@@ -7,8 +7,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -25,7 +28,7 @@ import javax.annotation.Resource;
 @Service
 public class FuZhouBeiJiuCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -49,9 +52,10 @@ public class FuZhouBeiJiuCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit FuZhouBeiJiuCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("福州北久对接参数:{}", JSON.toJSONString(config));
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();
             String url = config.getString("checkUrl");

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/FuZhouBeiYinJinRongCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -25,7 +28,7 @@ import javax.annotation.Resource;
 @Service
 public class FuZhouBeiYinJinRongCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -93,9 +96,10 @@ public class FuZhouBeiYinJinRongCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit FuZhouBeiYinJinRongCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("福州北银金融对接参数:{}", JSON.toJSONString(config));
             CheckInfo checkInfo = new CheckInfo();
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();

+ 6 - 3
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/GexinjinfuCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -26,7 +29,7 @@ import java.util.Objects;
 @Slf4j
 public class GexinjinfuCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -77,8 +80,8 @@ public class GexinjinfuCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit GexinjinfuCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
+            EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            String configJson = HessianUtils.deserialize(loanApiConfigInfo.getRequestConfig()).toString();
             JSONObject gexinjinfuJointDTO = JSON.parseObject(configJson);
             log.info("格鑫金服对接参数:{}", JSON.toJSONString(gexinjinfuJointDTO));
             String md5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/GuanZhouPuHuiCreditService.java

@@ -5,8 +5,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -23,7 +26,7 @@ import javax.annotation.Resource;
 @Service
 public class GuanZhouPuHuiCreditService  implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -63,9 +66,10 @@ public class GuanZhouPuHuiCreditService  implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit GuanZhouPuHuiCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("广州普惠对接参数:{}", JSONObject.toJSONString(config));
             String Phone_md5=(userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5());
             CheckInfo checkInfo=new CheckInfo();

+ 8 - 6
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/GuangDongHaoEnCreditService.java

@@ -5,9 +5,10 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
-import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
-import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
 import lombok.Data;
@@ -24,7 +25,7 @@ import javax.annotation.Resource;
 @Service
 public class GuangDongHaoEnCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -65,9 +66,10 @@ public class GuangDongHaoEnCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit GuangDongHaoEnCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("广东昊恩对接参数:{}", JSONObject.toJSONString(config));
             CheckInfo checkInfo = new CheckInfo();
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/GuangDongHongZhanCreditService.java

@@ -5,8 +5,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -23,7 +26,7 @@ import javax.annotation.Resource;
 @Service
     public class GuangDongHongZhanCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -50,9 +53,10 @@ import javax.annotation.Resource;
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit GuangDongHongZhanCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("广东鸿展对接参数:{}", JSONObject.toJSONString(config));
             CheckInfo checkInfo = new CheckInfo();
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/GuangZhouHuaXinCreditService.java

@@ -5,8 +5,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -25,7 +28,7 @@ import javax.annotation.Resource;
 public class GuangZhouHuaXinCreditService implements LoanDockingApi {
 
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -85,9 +88,10 @@ public class GuangZhouHuaXinCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit GuangZhouHuaXinCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("广州华鑫对接参数:{}", JSONObject.toJSONString(config));
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();
             String url = config.getString("checkUrl");

+ 6 - 3
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/HamiguaCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.vo.response.DataVo;
 import lombok.Data;
@@ -27,7 +30,7 @@ import java.util.Objects;
 @Slf4j
 public class HamiguaCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -75,8 +78,8 @@ public class HamiguaCreditService implements LoanDockingApi {
         try {
             log.info("credit HamiguaCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
 //            XdProductJointConfig xdProductJointConfig = xdProductJointConfigMapper.selectById(product.getJointType());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
+            EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            String configJson = HessianUtils.deserialize(loanApiConfigInfo.getRequestConfig()).toString() ;
             JSONObject hamiguaJointDTO = JSON.parseObject(configJson);
             log.info("哈密瓜对接参数:{}", JSON.toJSONString(hamiguaJointDTO));
 //            CheckInfo checkInfo = new CheckInfo();

+ 6 - 3
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/HaohanwuyinCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -25,7 +28,7 @@ import java.util.*;
 @Slf4j
 public class HaohanwuyinCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -77,8 +80,8 @@ public class HaohanwuyinCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit HaohanwuyinCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
+            EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            String configJson = HessianUtils.deserialize(loanApiConfigInfo.getRequestConfig()).toString() ;
             com.alibaba.fastjson2.JSONObject HaohanwuyinJointDTO = JSON.parseObject(configJson);
             log.info("灏瀚无崟对接参数:{}", JSON.toJSONString(HaohanwuyinJointDTO));
             Map<String,String> checkData = new HashMap<>();

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/HeFeiShenDaiCreditService.java

@@ -5,8 +5,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -23,7 +26,7 @@ import javax.annotation.Resource;
 @Service
 public class HeFeiShenDaiCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -56,9 +59,10 @@ public class HeFeiShenDaiCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit HeFeiShenDaiCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("合肥盛代对接参数:{}", JSONObject.toJSONString(config));
             String Phone_md5=(userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5());
             String url = config.getString("checkUrl")+Phone_md5;

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/HeZeRongXinCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -26,7 +29,7 @@ import javax.annotation.Resource;
 @Service
 public class HeZeRongXinCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -59,9 +62,10 @@ public class HeZeRongXinCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit HeZeRongXinCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("菏泽融信对接参数:{}", JSON.toJSONString(config));
             CheckInfo checkInfo = new CheckInfo();
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/HengYangJiuZhenCreditService.java

@@ -5,8 +5,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.vo.response.DataVo;
 import lombok.Data;
@@ -28,7 +31,7 @@ import java.util.Collections;
 @Component
 public class HengYangJiuZhenCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -74,9 +77,10 @@ public class HengYangJiuZhenCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
 //            log.info("credit YunHaiLianDongCreditService qualityCheck begin...userId:{}", userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
 
             String url = config.getString("checkUrl");
 

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/HengaiCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -32,7 +35,7 @@ import java.util.Date;
 @Slf4j
 public class HengaiCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -102,9 +105,10 @@ public class HengaiCreditService implements LoanDockingApi {
         try {
             log.info("credit HengaiCreditService qualityCheck begin...userId:{}", userInfo.getUserId());
 //            XdProductJointConfig xdProductJointConfig = xdProductJointConfigMapper.selectById(product.getJointType());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("恒爱对接参数:{}", JSON.toJSONString(config));
             CheckInfo checkInfo = new CheckInfo();
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/HongShengJinFuCreditService.java

@@ -5,8 +5,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -29,7 +32,7 @@ import javax.annotation.Resource;
 @Service
 public class HongShengJinFuCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -69,9 +72,10 @@ public class HongShengJinFuCreditService implements LoanDockingApi {
 
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("弘盛金服对接参数:{}", JSONObject.toJSONString(config));
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();
             String url = config.getString("checkUrl");

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/HongXinPuHuiCreditService.java

@@ -5,8 +5,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -28,7 +31,7 @@ import java.util.Map;
 public class HongXinPuHuiCreditService implements LoanDockingApi {
 
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -71,9 +74,10 @@ public class HongXinPuHuiCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit HongXinPuHuiCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("弘鑫普惠对接参数:{}", JSONObject.toJSONString(config));
             CheckInfo checkInfo = new CheckInfo();
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/HuNanDiShuiYanCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -28,7 +31,7 @@ import javax.crypto.spec.SecretKeySpec;
 @Service
 public class HuNanDiShuiYanCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -62,9 +65,10 @@ public class HuNanDiShuiYanCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit HuNanDiShuiYanCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("湖南滴水岩对接参数:{}", JSON.toJSONString(config));
             CheckInfo checkInfo=new CheckInfo();
             checkInfo.setPhone_md5(userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5());

+ 7 - 3
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/HuirongCrmCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -28,7 +31,7 @@ import java.util.*;
 @Slf4j
 public class HuirongCrmCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -62,8 +65,9 @@ public class HuirongCrmCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit HuirongCrmCreditService qualityCheck begin...userId:{}", userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            JSONObject huirongJointDTO = JSON.parseObject(apiInfo.getThreeSystemConfig());
+            EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            String config = HessianUtils.deserialize(loanApiConfigInfo.getRequestConfig()).toString();
+            JSONObject huirongJointDTO = JSON.parseObject(config);
             String url = huirongJointDTO.getString("checkUrl");
             CheckData checkData = new CheckData();
             if(StringUtils.isNotBlank(userInfo.getUserMobile())){

+ 6 - 3
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/HuixinCreditService.java

@@ -4,8 +4,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.StringDecodeUtils;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -30,7 +33,7 @@ import java.util.*;
 @Slf4j
 public class HuixinCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -91,8 +94,8 @@ public class HuixinCreditService implements LoanDockingApi {
         try {
             log.info("credit HuixinCreditService qualityCheck begin...userId:{}", userInfo.getUserId());
 //            XdProductJointConfig xdProductJointConfig = xdProductJointConfigMapper.selectById(product.getJointType());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
+            EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            String configJson = HessianUtils.deserialize(loanApiConfigInfo.getRequestConfig()).toString();
             JSONObject huiXinJointDTO = JSONObject.parseObject(configJson);
             log.info("汇鑫对接参数:{}", JSONObject.toJSONString(huiXinJointDTO));
 

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/HuizhongCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.vo.response.DataVo;
 import lombok.Data;
@@ -43,7 +46,7 @@ public class HuizhongCreditService implements LoanDockingApi {
     private final String prodUrl = "https://api.shlyxxjs.com";
 
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -93,9 +96,10 @@ public class HuizhongCreditService implements LoanDockingApi {
         try {
             log.info("credit HuizhongCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
 //            XdProductJointConfig xdProductJointConfig = xdProductJointConfigMapper.selectById(product.getJointType());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("惠众对接参数:{}", JSON.toJSONString(config));
             CheckInfo checkInfo = new CheckInfo();
             checkInfo.setPhoneNo(userInfo.getPhoneMd5());

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/JianZhanCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -30,7 +33,7 @@ import java.util.Map;
 @Service
 public class JianZhanCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -94,9 +97,10 @@ public class JianZhanCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto user, PlanDto product) {
         try {
             log.info("credit JianZhanCreditService qualityCheck begin...userId:{}", user.getPhoneMd5());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("建站100对接参数:{}", JSON.toJSONString(config));
             DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyyMMddHHmmss");
             // 获取当前日期时间

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/JiechengCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.vo.response.DataVo;
 import lombok.Data;
@@ -25,7 +28,7 @@ public class JiechengCreditService implements LoanDockingApi {
     private final String qualityCheckPath = "/api/yrh/index";
     private final String applyPath = "/api/yrh/orderadd";
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -48,9 +51,10 @@ public class JiechengCreditService implements LoanDockingApi {
         try {
             log.info("credit JiechengCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
 //            XdProductJointConfig xdProductJointConfig = xdProductJointConfigMapper.selectById(product.getJointType());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("捷诚对接参数:{}", JSON.toJSONString(config));
             CheckInfo checkInfo = new CheckInfo();
             checkInfo.setPhoneMd5(userInfo.getPhoneMd5());

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/JilingHuiRongCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -25,7 +28,7 @@ import javax.annotation.Resource;
 @Service
 public class JilingHuiRongCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -54,9 +57,10 @@ public class JilingHuiRongCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit JilingHuiRongCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("济宁惠融对接参数:{}", JSON.toJSONString(config));
             CheckInfo checkInfo = new CheckInfo();
             checkInfo.setMd5_phone(Md5Util.encoderByMd5(userInfo.getUserMobile()));

+ 7 - 3
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/JinDieV2CreditService.java

@@ -7,8 +7,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -32,7 +35,7 @@ import java.util.*;
 @Slf4j
 public class JinDieV2CreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -55,8 +58,9 @@ public class JinDieV2CreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit JindieV2CreditService qualityCheck begin...userId:{},productId={}", userInfo.getUserId(), product.getPlanId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
+            EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+
+            HessianUtils.deserialize(loanApiConfigInfo.getRequestConfig()).toString()
             if (StringUtils.isBlank(configJson)) {
                 return DataVo.fail(product.getPlanName(), product.getPlanId());
             }

+ 6 - 3
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/JinDieV3CreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.vo.response.DataVo;
 import lombok.Data;
@@ -24,7 +27,7 @@ import javax.annotation.Resource;
 @Slf4j
 public class JinDieV3CreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -60,8 +63,8 @@ public class JinDieV3CreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit JinDieV3CreditService qualityCheck begin...userId:{},productId={}", userInfo.getUserId(), product.getPlanId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
+            EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            String configJson = HessianUtils.deserialize(loanApiConfigInfo.getRequestConfig()).toString();
             if (StringUtils.isBlank(configJson)) {
                 return DataVo.fail(product.getPlanName(), product.getPlanId());
             }

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/JinDieV4CreditService.java

@@ -4,8 +4,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -23,7 +26,7 @@ import javax.annotation.Resource;
 public class JinDieV4CreditService implements LoanDockingApi {
 
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -44,9 +47,10 @@ public class JinDieV4CreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit JinDieV4CreditService qualityCheck begin...userId:{}", userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("锦蝶v4对接参数:{}", JSONObject.toJSONString(config));
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();
             CheckInfo checkInfo = new CheckInfo();

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/JinZhuLiCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -24,7 +27,7 @@ import javax.annotation.Resource;
 @Service
 public class JinZhuLiCreditService  implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -77,9 +80,10 @@ public class JinZhuLiCreditService  implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit JinZhuLiCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
 
             log.info("金助理对接参数:{}", JSON.toJSONString(config));
 

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/JindieCreditService.java

@@ -7,8 +7,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.vo.response.DataVo;
 import lombok.Data;
@@ -25,7 +28,7 @@ public class JindieCreditService implements LoanDockingApi {
     private final String qualityCheckPath = "/erp/api/ifRepeatmd5";
     private final String applyPath = "/erp/api/addclue";
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -47,9 +50,10 @@ public class JindieCreditService implements LoanDockingApi {
         try {
             log.info("credit JindieCreditService qualityCheck begin...userId:{}", userInfo.getUserId());
 //            XdProductJointConfig xdProductJointConfig = xdProductJointConfigMapper.selectById(product.getJointType());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("锦蝶对接参数:{}", JSON.toJSONString(config));
             CheckInfo checkInfo = new CheckInfo();
 

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/JiuXinKeCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -26,7 +29,7 @@ import javax.annotation.Resource;
 public class JiuXinKeCreditService implements LoanDockingApi {
 
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -55,9 +58,10 @@ public class JiuXinKeCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit JiuXinKeCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("玖欣客对接参数:{}", JSON.toJSONString(config));
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();
             String url = config.getString("checkUrl");

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/KuaiYiRongCreditService.java

@@ -7,8 +7,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -27,7 +30,7 @@ import javax.annotation.Resource;
 @Service
 public class KuaiYiRongCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -57,9 +60,10 @@ public class KuaiYiRongCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit KuaiYiRongCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("快易融对接参数:{}", JSON.toJSONString(config));
             CheckInfo checkInfo = new CheckInfo();
             checkInfo.setMd5_phone(Md5Util.encoderByMd5(userInfo.getUserMobile()));

+ 6 - 3
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/KuaiyidaiCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.vo.response.DataVo;
 import lombok.Data;
@@ -23,7 +26,7 @@ import java.util.*;
 @Slf4j
 public class KuaiyidaiCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -63,8 +66,8 @@ public class KuaiyidaiCreditService implements LoanDockingApi {
         try {
             log.info("credit KuaiyidaiCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
 //            XdProductJointConfig xdProductJointConfig = xdProductJointConfigMapper.selectById(product.getJointType());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
+            EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            String configJson = HessianUtils.deserialize(loanApiConfigInfo.getRequestConfig()).toString();
             JSONObject kuaiyidaiJointDTO = JSONObject.parseObject(configJson);
             log.info("快易贷对接参数:{}", JSON.toJSONString(kuaiyidaiJointDTO));
 

+ 6 - 3
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/KuaiyidaiFourToOneCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.vo.response.DataVo;
 import lombok.Data;
@@ -24,7 +27,7 @@ import java.util.*;
 @Slf4j
 public class KuaiyidaiFourToOneCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -58,8 +61,8 @@ public class KuaiyidaiFourToOneCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit KuaiyidaiCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
+            EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            String configJson = HessianUtils.deserialize(loanApiConfigInfo.getRequestConfig()).toString();
             JSONObject kuaiyidaiJointDTO = JSON.parseObject(configJson);
             log.info("快易贷对接参数:{}", JSON.toJSONString(kuaiyidaiJointDTO));
 

+ 6 - 3
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/KuaiyidaiNightCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.vo.response.DataVo;
 import lombok.Data;
@@ -25,7 +28,7 @@ import java.util.*;
 @Slf4j
 public class KuaiyidaiNightCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -62,8 +65,8 @@ public class KuaiyidaiNightCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit KuaiyidaiCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
+            EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            String configJson = HessianUtils.deserialize(loanApiConfigInfo.getRequestConfig()).toString();
             JSONObject kuaiyidaiJointDTO = JSON.parseObject(configJson);
             log.info("快易贷对接参数:{}", JSON.toJSONString(kuaiyidaiJointDTO));
 

+ 6 - 3
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/KuaiyidaiV2CreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.vo.response.DataVo;
 import lombok.Data;
@@ -23,7 +26,7 @@ import java.util.*;
 @Slf4j
 public class KuaiyidaiV2CreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -69,8 +72,8 @@ public class KuaiyidaiV2CreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit KuaiyidaiCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
+            EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            String configJson = HessianUtils.deserialize(loanApiConfigInfo.getRequestConfig()).toString();
             JSONObject kuaiyidaiJointDTO = JSON.parseObject(configJson);
             log.info("快易贷对接参数:{}", JSON.toJSONString(kuaiyidaiJointDTO));
 

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/KunMingXiaoSongShuCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -29,7 +32,7 @@ import java.util.Map;
 @Service
 public class KunMingXiaoSongShuCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -56,9 +59,10 @@ public class KunMingXiaoSongShuCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit KunMingXiaoSongShuCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("昆明小松鼠代对接参数:{}", JSON.toJSONString(config));
             CheckInfo checkInfo = new CheckInfo();
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/LeXiangRongCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -24,7 +27,7 @@ import javax.annotation.Resource;
 @Service
 public class LeXiangRongCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -46,9 +49,10 @@ public class LeXiangRongCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit LeXiangRongCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("乐享融对接参数:{}", JSON.toJSONString(config));
             CheckInfo checkInfo = new CheckInfo();
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/LianKeYunKongCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.infrastructure.utils.RSAUtils;
@@ -30,7 +33,7 @@ import java.time.Instant;
 @Service
 public class LianKeYunKongCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -78,9 +81,10 @@ public class LianKeYunKongCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit LianKeYunKongCreditService qualityCheck begin...userId:{}", userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("链客云控对接参数:{}", JSON.toJSONString(config));
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();
             CheckInfo checkInfo = new CheckInfo();

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/LiaoChengXinYiDaiCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -25,7 +28,7 @@ import javax.annotation.Resource;
 @Service
 public class LiaoChengXinYiDaiCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -62,9 +65,10 @@ public class LiaoChengXinYiDaiCreditService implements LoanDockingApi {
         try {
             log.info("credit LiaoChengXinYiDaiCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
 //            XdProductJointConfig xdProductJointConfig = xdProductJointConfigMapper.selectById(product.getJointType());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("聊城鑫易代对接参数:{}", JSON.toJSONString(config));
             CheckInfo checkInfo = new CheckInfo();
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/MoGuTouCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -27,7 +30,7 @@ import java.util.Random;
 @Service
 public class MoGuTouCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -52,9 +55,10 @@ public class MoGuTouCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit SouYuJinFuCreditService qualityCheck begin...userId:{}", userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("蘑菇投对接参数:{}", JSON.toJSONString(config));
             CheckInfo checkInfo = new CheckInfo();
             checkInfo.setMd5Code((userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5()));

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/NanTongXingChengCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.infrastructure.utils.RSAUtils;
@@ -29,7 +32,7 @@ import java.util.concurrent.TimeUnit;
 @Service
 public class NanTongXingChengCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -61,9 +64,10 @@ public class NanTongXingChengCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit NanTongXingChengCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("南通星辰对接参数:{}", JSON.toJSONString(config));
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();
             CheckInfo checkInfo = new CheckInfo();

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/NiYouKeCreditService.java

@@ -5,8 +5,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -23,7 +26,7 @@ import javax.annotation.Resource;
 @Service
 public class NiYouKeCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -44,9 +47,10 @@ public class NiYouKeCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit NiYouKeCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("尼优客对接参数:{}", JSONObject.toJSONString(config));
             CheckInfo checkInfo = new CheckInfo();
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/NingBoTianChengCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -26,7 +29,7 @@ import javax.annotation.Resource;
 public class NingBoTianChengCreditService implements LoanDockingApi {
 
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -61,9 +64,10 @@ public class NingBoTianChengCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit NingBoTianChengCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("宁波天澄对接参数:{}", JSON.toJSONString(config));
             CheckInfo checkInfo = new CheckInfo();
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/OpenApiAesCreditService.java

@@ -5,8 +5,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.vo.response.DataVo;
 import lombok.Data;
@@ -23,7 +26,7 @@ import java.util.Objects;
 @Service
 public class OpenApiAesCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -53,9 +56,10 @@ public class OpenApiAesCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         log.info("credit OpenApiAesCreditService qualityCheck begin...userId:{}", userInfo.getUserId());
         try {
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
 
             String url = config.getString("checkUrl");
 

+ 9 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/OpenApiCreditService.java

@@ -5,8 +5,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.vo.response.DataVo;
 import lombok.Data;
@@ -27,7 +30,7 @@ import java.util.Objects;
 public class OpenApiCreditService implements LoanDockingApi {
 
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -57,14 +60,16 @@ public class OpenApiCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         log.info("credit OpenApiCreditService qualityCheck begin...userId:{}", userInfo.getUserId());
         try {
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            if (StringUtils.isAnyEmpty(apiInfo.getOpenapiCheckUrl(), apiInfo.getOpenapiAccessKeySecret())) {
+            EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            String config = HessianUtils.deserialize(loanApiConfigInfo.getRequestConfig()).toString();
+            JSONObject jsonObject = JSONObject.parseObject(config);
+            if (StringUtils.isAnyEmpty(jsonObject.getString("openapiCheckUrl"), jsonObject.getString("openapiAccessKeySecret"))) {
                 return DataVo.fail(product.getPlanName(), product.getPlanId());
             }
             CheckInfo checkInfo = new CheckInfo();
             checkInfo.setPhoneMd5(userInfo.getPhoneMd5());
             checkInfo.setCity(userInfo.getCompanyCity());
-            String url = apiInfo.getOpenapiCheckUrl();
+            String url = jsonObject.getString("openapiCheckUrl");
             log.info("credit qualityCheck OpenApiCreditService request userId:{}, url:{}, CheckInfo:{}", userInfo.getUserId(), url, checkInfo);
             Result response = null;
             try {

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/PingDingShanCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -34,7 +37,7 @@ import java.util.Base64;
 public class PingDingShanCreditService implements LoanDockingApi {
 
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -56,9 +59,10 @@ public class PingDingShanCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit PingDingShanCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("平顶山对接参数:{}", JSON.toJSONString(config));
             CheckInfo checkInfo = new CheckInfo();
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/PingXunCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.infrastructure.utils.StringDecodeUtils;
@@ -43,7 +46,7 @@ public class PingXunCreditService implements LoanDockingApi {
 
 
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -75,9 +78,10 @@ public class PingXunCreditService implements LoanDockingApi {
         try {
             log.info("credit PingXunCreditService qualityCheck begin...userId:{}", userInfo.getUserId());
 //            XdProductJointConfig xdProductJointConfig = xdProductJointConfigMapper.selectById(product.getJointType());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("平讯对接参数:{}", JSON.toJSONString(config));
 
 //            LambdaQueryWrapper<XdUserBasicInfo> queryWrapper = new LambdaQueryWrapper<>();

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/QingDaoAoSengCreditService.java

@@ -4,8 +4,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -24,7 +27,7 @@ import javax.annotation.Resource;
 public class QingDaoAoSengCreditService implements LoanDockingApi {
 
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -42,9 +45,10 @@ public class QingDaoAoSengCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
 //            log.info("credit YunHaiLianDongCreditService qualityCheck begin...userId:{}", userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
 
             CheckInfo checkInfo = new CheckInfo();
             checkInfo.setCode((userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5()));

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/QingDaoAoSengV2CreditService.java

@@ -5,8 +5,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -25,7 +28,7 @@ import javax.annotation.Resource;
 public class QingDaoAoSengV2CreditService implements LoanDockingApi {
 
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -44,9 +47,10 @@ public class QingDaoAoSengV2CreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
 //            log.info("credit YunHaiLianDongCreditService qualityCheck begin...userId:{}", userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
 
             CheckInfo checkInfo = new CheckInfo();
             checkInfo.setCode((userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5()));

+ 6 - 3
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/QingyuCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -30,7 +33,7 @@ public class QingyuCreditService implements LoanDockingApi {
     private final String applyPath = "/openapi/interface/save/customer";
 
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -54,8 +57,8 @@ public class QingyuCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit QingyuCreditService qualityCheck begin...userId:{},productId={}", userInfo.getUserId(), product.getPlanId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
+            EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            String configJson = HessianUtils.deserialize(loanApiConfigInfo.getRequestConfig()).toString();
             if (StringUtils.isBlank(configJson)) {
                 return DataVo.timeout(product.getPlanId(), product.getPlanName());
             }

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/QingyuV2CreditService.java

@@ -7,8 +7,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -36,7 +39,7 @@ public class QingyuV2CreditService implements LoanDockingApi {
     private final String prefix = "/openapi";
 
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -58,9 +61,10 @@ public class QingyuV2CreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit QingyuV2CreditService qualityCheck begin...userId:{},productId={}", userInfo.getUserId(), product.getPlanId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("庆鱼V2.0对接参数:{}", JSON.toJSONString(config));
             V2Req checkInfo = new V2Req();
             checkInfo.setAccessKey(config.getString("accessKey"));

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/QingyuV3CreditService.java

@@ -7,8 +7,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -29,7 +32,7 @@ import java.util.*;
 public class QingyuV3CreditService implements LoanDockingApi {
 
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -55,9 +58,10 @@ public class QingyuV3CreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit QingyuV3CreditService qualityCheck begin...userId:{},productId={}", userInfo.getUserId(), product.getPlanName());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("庆鱼V3.0对接参数:{}", JSON.toJSONString(config));
             V3Req checkInfo = new V3Req();
             checkInfo.setAccessKey(config.getString("accessKey"));

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/RongChuangJinFuCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -30,7 +33,7 @@ import java.security.Key;
 @Service
 public class RongChuangJinFuCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -50,9 +53,10 @@ public class RongChuangJinFuCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit RongChuangJinFuCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("融创金服对接参数:{}", JSON.toJSONString(config));
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();
             CheckInfo checkInfo = new CheckInfo();

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/RongXiangDaChangShaCreditService.java

@@ -5,8 +5,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -29,7 +32,7 @@ import java.util.Base64;
 @Service
 public class RongXiangDaChangShaCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -66,9 +69,10 @@ public class RongXiangDaChangShaCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit RongXiangDaChangShaCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("融享达长沙对接参数:{}", JSONObject.toJSONString(config));
             CheckInfo checkInfo = new CheckInfo();
             String phoneMd5 = userInfo.getPhoneMd5() == null ? convertMD5ToUpperCase(Md5Util.encoderByMd5(userInfo.getUserMobile())) : convertMD5ToUpperCase(userInfo.getPhoneMd5());

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/RongXiangKeBuShuCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -30,7 +33,7 @@ import java.util.Base64;
 @Service
 public class RongXiangKeBuShuCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -70,9 +73,10 @@ public class RongXiangKeBuShuCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit RongXiangKeBuShuCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("融享客部署模式对接参数:{}", JSON.toJSONString(config));
             CheckInfo checkInfo = new CheckInfo();
             String phoneMd5 = userInfo.getPhoneMd5() == null ? convertMD5ToUpperCase(Md5Util.encoderByMd5(userInfo.getUserMobile())) : convertMD5ToUpperCase(userInfo.getPhoneMd5());

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/RongXiangKeV2CreditService.java

@@ -5,8 +5,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -30,7 +33,7 @@ import java.util.Base64;
 @Component
 public class RongXiangKeV2CreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -67,9 +70,10 @@ public class RongXiangKeV2CreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit RongXiangKeV2CreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("融享客V2对接参数:{}", JSONObject.toJSONString(config));
             CheckInfo checkInfo = new CheckInfo();
             String phoneMd5 = userInfo.getPhoneMd5() == null ? convertMD5ToUpperCase(Md5Util.encoderByMd5(userInfo.getUserMobile())) : convertMD5ToUpperCase(userInfo.getPhoneMd5());

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/RongYiDaCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.DateUtil;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
@@ -32,7 +35,7 @@ import java.util.Date;
 @Service
 public class RongYiDaCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -65,9 +68,10 @@ public class RongYiDaCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit RongYiDaCreditService qualityCheck begin...userId:{}", userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("融易达对接参数:{}", JSON.toJSONString(config));
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();
             CheckInfo checkInfo = new CheckInfo();

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/RongkedaiCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.vo.response.DataVo;
 import lombok.extern.slf4j.Slf4j;
@@ -33,7 +36,7 @@ public class RongkedaiCreditService implements LoanDockingApi {
     }
 
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -50,9 +53,10 @@ public class RongkedaiCreditService implements LoanDockingApi {
         try {
             log.info("credit RongkedaiCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
 //            XdProductJointConfig xdProductJointConfig = xdProductJointConfigMapper.selectById(product.getJointType());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("融客贷对接参数:{}", JSONObject.toJSONString(config));
             HttpHeaders headers = new HttpHeaders();
             headers.setContentType(MediaType.APPLICATION_FORM_URLENCODED);

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/RongshengCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.RedisUtil;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -44,7 +47,7 @@ public class RongshengCreditService implements LoanDockingApi {
 
     private final static String RedisKey = "Rongsheng:api:%s";
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -73,9 +76,10 @@ public class RongshengCreditService implements LoanDockingApi {
         try {
             log.info("credit RongshengCreditService qualityCheck begin...userId:{}", userInfo.getUserId());
 //            XdProductJointConfig xdProductJointConfig = xdProductJointConfigMapper.selectById(product.getJointType());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("荣晟对接参数:{}", JSON.toJSONString(config));
             String md5Phone = userInfo.getPhoneMd5();
             String aesKey = AesUtil.getKey();

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/RongxiziCreditService.java

@@ -4,8 +4,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.vo.response.DataVo;
 import lombok.Data;
@@ -27,7 +30,7 @@ import java.util.*;
 @Slf4j
 public class RongxiziCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -62,9 +65,10 @@ public class RongxiziCreditService implements LoanDockingApi {
         try {
             log.info("credit RongxiziCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
 //            XdProductJointConfig xdProductJointConfig = xdProductJointConfigMapper.selectById(product.getJointType());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("荣西子对接参数:{}", JSONObject.toJSONString(config));
             String url = qualityCheckPath;
             log.info("credit qualityCheck RongxiziCreditService request userId:{}, url:{}",userInfo.getUserId(), url);

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/RunMeiXinYiRongCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -25,7 +28,7 @@ import javax.annotation.Resource;
 @Service
 public class RunMeiXinYiRongCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -46,9 +49,10 @@ public class RunMeiXinYiRongCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit RunMeiXinYiRongCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("润美对接参数:{}", JSON.toJSONString(config));
             CheckInfo checkInfo = new CheckInfo();
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();

+ 8 - 6
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/RxkCreditService.java

@@ -6,9 +6,10 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
-import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
-import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.vo.response.DataVo;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
@@ -27,7 +28,7 @@ import java.util.Objects;
 @Service
 public class RxkCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -70,9 +71,10 @@ public class RxkCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         log.info("credit RxkCreditService qualityCheck begin...userId:{}", userInfo.getUserId());
         try {
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("融享客对接参数:{}", JSON.toJSONString(config));
 
             CheckInfo checkInfo = new CheckInfo();

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/ShanDongBangBangDaiCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -31,7 +34,7 @@ import java.util.Map;
 public class ShanDongBangBangDaiCreditService implements LoanDockingApi {
 
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -48,9 +51,10 @@ public class ShanDongBangBangDaiCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit ShanDongBangBangDaiCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("山东帮帮代对接参数:{}", JSON.toJSONString(config));
             CheckInfo checkInfo = new CheckInfo();
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/ShanXiHengShengDaiCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -36,7 +39,7 @@ import java.util.Base64;
 public class ShanXiHengShengDaiCreditService implements LoanDockingApi {
 
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -69,9 +72,10 @@ public class ShanXiHengShengDaiCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit ShanXiHengShengDaiCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("山西恒昇对接参数:{}", JSON.toJSONString(config));
             CheckInfo checkInfo = new CheckInfo();
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/ShanXiMingDePuHuiCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -29,7 +32,7 @@ import java.nio.charset.StandardCharsets;
 public class ShanXiMingDePuHuiCreditService implements LoanDockingApi {
 
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -60,9 +63,10 @@ public class ShanXiMingDePuHuiCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit ShanXiMingDePuHuiCreditService qualityCheck begin...userId:{}", userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("陕西明德普惠对接参数:{}", JSON.toJSONString(config));
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();
             String url = config.getString("checkUrl");

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/ShangHaiHanGeCreditService.java

@@ -5,8 +5,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -29,7 +32,7 @@ import javax.annotation.Resource;
 @Component
 public class ShangHaiHanGeCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -48,9 +51,10 @@ public class ShangHaiHanGeCreditService implements LoanDockingApi {
     @Override
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("上海晗各对接参数:{}", JSONObject.toJSONString(config));
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();
             String url = config.getString("checkUrl");

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/ShangHaiJuHuiRongCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -23,7 +26,7 @@ import javax.annotation.Resource;
 @Service
 public class ShangHaiJuHuiRongCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -43,9 +46,10 @@ public class ShangHaiJuHuiRongCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit ShangHaiJuHuiRongCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("上海聚汇融对接参数:{}", JSON.toJSONString(config));
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();
             CheckInfo checkInfo = new CheckInfo();

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/ShenLuoJinFuCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -29,7 +32,7 @@ import java.util.Map;
 @Component
 public class ShenLuoJinFuCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -52,9 +55,10 @@ public class ShenLuoJinFuCreditService implements LoanDockingApi {
     @Override
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("盛略金服对接参数:{}", JSON.toJSONString(config));
             CheckInfo checkInfo = new CheckInfo();
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/ShenYangHengXinCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -32,7 +35,7 @@ import java.util.*;
 public class ShenYangHengXinCreditService implements LoanDockingApi {
 
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -51,9 +54,10 @@ public class ShenYangHengXinCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit ShenYangHengXinCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("沈阳恒信对接参数:{}", JSON.toJSONString(config));
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();
             Map<String, String> requestData = new HashMap<>();

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/ShenYangXinYiRongCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -27,7 +30,7 @@ import javax.annotation.Resource;
 public class ShenYangXinYiRongCreditService implements LoanDockingApi {
 
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -48,9 +51,10 @@ public class ShenYangXinYiRongCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit ShenYangXinYiRongCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("沈阳信易融对接参数:{}", JSON.toJSONString(config));
             CheckInfo checkInfo = new CheckInfo();
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/ShiYueCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -30,7 +33,7 @@ import java.util.*;
 @Service
 public class ShiYueCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -60,9 +63,10 @@ public class ShiYueCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit ShiYueCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("司跃对接参数:{}", JSON.toJSONString(config));
 
             Map<String, String> map = new HashMap<>();

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/ShuRongCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -25,7 +28,7 @@ import javax.annotation.Resource;
 @Service
 public class ShuRongCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -54,9 +57,10 @@ public class ShuRongCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit ShuRongCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("速融对接参数:{}", JSON.toJSONString(config));
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();
             CheckInfo checkInfo = new CheckInfo();

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/SiChuangRuiCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -29,7 +32,7 @@ import javax.crypto.spec.SecretKeySpec;
 public class SiChuangRuiCreditService implements LoanDockingApi {
 
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -63,9 +66,10 @@ public class SiChuangRuiCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit SiChuangRuiCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("思创瑞对接参数:{}", JSON.toJSONString(config));
             CheckInfo checkInfo = new CheckInfo();
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/SouYuJinFuCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -33,7 +36,7 @@ import java.util.Base64;
 @Service
 public class SouYuJinFuCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -53,9 +56,10 @@ public class SouYuJinFuCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit SouYuJinFuCreditService qualityCheck begin...userId:{}", userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("授渔金服对接参数:{}", JSON.toJSONString(config));
             CheckInfo checkInfo = new CheckInfo();
             checkInfo.setPhone((userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5()));

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/SuZhouJianYiRongCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -25,7 +28,7 @@ import javax.annotation.Resource;
 @Service
 public class SuZhouJianYiRongCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -54,9 +57,10 @@ public class SuZhouJianYiRongCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit SuZhouJianYiRongCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("苏州简易融对接参数:{}", JSON.toJSONString(config));
             CheckInfo checkInfo = new CheckInfo();
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/SuzhouchangshuoCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -29,7 +32,7 @@ import javax.crypto.spec.SecretKeySpec;
 @Slf4j
 public class SuzhouchangshuoCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -69,9 +72,10 @@ public class SuzhouchangshuoCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit SuzhouchangshuoCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("苏州昌硕对接参数:{}", JSON.toJSONString(config));
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();
             /*checkInfo.setPhoneMd5(phoneMd5);

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/TangShanRongYangCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -24,7 +27,7 @@ import javax.annotation.Resource;
 public class TangShanRongYangCreditService implements LoanDockingApi {
 
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -43,9 +46,10 @@ public class TangShanRongYangCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit TangShanRongYangCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("唐山融扬对接参数:{}", JSON.toJSONString(config));
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();
             String url = config.getString("checkUrl");

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/TianJingJiaYiCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -27,7 +30,7 @@ import javax.crypto.spec.SecretKeySpec;
 @Service
 public class TianJingJiaYiCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -55,9 +58,10 @@ public class TianJingJiaYiCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit TianJingJiaYiCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("天津佳亿对接参数:{}", JSON.toJSONString(config));
             CheckInfo checkInfo = new CheckInfo();
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/TianShuiShuYiRongCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -24,7 +27,7 @@ import javax.annotation.Resource;
 @Service
 public class TianShuiShuYiRongCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -39,9 +42,10 @@ public class TianShuiShuYiRongCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit TianShuiShuYiRongCreditService qualityCheck begin...userId:{}", userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("天水速易融对接参数:{}", JSON.toJSONString(config));
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();
             String checkUrl = config.getString("checkUrl");

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/TuoBaoRongCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.vo.response.DataVo;
 import lombok.Data;
@@ -33,7 +36,7 @@ public class TuoBaoRongCreditService implements LoanDockingApi {
     private static final String applyPath = "api/apply";
 
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -58,9 +61,10 @@ public class TuoBaoRongCreditService implements LoanDockingApi {
         try {
             log.info("credit TuoBaoRongCreditService qualityCheck begin...userId:{}", userInfo.getUserId());
 //            XdProductJointConfig xdProductJointConfig = xdProductJointConfigMapper.selectById(product.getJointType());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("拓宝荣对接参数:{}", JSON.toJSONString(config));
             CheckInfo checkInfo = new CheckInfo();
             checkInfo.setMd5_mobile(userInfo.getPhoneMd5());

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/WeiFangHuaShenCreditService.java

@@ -6,8 +6,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -30,7 +33,7 @@ import java.util.*;
 public class WeiFangHuaShenCreditService implements LoanDockingApi {
 
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -59,9 +62,10 @@ public class WeiFangHuaShenCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit WeiFangHuaShenCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("潍坊华盛对接参数:{}", JSON.toJSONString(config));
             CheckInfo checkInfo = new CheckInfo();
             String phoneMd5 = userInfo.getPhoneMd5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getPhoneMd5();

+ 8 - 4
egress-gateway-service-app/src/main/java/com/hrsk/cloud/eg/app/threedocking/impl/WeiFangYouYiCreditService.java

@@ -5,8 +5,11 @@ import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
 import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.dto.data.egPlan.PlanDto;
 import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoDto;
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
+import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
 import com.hrsk.cloud.eg.infrastructure.repository.database.entity.ProductBusinessApiInfoDo;
+import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.ProductBusinessApiInfoService;
 import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
 import com.hrsk.cloud.eg.vo.response.DataVo;
@@ -25,7 +28,7 @@ import javax.annotation.Resource;
 @Service
 public class WeiFangYouYiCreditService implements LoanDockingApi {
     @Resource
-    private ProductBusinessApiInfoService apiInfoService;
+    private EgApiService egApiService;
 
     @Resource
     private RetryRestTemplate httpRestTemplate;
@@ -54,9 +57,10 @@ public class WeiFangYouYiCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoDto userInfo, PlanDto product) {
         try {
             log.info("credit WeiFangYouYiCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-            ProductBusinessApiInfoDo apiInfo = apiInfoService.getById(product.getApiId());
-            String configJson = apiInfo.getThreeSystemConfig();
-            JSONObject config = JSONObject.parseObject(configJson);
+           EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
+            byte[] requestConfig = loanApiConfigInfo.getRequestConfig();
+            Object deserialize = HessianUtils.deserialize(requestConfig);
+            JSONObject config = JSONObject.parseObject(deserialize.toString());
             log.info("潍坊优易对接参数:{}", JSON.toJSONString(config));
             CheckInfo checkInfo = new CheckInfo();
             checkInfo.setMd5_phone(Md5Util.encoderByMd5(userInfo.getUserMobile()));

Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff