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

+ 11 - 4
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/BaiXinShunTaiCreditService.java

@@ -7,11 +7,17 @@ import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.vo.DataVo;
 import com.hrsk.cloud.eg.client.vo.DataVo;
+import com.hrsk.cloud.eg.domain.api.channel.customized.common.ServerCodeEnums;
 import com.hrsk.cloud.eg.domain.api.channel.customized.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.domain.api.channel.customized.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.domain.api.channel.guide.http.HttpApiRequest;
 import com.hrsk.cloud.eg.domain.api.channel.guide.http.HttpApiRequest;
+import com.hrsk.cloud.eg.domain.api.channel.guide.http.HttpApiRequestConfig;
 import com.hrsk.cloud.eg.domain.api.channel.guide.http.HttpApiResponse;
 import com.hrsk.cloud.eg.domain.api.channel.guide.http.HttpApiResponse;
+import com.hrsk.cloud.eg.domain.common.DateUtil;
+import com.hrsk.cloud.eg.domain.common.HessianUtils;
+import com.hrsk.cloud.eg.domain.common.Md5Util;
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
+import org.apache.commons.codec.binary.Base64;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
 
 
 import javax.crypto.BadPaddingException;
 import javax.crypto.BadPaddingException;
@@ -83,7 +89,7 @@ public class BaiXinShunTaiCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd configInfo, Function<HttpApiRequest, HttpApiResponse> httpClientFunc)  {
     public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd configInfo, Function<HttpApiRequest, HttpApiResponse> httpClientFunc)  {
         try {
         try {
             log.info("credit QingDaoBaiXinShunTaiCreditService qualityCheck begin...userId:{}", userInfo.getUserId());
             log.info("credit QingDaoBaiXinShunTaiCreditService qualityCheck begin...userId:{}", userInfo.getUserId());
-          
+
             byte[] requestConfig = configInfo.getRequestConfig();
             byte[] requestConfig = configInfo.getRequestConfig();
             Object deserialize = HessianUtils.deserialize(requestConfig);
             Object deserialize = HessianUtils.deserialize(requestConfig);
             JSONObject config = JSONObject.parseObject(deserialize.toString());
             JSONObject config = JSONObject.parseObject(deserialize.toString());
@@ -98,9 +104,10 @@ public class BaiXinShunTaiCreditService implements LoanDockingApi {
             requestParam.setMerchantNo(config.getString("merchantNo"));
             requestParam.setMerchantNo(config.getString("merchantNo"));
             String url = config.getString("checkUrl");
             String url = config.getString("checkUrl");
             log.info("credit qualityCheck QingDaoBaiXinShunTaiCreditService request userId:{}, url:{}, CheckInfo:{}", userInfo.getUserId(), url, phoneMd5);
             log.info("credit qualityCheck QingDaoBaiXinShunTaiCreditService request userId:{}, url:{}, CheckInfo:{}", userInfo.getUserId(), url, phoneMd5);
-            String response = null;
+            HttpApiResponse response = null;
             try {
             try {
-                response = httpRestTemplate.restTemplate().postForObject(url, requestParam, String.class);
+                HttpApiRequest request=new HttpApiRequest(HttpApiRequestConfig.postRequest(JSON.toJSONString(requestParam),"post",url));
+                response =httpClientFunc.apply(request);
             } catch (Exception e) {
             } catch (Exception e) {
                 log.error("青岛佰信顺泰准入异常,异常信息:{}", e.getMessage(), e);
                 log.error("青岛佰信顺泰准入异常,异常信息:{}", e.getMessage(), e);
             }
             }
@@ -108,7 +115,7 @@ public class BaiXinShunTaiCreditService implements LoanDockingApi {
             if (response == null) {
             if (response == null) {
                 return DataVo.timeout(product.getPlanName());
                 return DataVo.timeout(product.getPlanName());
             }
             }
-            JSONObject jsonObject = JSONObject.parseObject(response);
+            JSONObject jsonObject = JSONObject.parseObject(response.getData().toString());
             if (jsonObject == null) {
             if (jsonObject == null) {
                 return DataVo.timeout(product.getPlanName());
                 return DataVo.timeout(product.getPlanName());
             }
             }

+ 10 - 15
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/BaiYiJinFuCreditService.java

@@ -2,20 +2,20 @@ package com.hrsk.cloud.eg.domain.api.channel.customized.threedocking.impl;
 
 
 import com.alibaba.fastjson2.JSON;
 import com.alibaba.fastjson2.JSON;
 import com.alibaba.fastjson2.JSONObject;
 import com.alibaba.fastjson2.JSONObject;
+import com.google.common.base.Function;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
-import com.hrsk.cloud.eg.infrastructure.utils.RedisUtil;
+
+import com.hrsk.cloud.eg.client.vo.DataVo;
+import com.hrsk.cloud.eg.domain.api.channel.customized.threedocking.LoanDockingApi;
+import com.hrsk.cloud.eg.domain.api.channel.guide.http.HttpApiRequest;
+import com.hrsk.cloud.eg.domain.api.channel.guide.http.HttpApiResponse;
+import com.hrsk.cloud.eg.domain.common.HessianUtils;
+import com.hrsk.cloud.eg.domain.common.Md5Util;
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.apache.commons.lang3.StringUtils;
 import org.apache.commons.lang3.StringUtils;
-import org.apache.http.HttpResponse;
-import org.apache.http.util.EntityUtils;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
 
 
 import javax.annotation.Resource;
 import javax.annotation.Resource;
@@ -31,11 +31,6 @@ import java.util.concurrent.TimeUnit;
 @Service
 @Service
 public class BaiYiJinFuCreditService implements LoanDockingApi {
 public class BaiYiJinFuCreditService implements LoanDockingApi {
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
-
-    @Resource
-    private EgApiService egApiService;
 
 
 
 
     @Data
     @Data
@@ -84,10 +79,10 @@ public class BaiYiJinFuCreditService implements LoanDockingApi {
      * @param product
      * @param product
      * @return
      * @return
      */
      */
-    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd configInfo)  {
+    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd    configInfo, Function<HttpApiRequest, HttpApiResponse> httpClientFunc)  {
         try {
         try {
             log.info("credit BaiYiJinFuCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
             log.info("credit BaiYiJinFuCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-          
+
             byte[] requestConfig = configInfo.getRequestConfig();
             byte[] requestConfig = configInfo.getRequestConfig();
             Object deserialize = HessianUtils.deserialize(requestConfig);
             Object deserialize = HessianUtils.deserialize(requestConfig);
             JSONObject config = JSONObject.parseObject(deserialize.toString());
             JSONObject config = JSONObject.parseObject(deserialize.toString());

+ 16 - 18
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/BeiJingChongHeCreditService.java

@@ -1,20 +1,23 @@
 package com.hrsk.cloud.eg.domain.api.channel.customized.threedocking.impl;
 package com.hrsk.cloud.eg.domain.api.channel.customized.threedocking.impl;
 
 
+import com.alibaba.fastjson2.JSON;
 import com.alibaba.fastjson2.JSONObject;
 import com.alibaba.fastjson2.JSONObject;
+import com.google.common.base.Function;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+import com.hrsk.cloud.eg.client.vo.DataVo;
+import com.hrsk.cloud.eg.domain.api.channel.customized.common.ServerCodeEnums;
+import com.hrsk.cloud.eg.domain.api.channel.customized.threedocking.LoanDockingApi;
+import com.hrsk.cloud.eg.domain.api.channel.guide.http.HttpApiRequest;
+import com.hrsk.cloud.eg.domain.api.channel.guide.http.HttpApiRequestConfig;
+import com.hrsk.cloud.eg.domain.api.channel.guide.http.HttpApiResponse;
+import com.hrsk.cloud.eg.domain.common.HessianUtils;
+import com.hrsk.cloud.eg.domain.common.Md5Util;
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.apache.commons.codec.binary.Base64;
 import org.apache.commons.codec.binary.Base64;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
-
-import javax.annotation.Resource;
 import javax.crypto.Cipher;
 import javax.crypto.Cipher;
 import javax.crypto.spec.SecretKeySpec;
 import javax.crypto.spec.SecretKeySpec;
 
 
@@ -26,12 +29,6 @@ import javax.crypto.spec.SecretKeySpec;
 @Service
 @Service
 public class BeiJingChongHeCreditService implements LoanDockingApi {
 public class BeiJingChongHeCreditService implements LoanDockingApi {
 
 
-    @Resource
-    private EgApiService egApiService;
-
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
-
 
 
     @Override
     @Override
     public ServerCodeEnums getType() {
     public ServerCodeEnums getType() {
@@ -166,10 +163,10 @@ public class BeiJingChongHeCreditService implements LoanDockingApi {
      * @return
      * @return
      *  {"channel_code":"34","checkUrl":"http://120.46.41.14:8888/api/customer/collisionLibrary","channel_secret_key":"HrYk20230829KYR6"}
      *  {"channel_code":"34","checkUrl":"http://120.46.41.14:8888/api/customer/collisionLibrary","channel_secret_key":"HrYk20230829KYR6"}
      */
      */
-    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd configInfo)  {
+    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd    configInfo, Function<HttpApiRequest, HttpApiResponse> httpClientFunc)  {
         try {
         try {
             log.info("credit BeiJingChongHeCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
             log.info("credit BeiJingChongHeCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-          
+
             byte[] requestConfig = configInfo.getRequestConfig();
             byte[] requestConfig = configInfo.getRequestConfig();
             Object deserialize = HessianUtils.deserialize(requestConfig);
             Object deserialize = HessianUtils.deserialize(requestConfig);
             JSONObject config = JSONObject.parseObject(deserialize.toString());
             JSONObject config = JSONObject.parseObject(deserialize.toString());
@@ -180,9 +177,10 @@ public class BeiJingChongHeCreditService implements LoanDockingApi {
             checkInfo.setChannel_secret_key(config.getString("channel_secret_key"));
             checkInfo.setChannel_secret_key(config.getString("channel_secret_key"));
             String url = config.getString("checkUrl");
             String url = config.getString("checkUrl");
             log.info("credit qualityCheck BeiJingChongHeCreditService request userId:{}, url:{}, CheckInfo:{}",userInfo.getUserId(), url, checkInfo);
             log.info("credit qualityCheck BeiJingChongHeCreditService request userId:{}, url:{}, CheckInfo:{}",userInfo.getUserId(), url, checkInfo);
-            String response = null;
+            HttpApiResponse response = null;
             try{
             try{
-                response =httpRestTemplate.restTemplate().postForObject(url,checkInfo, String.class);
+                HttpApiRequest request=new HttpApiRequest(HttpApiRequestConfig.postRequest(JSON.toJSONString(checkInfo),"post",url));
+                response =httpClientFunc.apply(request);
             }catch (Exception e){
             }catch (Exception e){
                 log.error("北京重和准入异常,异常信息:{}", e.getMessage(), e);
                 log.error("北京重和准入异常,异常信息:{}", e.getMessage(), e);
             }
             }
@@ -190,7 +188,7 @@ public class BeiJingChongHeCreditService implements LoanDockingApi {
             if (response == null) {
             if (response == null) {
                 return DataVo.timeout(product.getPlanId(),product.getPlanName());
                 return DataVo.timeout(product.getPlanId(),product.getPlanName());
             }
             }
-            JSONObject jsonObject=JSONObject.parseObject(response);
+            JSONObject jsonObject=JSONObject.parseObject(response.getData().toString());
             if (jsonObject == null) {
             if (jsonObject == null) {
                 return DataVo.timeout(product.getPlanId(),product.getPlanName());
                 return DataVo.timeout(product.getPlanId(),product.getPlanName());
             }
             }

+ 15 - 17
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/CangZhouSuYiRonogCreditService.java

@@ -2,20 +2,22 @@ package com.hrsk.cloud.eg.domain.api.channel.customized.threedocking.impl;
 
 
 import com.alibaba.fastjson2.JSON;
 import com.alibaba.fastjson2.JSON;
 import com.alibaba.fastjson2.JSONObject;
 import com.alibaba.fastjson2.JSONObject;
+import com.google.common.base.Function;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+import com.hrsk.cloud.eg.client.vo.DataVo;
+import com.hrsk.cloud.eg.domain.api.channel.customized.common.ServerCodeEnums;
+import com.hrsk.cloud.eg.domain.api.channel.customized.threedocking.LoanDockingApi;
+import com.hrsk.cloud.eg.domain.api.channel.guide.http.HttpApiRequest;
+import com.hrsk.cloud.eg.domain.api.channel.guide.http.HttpApiRequestConfig;
+import com.hrsk.cloud.eg.domain.api.channel.guide.http.HttpApiResponse;
+import com.hrsk.cloud.eg.domain.common.HessianUtils;
+import com.hrsk.cloud.eg.domain.common.Md5Util;
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Component;
 import org.springframework.stereotype.Component;
 
 
-import javax.annotation.Resource;
-
 /**
 /**
  * @Author zjc
  * @Author zjc
  * @Date 2024 07 09 16 36
  * @Date 2024 07 09 16 36
@@ -23,11 +25,6 @@ import javax.annotation.Resource;
 @Slf4j
 @Slf4j
 @Component
 @Component
 public class CangZhouSuYiRonogCreditService implements LoanDockingApi {
 public class CangZhouSuYiRonogCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
-
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
 
 
     @Override
     @Override
@@ -64,10 +61,10 @@ public class CangZhouSuYiRonogCreditService implements LoanDockingApi {
 
 
     }
     }
 
 
-    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd configInfo)  {
+    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd    configInfo, Function<HttpApiRequest, HttpApiResponse> httpClientFunc)  {
         try {
         try {
             log.info("credit CangZhouSuYiRongCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
             log.info("credit CangZhouSuYiRongCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-          
+
             byte[] requestConfig = configInfo.getRequestConfig();
             byte[] requestConfig = configInfo.getRequestConfig();
             Object deserialize = HessianUtils.deserialize(requestConfig);
             Object deserialize = HessianUtils.deserialize(requestConfig);
             JSONObject config = JSONObject.parseObject(deserialize.toString());
             JSONObject config = JSONObject.parseObject(deserialize.toString());
@@ -80,9 +77,10 @@ public class CangZhouSuYiRonogCreditService implements LoanDockingApi {
             json.put("mobile",checkInfo.getMobile());
             json.put("mobile",checkInfo.getMobile());
             String url = config.getString("checkUrl");
             String url = config.getString("checkUrl");
             log.info("credit qualityCheck CangZhouSuYiRongCreditService request userId:{}, url:{}, CheckInfo:{}",userInfo.getUserId(), url, checkInfo);
             log.info("credit qualityCheck CangZhouSuYiRongCreditService request userId:{}, url:{}, CheckInfo:{}",userInfo.getUserId(), url, checkInfo);
-            String response = null;
+            HttpApiResponse response = null;
             try{
             try{
-                response =httpRestTemplate.restTemplate().postForObject(url,json, String.class);
+                HttpApiRequest request=new HttpApiRequest(HttpApiRequestConfig.postRequest(String.valueOf(json),"post",url));
+                response =httpClientFunc.apply(request);
             }catch (Exception e){
             }catch (Exception e){
                 log.error("沧州速易融准入异常,异常信息:{}", e.getMessage(), e);
                 log.error("沧州速易融准入异常,异常信息:{}", e.getMessage(), e);
             }
             }
@@ -90,7 +88,7 @@ public class CangZhouSuYiRonogCreditService implements LoanDockingApi {
             if (response == null) {
             if (response == null) {
                 return DataVo.timeout(product.getPlanId(),product.getPlanName());
                 return DataVo.timeout(product.getPlanId(),product.getPlanName());
             }
             }
-            JSONObject jsonObject=JSONObject.parseObject(response);
+            JSONObject jsonObject=JSONObject.parseObject(response.getData().toString());
 
 
             if (jsonObject == null) {
             if (jsonObject == null) {
                 return DataVo.timeout(product.getPlanId(),product.getPlanName());
                 return DataVo.timeout(product.getPlanId(),product.getPlanName());

+ 18 - 16
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/CheYouRongCreditService.java

@@ -2,14 +2,19 @@ package com.hrsk.cloud.eg.domain.api.channel.customized.threedocking.impl;
 
 
 import com.alibaba.fastjson2.JSON;
 import com.alibaba.fastjson2.JSON;
 import com.alibaba.fastjson2.JSONObject;
 import com.alibaba.fastjson2.JSONObject;
+import com.google.common.base.Function;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
+import com.hrsk.cloud.eg.client.vo.DataVo;
+import com.hrsk.cloud.eg.domain.api.channel.customized.common.ServerCodeEnums;
+import com.hrsk.cloud.eg.domain.api.channel.customized.threedocking.LoanDockingApi;
+import com.hrsk.cloud.eg.domain.api.channel.guide.http.HttpApiRequest;
+import com.hrsk.cloud.eg.domain.api.channel.guide.http.HttpApiRequestConfig;
+import com.hrsk.cloud.eg.domain.api.channel.guide.http.HttpApiResponse;
+import com.hrsk.cloud.eg.domain.common.HessianUtils;
+import com.hrsk.cloud.eg.domain.common.Md5Util;
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Component;
 import org.springframework.stereotype.Component;
@@ -25,11 +30,7 @@ import javax.crypto.spec.SecretKeySpec;
 @Slf4j
 @Slf4j
 @Component
 @Component
 public class CheYouRongCreditService implements LoanDockingApi {
 public class CheYouRongCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
 
 
 
 
@@ -68,10 +69,10 @@ public class CheYouRongCreditService implements LoanDockingApi {
 
 
 
 
     }
     }
-    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd configInfo)  {
+    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd    configInfo, Function<HttpApiRequest, HttpApiResponse> httpClientFunc)  {
         try {
         try {
             log.info("credit JiangXiCheYouRongCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
             log.info("credit JiangXiCheYouRongCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-          
+
             byte[] requestConfig = configInfo.getRequestConfig();
             byte[] requestConfig = configInfo.getRequestConfig();
             Object deserialize = HessianUtils.deserialize(requestConfig);
             Object deserialize = HessianUtils.deserialize(requestConfig);
             JSONObject config = JSONObject.parseObject(deserialize.toString());
             JSONObject config = JSONObject.parseObject(deserialize.toString());
@@ -84,17 +85,18 @@ public class CheYouRongCreditService implements LoanDockingApi {
             String url = config.getString("checkUrl");
             String url = config.getString("checkUrl");
 
 
             log.info("credit qualityCheck JiangXiCheYouRongCreditService request userId:{}, url:{}, checkInfo:{}",userInfo.getUserId(), url, checkInfo);
             log.info("credit qualityCheck JiangXiCheYouRongCreditService request userId:{}, url:{}, checkInfo:{}",userInfo.getUserId(), url, checkInfo);
-            String response = null;
-            try{
-                response =httpRestTemplate.restTemplate().postForObject(url,checkInfo, String.class);
-            }catch (Exception e){
+            HttpApiResponse response = null;
+            try {
+                HttpApiRequest request=new HttpApiRequest(HttpApiRequestConfig.postRequest(JSON.toJSONString(checkInfo),"post",url));
+                response =httpClientFunc.apply(request);
+            } catch (Exception e){
                 log.error("江西车优融准入异常,异常信息:{}", e.getMessage(), e);
                 log.error("江西车优融准入异常,异常信息:{}", e.getMessage(), e);
             }
             }
             log.info("credit qualityCheck JiangXiCheYouRongCreditService response userId:{}, result:{}",userInfo.getUserId(), response);
             log.info("credit qualityCheck JiangXiCheYouRongCreditService response userId:{}, result:{}",userInfo.getUserId(), response);
             if (response == null) {
             if (response == null) {
                 return DataVo.timeout(product.getPlanId(),product.getPlanName());
                 return DataVo.timeout(product.getPlanId(),product.getPlanName());
             }
             }
-            JSONObject jsonObject=JSONObject.parseObject(response);
+            JSONObject jsonObject = JSONObject.parseObject(response.getData().toString());
 
 
             if (jsonObject == null) {
             if (jsonObject == null) {
                 return DataVo.timeout(product.getPlanId(), product.getPlanName());
                 return DataVo.timeout(product.getPlanId(), product.getPlanName());

+ 17 - 17
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/ChengDuYiHeShengCreditService.java

@@ -2,20 +2,23 @@ package com.hrsk.cloud.eg.domain.api.channel.customized.threedocking.impl;
 
 
 import com.alibaba.fastjson2.JSON;
 import com.alibaba.fastjson2.JSON;
 import com.alibaba.fastjson2.JSONObject;
 import com.alibaba.fastjson2.JSONObject;
+import com.google.common.base.Function;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
+import com.hrsk.cloud.eg.client.vo.DataVo;
+import com.hrsk.cloud.eg.domain.api.channel.customized.common.ServerCodeEnums;
+import com.hrsk.cloud.eg.domain.api.channel.customized.threedocking.LoanDockingApi;
+import com.hrsk.cloud.eg.domain.api.channel.guide.http.HttpApiRequest;
+import com.hrsk.cloud.eg.domain.api.channel.guide.http.HttpApiRequestConfig;
+import com.hrsk.cloud.eg.domain.api.channel.guide.http.HttpApiResponse;
+import com.hrsk.cloud.eg.domain.common.HessianUtils;
+import com.hrsk.cloud.eg.domain.common.Md5Util;
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.apache.commons.codec.binary.Base64;
 import org.apache.commons.codec.binary.Base64;
 import org.springframework.stereotype.Component;
 import org.springframework.stereotype.Component;
-
-import javax.annotation.Resource;
 import javax.crypto.Cipher;
 import javax.crypto.Cipher;
 import javax.crypto.spec.SecretKeySpec;
 import javax.crypto.spec.SecretKeySpec;
 
 
@@ -26,11 +29,7 @@ import javax.crypto.spec.SecretKeySpec;
 @Slf4j
 @Slf4j
 @Component
 @Component
 public class ChengDuYiHeShengCreditService implements LoanDockingApi {
 public class ChengDuYiHeShengCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
     @Override
     @Override
     public ServerCodeEnums getType() {
     public ServerCodeEnums getType() {
@@ -68,10 +67,10 @@ public class ChengDuYiHeShengCreditService implements LoanDockingApi {
         private Integer has_ali_score;//是否有芝麻分,0,0-599,1.600-649,2.650-699,3.700+
         private Integer has_ali_score;//是否有芝麻分,0,0-599,1.600-649,2.650-699,3.700+
     }
     }
 
 
-    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd configInfo)  {
+    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd    configInfo, Function<HttpApiRequest, HttpApiResponse> httpClientFunc)  {
         try {
         try {
             log.info("credit ChengDuYiHeShengCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
             log.info("credit ChengDuYiHeShengCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-          
+
             byte[] requestConfig = configInfo.getRequestConfig();
             byte[] requestConfig = configInfo.getRequestConfig();
             Object deserialize = HessianUtils.deserialize(requestConfig);
             Object deserialize = HessianUtils.deserialize(requestConfig);
             JSONObject config = JSONObject.parseObject(deserialize.toString());
             JSONObject config = JSONObject.parseObject(deserialize.toString());
@@ -85,9 +84,10 @@ public class ChengDuYiHeShengCreditService implements LoanDockingApi {
             json.put("data", encrypt(JSON.toJSONString(checkInfo), config.getString("key")));
             json.put("data", encrypt(JSON.toJSONString(checkInfo), config.getString("key")));
             String url = config.getString("checkUrl");
             String url = config.getString("checkUrl");
             log.info("credit qualityCheck ChengDuYiHeShengCreditService request userId:{}, url:{}, CheckInfo:{}",userInfo.getUserId(), url, checkInfo);
             log.info("credit qualityCheck ChengDuYiHeShengCreditService request userId:{}, url:{}, CheckInfo:{}",userInfo.getUserId(), url, checkInfo);
-            String response = null;
-            try{
-                response =httpRestTemplate.restTemplate().postForObject(url,json, String.class);
+            HttpApiResponse response = null;
+            try {
+                HttpApiRequest request=new HttpApiRequest(HttpApiRequestConfig.postRequest(JSON.toJSONString(json),"post",url));
+                response =httpClientFunc.apply(request);
             }catch (Exception e){
             }catch (Exception e){
                 log.error("成都亿禾生准入异常,异常信息:{}", e.getMessage(), e);
                 log.error("成都亿禾生准入异常,异常信息:{}", e.getMessage(), e);
             }
             }
@@ -95,7 +95,7 @@ public class ChengDuYiHeShengCreditService implements LoanDockingApi {
             if (response == null) {
             if (response == null) {
                 return DataVo.timeout(product.getPlanId(),product.getPlanName());
                 return DataVo.timeout(product.getPlanId(),product.getPlanName());
             }
             }
-            JSONObject jsonObject=JSONObject.parseObject(response);
+            JSONObject jsonObject = JSONObject.parseObject(response.getData().toString());
 
 
             if (jsonObject == null) {
             if (jsonObject == null) {
                 return DataVo.timeout( product.getPlanId(),product.getPlanName());
                 return DataVo.timeout( product.getPlanId(),product.getPlanName());

+ 18 - 18
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/ChengHongHuiCreditService.java

@@ -1,19 +1,23 @@
 package com.hrsk.cloud.eg.domain.api.channel.customized.threedocking.impl;
 package com.hrsk.cloud.eg.domain.api.channel.customized.threedocking.impl;
 
 
+import com.alibaba.fastjson2.JSON;
 import com.alibaba.fastjson2.JSONObject;
 import com.alibaba.fastjson2.JSONObject;
+import com.google.common.base.Function;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
+import com.hrsk.cloud.eg.client.vo.DataVo;
+import com.hrsk.cloud.eg.domain.api.channel.customized.common.ServerCodeEnums;
+import com.hrsk.cloud.eg.domain.api.channel.customized.threedocking.LoanDockingApi;
+import com.hrsk.cloud.eg.domain.api.channel.guide.http.HttpApiRequest;
+import com.hrsk.cloud.eg.domain.api.channel.guide.http.HttpApiRequestConfig;
+import com.hrsk.cloud.eg.domain.api.channel.guide.http.HttpApiResponse;
+import com.hrsk.cloud.eg.domain.common.HessianUtils;
+import com.hrsk.cloud.eg.domain.common.Md5Util;
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
-
-import javax.annotation.Resource;
 import javax.crypto.Cipher;
 import javax.crypto.Cipher;
 import javax.crypto.SecretKey;
 import javax.crypto.SecretKey;
 import javax.crypto.spec.IvParameterSpec;
 import javax.crypto.spec.IvParameterSpec;
@@ -29,11 +33,7 @@ import java.util.Base64;
 @Service
 @Service
 @Slf4j
 @Slf4j
 public class ChengHongHuiCreditService implements LoanDockingApi {
 public class ChengHongHuiCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
 
 
     @Override
     @Override
@@ -78,10 +78,10 @@ public class ChengHongHuiCreditService implements LoanDockingApi {
     }
     }
 
 
     @Override
     @Override
-    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd configInfo)  {
+    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd    configInfo, Function<HttpApiRequest, HttpApiResponse> httpClientFunc)  {
         try {
         try {
 //            log.info("credit ChengHongHuiCreditService qualityCheck begin...userId:{}", userInfo.getUserId());
 //            log.info("credit ChengHongHuiCreditService qualityCheck begin...userId:{}", userInfo.getUserId());
-          
+
             byte[] requestConfig = configInfo.getRequestConfig();
             byte[] requestConfig = configInfo.getRequestConfig();
             Object deserialize = HessianUtils.deserialize(requestConfig);
             Object deserialize = HessianUtils.deserialize(requestConfig);
             JSONObject config = JSONObject.parseObject(deserialize.toString());
             JSONObject config = JSONObject.parseObject(deserialize.toString());
@@ -89,18 +89,18 @@ public class ChengHongHuiCreditService implements LoanDockingApi {
             CheckInfo checkInfo = new CheckInfo();
             CheckInfo checkInfo = new CheckInfo();
             checkInfo.setTel((userInfo.getUserMobileMD5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getUserMobileMD5()));
             checkInfo.setTel((userInfo.getUserMobileMD5() == null ? Md5Util.encoderByMd5(userInfo.getUserMobile()) : userInfo.getUserMobileMD5()));
             String url = config.getString("checkUrl");
             String url = config.getString("checkUrl");
-            log.info("credit qualityCheck ChengHongHuiCreditService request userId:{}, url:{}, CheckInfo:{}", userInfo.getUserId(), url, checkInfo);
-            String response = null;
+            HttpApiResponse response = null;
             try {
             try {
-                response =httpRestTemplate.restTemplate().postForObject(url,checkInfo, String.class);
-            } catch (Exception e) {
+                HttpApiRequest request=new HttpApiRequest(HttpApiRequestConfig.postRequest(JSON.toJSONString(checkInfo),"post",url));
+                response =httpClientFunc.apply(request);
+            }  catch (Exception e) {
                 log.error("晨宏汇准入异常,异常信息:{}", e.getMessage(), e);
                 log.error("晨宏汇准入异常,异常信息:{}", e.getMessage(), e);
             }
             }
             log.info("credit qualityCheck ChengHongHuiCreditService response userId:{}, result:{}", userInfo.getUserId(), response);
             log.info("credit qualityCheck ChengHongHuiCreditService response userId:{}, result:{}", userInfo.getUserId(), response);
             if (response == null) {
             if (response == null) {
                 return DataVo.timeout(product.getPlanId(),product.getPlanName());
                 return DataVo.timeout(product.getPlanId(),product.getPlanName());
             }
             }
-            JSONObject jsonObject = JSONObject.parseObject(response);
+            JSONObject jsonObject = JSONObject.parseObject(response.getData().toString());
 //            log.info("credit qualityCheck ChengHongHuiCreditService response userId:{}, jsonObject:{}", userInfo.getUserId(), jsonObject);
 //            log.info("credit qualityCheck ChengHongHuiCreditService response userId:{}, jsonObject:{}", userInfo.getUserId(), jsonObject);
             if (jsonObject == null) {
             if (jsonObject == null) {
                 return DataVo.timeout(product.getPlanId(), product.getPlanName());
                 return DataVo.timeout(product.getPlanId(), product.getPlanName());

+ 15 - 13
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/ChongQinDongRunCreditService.java

@@ -2,14 +2,19 @@ package com.hrsk.cloud.eg.domain.api.channel.customized.threedocking.impl;
 
 
 import com.alibaba.fastjson2.JSON;
 import com.alibaba.fastjson2.JSON;
 import com.alibaba.fastjson2.JSONObject;
 import com.alibaba.fastjson2.JSONObject;
+import com.google.common.base.Function;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
+import com.hrsk.cloud.eg.client.vo.DataVo;
+import com.hrsk.cloud.eg.domain.api.channel.customized.common.ServerCodeEnums;
+import com.hrsk.cloud.eg.domain.api.channel.customized.threedocking.LoanDockingApi;
+import com.hrsk.cloud.eg.domain.api.channel.guide.http.HttpApiRequest;
+import com.hrsk.cloud.eg.domain.api.channel.guide.http.HttpApiRequestConfig;
+import com.hrsk.cloud.eg.domain.api.channel.guide.http.HttpApiResponse;
+import com.hrsk.cloud.eg.domain.common.HessianUtils;
+import com.hrsk.cloud.eg.domain.common.Md5Util;
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Component;
 import org.springframework.stereotype.Component;
@@ -29,11 +34,7 @@ import java.util.Base64;
 @Slf4j
 @Slf4j
 @Component
 @Component
 public class ChongQinDongRunCreditService implements LoanDockingApi {
 public class ChongQinDongRunCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
 
 
 
 
@@ -91,7 +92,7 @@ public class ChongQinDongRunCreditService implements LoanDockingApi {
         private String dataStr;// 加密后参数
         private String dataStr;// 加密后参数
     }
     }
 
 
-    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd configInfo)  {
+    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd    configInfo, Function<HttpApiRequest, HttpApiResponse> httpClientFunc)  {
         try {
         try {
             log.info("credit ChongQinDongRunCreditService qualityCheck begin...userId:{}", userInfo.getUserId());
             log.info("credit ChongQinDongRunCreditService qualityCheck begin...userId:{}", userInfo.getUserId());
 
 
@@ -106,9 +107,10 @@ public class ChongQinDongRunCreditService implements LoanDockingApi {
             checkInfo.setPhoneMd5(phoneMd5);
             checkInfo.setPhoneMd5(phoneMd5);
             String url = config.getString("checkUrl");
             String url = config.getString("checkUrl");
             log.info("credit qualityCheck ChongQinDongRunCreditService request userId:{}, url:{}, CheckInfo:{}", userInfo.getUserId(), url, phoneMd5);
             log.info("credit qualityCheck ChongQinDongRunCreditService request userId:{}, url:{}, CheckInfo:{}", userInfo.getUserId(), url, phoneMd5);
-            String response = null;
+            HttpApiResponse response = null;
             try {
             try {
-                response = httpRestTemplate.restTemplate().postForObject(url, checkInfo, String.class);
+                HttpApiRequest request=new HttpApiRequest(HttpApiRequestConfig.postRequest(JSON.toJSONString(checkInfo),"post",url));
+                response =httpClientFunc.apply(request);
             } catch (Exception e) {
             } catch (Exception e) {
                 log.error("重庆东润准入异常,异常信息:{}", e.getMessage(), e);
                 log.error("重庆东润准入异常,异常信息:{}", e.getMessage(), e);
             }
             }
@@ -116,7 +118,7 @@ public class ChongQinDongRunCreditService implements LoanDockingApi {
             if (response == null) {
             if (response == null) {
                 return DataVo.timeout(product.getPlanId(), product.getPlanName());
                 return DataVo.timeout(product.getPlanId(), product.getPlanName());
             }
             }
-            JSONObject jsonObject = JSONObject.parseObject(response);
+            JSONObject jsonObject = JSONObject.parseObject(response.getData().toString());
             JSONObject data =JSONObject.parseObject(jsonObject.getString("data"));
             JSONObject data =JSONObject.parseObject(jsonObject.getString("data"));
             if (jsonObject.getString("code").equals("1")&&data.getBoolean("phoneMd5Exist")!=null&&!data.getBoolean("phoneMd5Exist")) {
             if (jsonObject.getString("code").equals("1")&&data.getBoolean("phoneMd5Exist")!=null&&!data.getBoolean("phoneMd5Exist")) {
                 return DataVo.success (0, "重庆东润撞库成功", product.getPlanId());
                 return DataVo.success (0, "重庆东润撞库成功", product.getPlanId());

+ 17 - 16
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/ChongQingYiYueCreditService.java

@@ -2,15 +2,20 @@ package com.hrsk.cloud.eg.domain.api.channel.customized.threedocking.impl;
 
 
 import com.alibaba.fastjson2.JSON;
 import com.alibaba.fastjson2.JSON;
 import com.alibaba.fastjson2.JSONObject;
 import com.alibaba.fastjson2.JSONObject;
+import com.google.common.base.Function;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 
 
+import com.hrsk.cloud.eg.client.vo.DataVo;
+import com.hrsk.cloud.eg.domain.api.channel.customized.common.ServerCodeEnums;
+import com.hrsk.cloud.eg.domain.api.channel.customized.threedocking.LoanDockingApi;
+import com.hrsk.cloud.eg.domain.api.channel.guide.http.HttpApiRequest;
+import com.hrsk.cloud.eg.domain.api.channel.guide.http.HttpApiRequestConfig;
+import com.hrsk.cloud.eg.domain.api.channel.guide.http.HttpApiResponse;
+import com.hrsk.cloud.eg.domain.common.HessianUtils;
+import com.hrsk.cloud.eg.domain.common.Md5Util;
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
@@ -24,11 +29,6 @@ import javax.annotation.Resource;
 @Slf4j
 @Slf4j
 @Service
 @Service
 public class ChongQingYiYueCreditService implements LoanDockingApi {
 public class ChongQingYiYueCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
-
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
     @Override
     @Override
     public ServerCodeEnums getType() {
     public ServerCodeEnums getType() {
         return ServerCodeEnums.ChongQingYiYue;
         return ServerCodeEnums.ChongQingYiYue;
@@ -73,10 +73,10 @@ public class ChongQingYiYueCreditService implements LoanDockingApi {
 
 
     }
     }
 
 
-    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd    configInfo)  {
+    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd configInfo, Function<HttpApiRequest, HttpApiResponse> httpClientFunc)  {
         try {
         try {
             log.info("credit ChongQingYiYueCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
             log.info("credit ChongQingYiYueCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-          
+
             byte[] requestConfig = configInfo.getRequestConfig();
             byte[] requestConfig = configInfo.getRequestConfig();
             Object deserialize = HessianUtils.deserialize(requestConfig);
             Object deserialize = HessianUtils.deserialize(requestConfig);
             JSONObject config = JSONObject.parseObject(deserialize.toString());
             JSONObject config = JSONObject.parseObject(deserialize.toString());
@@ -89,9 +89,10 @@ public class ChongQingYiYueCreditService implements LoanDockingApi {
             String url = config.getString("checkUrl");
             String url = config.getString("checkUrl");
 
 
             log.info("credit qualityCheck ChongQingYiYueCreditService request userId:{}, url:{}, checkInfo:{}",userInfo.getUserId(), url, checkInfo);
             log.info("credit qualityCheck ChongQingYiYueCreditService request userId:{}, url:{}, checkInfo:{}",userInfo.getUserId(), url, checkInfo);
-            String response = null;
-            try{
-                response =httpRestTemplate.restTemplate().postForObject(url,checkInfo, String.class);
+            HttpApiResponse response = null;
+            try {
+                HttpApiRequest request=new HttpApiRequest(HttpApiRequestConfig.postRequest(JSON.toJSONString(checkInfo),"post",url));
+                response =httpClientFunc.apply(request);
             }catch (Exception e){
             }catch (Exception e){
                 log.error("重庆易悦准入异常,异常信息:{}", e.getMessage(), e);
                 log.error("重庆易悦准入异常,异常信息:{}", e.getMessage(), e);
             }
             }
@@ -99,7 +100,7 @@ public class ChongQingYiYueCreditService implements LoanDockingApi {
             if (response == null) {
             if (response == null) {
                 return DataVo.timeout(product.getPlanId(),product.getPlanName());
                 return DataVo.timeout(product.getPlanId(),product.getPlanName());
             }
             }
-            JSONObject jsonObject=JSONObject.parseObject(response);
+            JSONObject jsonObject = JSONObject.parseObject(response.getData().toString());
 
 
             if (jsonObject == null) {
             if (jsonObject == null) {
                 return DataVo.timeout(product.getPlanId(), product.getPlanName());
                 return DataVo.timeout(product.getPlanId(), product.getPlanName());

+ 5 - 13
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/ChuanjinCreditService.java

@@ -6,15 +6,12 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
+import com.hrsk.cloud.eg.client.vo.DataVo;
+import com.hrsk.cloud.eg.domain.api.channel.customized.common.ServerCodeEnums;
+import com.hrsk.cloud.eg.domain.api.channel.customized.threedocking.LoanDockingApi;
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
-
-import javax.annotation.Resource;
 import java.util.Objects;
 import java.util.Objects;
 
 
 /**
 /**
@@ -30,11 +27,6 @@ public class ChuanjinCreditService implements LoanDockingApi {
     private final static String qualityCheckPath = "customers/check/MD5Encrypt";
     private final static String qualityCheckPath = "customers/check/MD5Encrypt";
     private final static String applyPath = "customers";
     private final static String applyPath = "customers";
 
 
-    @Resource
-    private EgApiService egApiService;
-
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
     @Override
     @Override
     public ServerCodeEnums getType() {
     public ServerCodeEnums getType() {
         return ServerCodeEnums.ChuanJin;
         return ServerCodeEnums.ChuanJin;
@@ -70,10 +62,10 @@ public class ChuanjinCreditService implements LoanDockingApi {
     }
     }
 
 
 
 
-    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd configInfo)  {
+    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd    configInfo, Function<HttpApiRequest, HttpApiResponse> httpClientFunc)  {
         try {
         try {
             log.info("credit ChuanjinCreditService qualityCheck begin...userId:{}", userInfo.getUserId());
             log.info("credit ChuanjinCreditService qualityCheck begin...userId:{}", userInfo.getUserId());
-           
+
             Object requestConfig = HessianUtils.deserialize(configInfo.getRequestConfig()) ;
             Object requestConfig = HessianUtils.deserialize(configInfo.getRequestConfig()) ;
             JSONObject config = JSONObject.parseObject(requestConfig.toString());
             JSONObject config = JSONObject.parseObject(requestConfig.toString());
             log.info("川金对接参数:{}", JSON.toJSONString(config));
             log.info("川金对接参数:{}", JSON.toJSONString(config));

+ 3 - 12
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/DeLuoXuanAesCreditService.java

@@ -5,11 +5,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
@@ -24,11 +20,6 @@ import javax.annotation.Resource;
 @Service
 @Service
 public class DeLuoXuanAesCreditService implements LoanDockingApi {
 public class DeLuoXuanAesCreditService implements LoanDockingApi {
 
 
-    @Resource
-    private EgApiService egApiService;
-
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
     @Override
     @Override
     public ServerCodeEnums getType() {
     public ServerCodeEnums getType() {
         return ServerCodeEnums.DeLuoXuanAES;
         return ServerCodeEnums.DeLuoXuanAES;
@@ -67,10 +58,10 @@ public class DeLuoXuanAesCreditService implements LoanDockingApi {
         private Integer platform_id;//不需要回传值为 0,回传必传(平台提供)
         private Integer platform_id;//不需要回传值为 0,回传必传(平台提供)
     }
     }
 
 
-    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd configInfo)  {
+    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd    configInfo, Function<HttpApiRequest, HttpApiResponse> httpClientFunc)  {
         try {
         try {
             log.info("credit DeLuoXuanAesCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
             log.info("credit DeLuoXuanAesCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-          
+
             byte[] requestConfig = configInfo.getRequestConfig();
             byte[] requestConfig = configInfo.getRequestConfig();
             Object deserialize = HessianUtils.deserialize(requestConfig);
             Object deserialize = HessianUtils.deserialize(requestConfig);
             JSONObject config = JSONObject.parseObject(deserialize.toString());
             JSONObject config = JSONObject.parseObject(deserialize.toString());

+ 3 - 12
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/DeLuoXuanCreditService.java

@@ -5,11 +5,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+import com.hrsk.cloud.eg.domain.api.channel.customized.threedocking.LoanDockingApi;
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
@@ -23,11 +19,6 @@ import javax.annotation.Resource;
 @Slf4j
 @Slf4j
 @Service
 @Service
 public class DeLuoXuanCreditService implements LoanDockingApi {
 public class DeLuoXuanCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
-
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
 
 
     @Override
     @Override
@@ -67,10 +58,10 @@ public class DeLuoXuanCreditService implements LoanDockingApi {
 
 
     }
     }
 
 
-    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd configInfo)  {
+    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd    configInfo, Function<HttpApiRequest, HttpApiResponse> httpClientFunc)  {
         try {
         try {
             log.info("credit DeLuoXuanCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
             log.info("credit DeLuoXuanCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-          
+
             byte[] requestConfig = configInfo.getRequestConfig();
             byte[] requestConfig = configInfo.getRequestConfig();
             Object deserialize = HessianUtils.deserialize(requestConfig);
             Object deserialize = HessianUtils.deserialize(requestConfig);
             JSONObject config = JSONObject.parseObject(deserialize.toString());
             JSONObject config = JSONObject.parseObject(deserialize.toString());

+ 1 - 9
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/DeZhouXinYiRongCreditService.java

@@ -4,11 +4,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
@@ -23,11 +19,7 @@ import javax.annotation.Resource;
 @Slf4j
 @Slf4j
 @Service
 @Service
 public class DeZhouXinYiRongCreditService implements LoanDockingApi {
 public class DeZhouXinYiRongCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
     @Override
     @Override
     public ServerCodeEnums getType() {
     public ServerCodeEnums getType() {

+ 2 - 10
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/DeZhouXinYiRongV2CreditService.java

@@ -5,11 +5,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
@@ -25,11 +21,7 @@ import javax.annotation.Resource;
 @Service
 @Service
 public class DeZhouXinYiRongV2CreditService implements LoanDockingApi {
 public class DeZhouXinYiRongV2CreditService implements LoanDockingApi {
 
 
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
     @Override
     @Override
     public ServerCodeEnums getType() {
     public ServerCodeEnums getType() {
@@ -69,7 +61,7 @@ public class DeZhouXinYiRongV2CreditService implements LoanDockingApi {
 
 
     }
     }
 
 
-    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd configInfo)  {
+    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd    configInfo, Function<HttpApiRequest, HttpApiResponse> httpClientFunc)  {
         try {
         try {
             log.info("credit DeZhouXinYiRongV2CreditService qualityCheck begin...userId:{}",userInfo.getUserId());
             log.info("credit DeZhouXinYiRongV2CreditService qualityCheck begin...userId:{}",userInfo.getUserId());
 
 

+ 1 - 5
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/DfrzwCreditService.java

@@ -48,18 +48,14 @@ public class DfrzwCreditService implements LoanDockingApi {
     //注册推送
     //注册推送
     private static final String REGISTER = "/rzr/TransferV2/Register";
     private static final String REGISTER = "/rzr/TransferV2/Register";
 
 
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
     @Override
     @Override
     public ServerCodeEnums getType() {
     public ServerCodeEnums getType() {
         return ServerCodeEnums.DongFangRZ;
         return ServerCodeEnums.DongFangRZ;
     }
     }
 
 
-    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd configInfo)  {
+    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd    configInfo, Function<HttpApiRequest, HttpApiResponse> httpClientFunc)  {
 
 
         String cellPhoneNumber = userInfo.getUserMobileMD5().toLowerCase();
         String cellPhoneNumber = userInfo.getUserMobileMD5().toLowerCase();
         Boolean isNotBlack = preFilter(cellPhoneNumber);
         Boolean isNotBlack = preFilter(cellPhoneNumber);

+ 2 - 10
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/FangxinwangiCreditService.java

@@ -5,11 +5,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.apache.http.HttpResponse;
 import org.apache.http.HttpResponse;
@@ -27,11 +23,7 @@ import java.util.Objects;
 @Service
 @Service
 @Slf4j
 @Slf4j
 public class FangxinwangiCreditService implements LoanDockingApi {
 public class FangxinwangiCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
     private final String qualityCheckPath = "/api/VenderExists/Post";
     private final String qualityCheckPath = "/api/VenderExists/Post";
 
 
@@ -77,7 +69,7 @@ public class FangxinwangiCreditService implements LoanDockingApi {
      * @return
      * @return
      *  {"channelSource":"birong","url":"http://apitest.shlyxxjs.com","key":"mgjr@3des123#dhjr9763089"}
      *  {"channelSource":"birong","url":"http://apitest.shlyxxjs.com","key":"mgjr@3des123#dhjr9763089"}
      */
      */
-    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd configInfo)  {
+    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd    configInfo, Function<HttpApiRequest, HttpApiResponse> httpClientFunc)  {
         try {
         try {
             log.info("credit FangxinwangCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
             log.info("credit FangxinwangCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
 //            XdProductJointConfig xdProductJointConfig = xdProductJointConfigMapper.selectById(product.getJointType());
 //            XdProductJointConfig xdProductJointConfig = xdProductJointConfigMapper.selectById(product.getJointType());

+ 2 - 10
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/FuChengCreditService.java

@@ -5,11 +5,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.apache.commons.codec.binary.Base64;
 import org.apache.commons.codec.binary.Base64;
@@ -30,11 +26,7 @@ import java.util.Map;
 @Slf4j
 @Slf4j
 @Service
 @Service
 public class FuChengCreditService implements LoanDockingApi {
 public class FuChengCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
 
 
     @Override
     @Override
@@ -60,7 +52,7 @@ public class FuChengCreditService implements LoanDockingApi {
     }
     }
 
 
 
 
-    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd configInfo)  {
+    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd    configInfo, Function<HttpApiRequest, HttpApiResponse> httpClientFunc)  {
         try {
         try {
             log.info("credit FuChengCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
             log.info("credit FuChengCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
 
 

+ 5 - 5
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/FuZhouBeiJiuCreditService.java

@@ -5,7 +5,11 @@ import com.alibaba.fastjson2.JSONArray;
 import com.alibaba.fastjson2.JSONObject;
 import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
+import com.hrsk.cloud.eg.client.vo.DataVo;
 import com.hrsk.cloud.eg.clinet.vo.DataVo;
 import com.hrsk.cloud.eg.clinet.vo.DataVo;
+import com.hrsk.cloud.eg.domain.api.channel.customized.common.ServerCodeEnums;
+import com.hrsk.cloud.eg.domain.api.channel.customized.threedocking.LoanDockingApi;
+import com.hrsk.cloud.eg.domain.common.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
 import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
 import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
 import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
@@ -25,11 +29,7 @@ import javax.annotation.Resource;
 @Slf4j
 @Slf4j
 @Service
 @Service
 public class FuZhouBeiJiuCreditService implements LoanDockingApi {
 public class FuZhouBeiJiuCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
     @Override
     @Override
     public ServerCodeEnums getType() {
     public ServerCodeEnums getType() {
@@ -50,7 +50,7 @@ public class FuZhouBeiJiuCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd    configInfo)  {
     public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd    configInfo)  {
         try {
         try {
             log.info("credit FuZhouBeiJiuCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
             log.info("credit FuZhouBeiJiuCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-          
+
             byte[] requestConfig = configInfo.getRequestConfig();
             byte[] requestConfig = configInfo.getRequestConfig();
             Object deserialize = HessianUtils.deserialize(requestConfig);
             Object deserialize = HessianUtils.deserialize(requestConfig);
             JSONObject config = JSONObject.parseObject(deserialize.toString());
             JSONObject config = JSONObject.parseObject(deserialize.toString());

+ 3 - 11
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/FuZhouBeiYinJinRongCreditService.java

@@ -5,11 +5,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
@@ -23,11 +19,7 @@ import javax.annotation.Resource;
 @Slf4j
 @Slf4j
 @Service
 @Service
 public class FuZhouBeiYinJinRongCreditService implements LoanDockingApi {
 public class FuZhouBeiYinJinRongCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
     @Override
     @Override
     public ServerCodeEnums getType() {
     public ServerCodeEnums getType() {
@@ -89,10 +81,10 @@ public class FuZhouBeiYinJinRongCreditService implements LoanDockingApi {
      * 	"publicKey": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsLuutChHG1O_PG6Xo7IE6EMr9S5DdIc4PX2T0OoWqf7-jLMvdgq0ueEBPXC-JmyE-vHFkejVwZBwte7eoVaW6KeW0v1FYuN_hDA7bra__zWpLKnlyvYs8TsqkwbCq5EhL7pnhi08ypoEEXQVsyjjBy7cttDMWz7b4bjkEPSdWulmTKeOadLJKdGA95MpC1kbA_TlKJf4bwaBluWSFdb7jyms-KtzcCygQLVD5z1NcPIQVe44HXGUYqelThZ0MwokcnLS2ow7RpkE3_-ut0Lrwk9zT2gJ3_gPEL6IE1XXXvsDZwsKdv252AfBiZwUqVc26XsMd7pd-jowK1QiLnOmSQIDAQAB"
      * 	"publicKey": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsLuutChHG1O_PG6Xo7IE6EMr9S5DdIc4PX2T0OoWqf7-jLMvdgq0ueEBPXC-JmyE-vHFkejVwZBwte7eoVaW6KeW0v1FYuN_hDA7bra__zWpLKnlyvYs8TsqkwbCq5EhL7pnhi08ypoEEXQVsyjjBy7cttDMWz7b4bjkEPSdWulmTKeOadLJKdGA95MpC1kbA_TlKJf4bwaBluWSFdb7jyms-KtzcCygQLVD5z1NcPIQVe44HXGUYqelThZ0MwokcnLS2ow7RpkE3_-ut0Lrwk9zT2gJ3_gPEL6IE1XXXvsDZwsKdv252AfBiZwUqVc26XsMd7pd-jowK1QiLnOmSQIDAQAB"
      * }
      * }
      */
      */
-    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd configInfo)  {
+    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd    configInfo, Function<HttpApiRequest, HttpApiResponse> httpClientFunc)  {
         try {
         try {
             log.info("credit FuZhouBeiYinJinRongCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
             log.info("credit FuZhouBeiYinJinRongCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-          
+
             byte[] requestConfig = configInfo.getRequestConfig();
             byte[] requestConfig = configInfo.getRequestConfig();
             Object deserialize = HessianUtils.deserialize(requestConfig);
             Object deserialize = HessianUtils.deserialize(requestConfig);
             JSONObject config = JSONObject.parseObject(deserialize.toString());
             JSONObject config = JSONObject.parseObject(deserialize.toString());

+ 3 - 11
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/GexinjinfuCreditService.java

@@ -5,11 +5,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
@@ -25,11 +21,7 @@ import java.util.Objects;
 @Service
 @Service
 @Slf4j
 @Slf4j
 public class GexinjinfuCreditService implements LoanDockingApi {
 public class GexinjinfuCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
     private final String qualityCheckPath = "/api/rsatg/checkmobile";
     private final String qualityCheckPath = "/api/rsatg/checkmobile";
 
 
@@ -74,10 +66,10 @@ public class GexinjinfuCreditService implements LoanDockingApi {
      * @return
      * @return
      *  {"channelSource":"birong","url":"http://apitest.shlyxxjs.com","key":"mgjr@3des123#dhjr9763089"}
      *  {"channelSource":"birong","url":"http://apitest.shlyxxjs.com","key":"mgjr@3des123#dhjr9763089"}
      */
      */
-    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd configInfo)  {
+    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd    configInfo, Function<HttpApiRequest, HttpApiResponse> httpClientFunc)  {
         try {
         try {
             log.info("credit GexinjinfuCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
             log.info("credit GexinjinfuCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-           
+
             String configJson = HessianUtils.deserialize(configInfo.getRequestConfig()).toString();
             String configJson = HessianUtils.deserialize(configInfo.getRequestConfig()).toString();
             JSONObject gexinjinfuJointDTO = JSON.parseObject(configJson);
             JSONObject gexinjinfuJointDTO = JSON.parseObject(configJson);
             log.info("格鑫金服对接参数:{}", JSON.toJSONString(gexinjinfuJointDTO));
             log.info("格鑫金服对接参数:{}", JSON.toJSONString(gexinjinfuJointDTO));

+ 3 - 11
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/GuanZhouPuHuiCreditService.java

@@ -4,11 +4,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
@@ -22,11 +18,7 @@ import javax.annotation.Resource;
 @Slf4j
 @Slf4j
 @Service
 @Service
 public class GuanZhouPuHuiCreditService  implements LoanDockingApi {
 public class GuanZhouPuHuiCreditService  implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
     @Override
     @Override
     public ServerCodeEnums getType() {
     public ServerCodeEnums getType() {
@@ -60,10 +52,10 @@ public class GuanZhouPuHuiCreditService  implements LoanDockingApi {
         private String remarks; //备注
         private String remarks; //备注
     }
     }
 
 
-    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd configInfo)  {
+    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd    configInfo, Function<HttpApiRequest, HttpApiResponse> httpClientFunc)  {
         try {
         try {
             log.info("credit GuanZhouPuHuiCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
             log.info("credit GuanZhouPuHuiCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-          
+
             byte[] requestConfig = configInfo.getRequestConfig();
             byte[] requestConfig = configInfo.getRequestConfig();
             Object deserialize = HessianUtils.deserialize(requestConfig);
             Object deserialize = HessianUtils.deserialize(requestConfig);
             JSONObject config = JSONObject.parseObject(deserialize.toString());
             JSONObject config = JSONObject.parseObject(deserialize.toString());

+ 3 - 11
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/GuangDongHaoEnCreditService.java

@@ -4,11 +4,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
@@ -23,11 +19,7 @@ import javax.annotation.Resource;
 @Slf4j
 @Slf4j
 @Service
 @Service
 public class GuangDongHaoEnCreditService implements LoanDockingApi {
 public class GuangDongHaoEnCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
     @Override
     @Override
     public ServerCodeEnums getType() {
     public ServerCodeEnums getType() {
@@ -62,10 +54,10 @@ public class GuangDongHaoEnCreditService implements LoanDockingApi {
         private Integer zhima;//芝麻分
         private Integer zhima;//芝麻分
         private Integer additional;//其他信息
         private Integer additional;//其他信息
     }
     }
-    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd configInfo)  {
+    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd    configInfo, Function<HttpApiRequest, HttpApiResponse> httpClientFunc)  {
         try {
         try {
             log.info("credit GuangDongHaoEnCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
             log.info("credit GuangDongHaoEnCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-          
+
             byte[] requestConfig = configInfo.getRequestConfig();
             byte[] requestConfig = configInfo.getRequestConfig();
             Object deserialize = HessianUtils.deserialize(requestConfig);
             Object deserialize = HessianUtils.deserialize(requestConfig);
             JSONObject config = JSONObject.parseObject(deserialize.toString());
             JSONObject config = JSONObject.parseObject(deserialize.toString());

+ 3 - 12
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/GuangDongHongZhanCreditService.java

@@ -4,11 +4,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
@@ -22,11 +18,6 @@ import javax.annotation.Resource;
 @Slf4j
 @Slf4j
 @Service
 @Service
     public class GuangDongHongZhanCreditService implements LoanDockingApi {
     public class GuangDongHongZhanCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
-
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
     @Override
     @Override
     public ServerCodeEnums getType() {
     public ServerCodeEnums getType() {
         return ServerCodeEnums.GuangDongHongZhan;
         return ServerCodeEnums.GuangDongHongZhan;
@@ -47,10 +38,10 @@ import javax.annotation.Resource;
         private String area;//城市
         private String area;//城市
         private String situation;//备注
         private String situation;//备注
     }
     }
-    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd configInfo)  {
+    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd    configInfo, Function<HttpApiRequest, HttpApiResponse> httpClientFunc)  {
         try {
         try {
             log.info("credit GuangDongHongZhanCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
             log.info("credit GuangDongHongZhanCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-          
+
             byte[] requestConfig = configInfo.getRequestConfig();
             byte[] requestConfig = configInfo.getRequestConfig();
             Object deserialize = HessianUtils.deserialize(requestConfig);
             Object deserialize = HessianUtils.deserialize(requestConfig);
             JSONObject config = JSONObject.parseObject(deserialize.toString());
             JSONObject config = JSONObject.parseObject(deserialize.toString());

+ 3 - 11
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/GuangZhouHuaXinCreditService.java

@@ -4,11 +4,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
@@ -24,11 +20,7 @@ import javax.annotation.Resource;
 @Slf4j
 @Slf4j
 public class GuangZhouHuaXinCreditService implements LoanDockingApi {
 public class GuangZhouHuaXinCreditService implements LoanDockingApi {
 
 
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
     @Override
     @Override
     public ServerCodeEnums getType() {
     public ServerCodeEnums getType() {
@@ -82,10 +74,10 @@ public class GuangZhouHuaXinCreditService implements LoanDockingApi {
 
 
     }
     }
 
 
-    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd configInfo)  {
+    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd    configInfo, Function<HttpApiRequest, HttpApiResponse> httpClientFunc)  {
         try {
         try {
             log.info("credit GuangZhouHuaXinCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
             log.info("credit GuangZhouHuaXinCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-          
+
             byte[] requestConfig = configInfo.getRequestConfig();
             byte[] requestConfig = configInfo.getRequestConfig();
             Object deserialize = HessianUtils.deserialize(requestConfig);
             Object deserialize = HessianUtils.deserialize(requestConfig);
             JSONObject config = JSONObject.parseObject(deserialize.toString());
             JSONObject config = JSONObject.parseObject(deserialize.toString());

+ 2 - 6
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/HamiguaCreditService.java

@@ -26,11 +26,7 @@ import java.util.Objects;
 @Service
 @Service
 @Slf4j
 @Slf4j
 public class HamiguaCreditService implements LoanDockingApi {
 public class HamiguaCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
     private final String qualityCheckPath = "/v1/api/customer/repeat/check";
     private final String qualityCheckPath = "/v1/api/customer/repeat/check";
 
 
@@ -71,11 +67,11 @@ public class HamiguaCreditService implements LoanDockingApi {
      * @return
      * @return
      *  {"channelSource":"birong","url":"http://apitest.shlyxxjs.com","key":"mgjr@3des123#dhjr9763089"}
      *  {"channelSource":"birong","url":"http://apitest.shlyxxjs.com","key":"mgjr@3des123#dhjr9763089"}
      */
      */
-    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd configInfo)  {
+    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd    configInfo, Function<HttpApiRequest, HttpApiResponse> httpClientFunc)  {
         try {
         try {
             log.info("credit HamiguaCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
             log.info("credit HamiguaCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
 //            XdProductJointConfig xdProductJointConfig = xdProductJointConfigMapper.selectById(product.getJointType());
 //            XdProductJointConfig xdProductJointConfig = xdProductJointConfigMapper.selectById(product.getJointType());
-           
+
             String configJson = HessianUtils.deserialize(configInfo.getRequestConfig()).toString() ;
             String configJson = HessianUtils.deserialize(configInfo.getRequestConfig()).toString() ;
             JSONObject hamiguaJointDTO = JSON.parseObject(configJson);
             JSONObject hamiguaJointDTO = JSON.parseObject(configJson);
             log.info("哈密瓜对接参数:{}", JSON.toJSONString(hamiguaJointDTO));
             log.info("哈密瓜对接参数:{}", JSON.toJSONString(hamiguaJointDTO));

+ 3 - 11
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/HaohanwuyinCreditService.java

@@ -5,11 +5,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
@@ -25,11 +21,7 @@ import java.util.Objects;
 @Service
 @Service
 @Slf4j
 @Slf4j
 public class HaohanwuyinCreditService implements LoanDockingApi {
 public class HaohanwuyinCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
 
 
     private final String qualityCheckPath = "/api/customer/collisionLibrary";
     private final String qualityCheckPath = "/api/customer/collisionLibrary";
@@ -75,10 +67,10 @@ public class HaohanwuyinCreditService implements LoanDockingApi {
      *  {"channelSource":"birong","url":"http://apitest.shlyxxjs.com","key":"mgjr@3des123#dhjr9763089"}
      *  {"channelSource":"birong","url":"http://apitest.shlyxxjs.com","key":"mgjr@3des123#dhjr9763089"}
      */
      */
 
 
-    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd configInfo)  {
+    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd    configInfo, Function<HttpApiRequest, HttpApiResponse> httpClientFunc)  {
         try {
         try {
             log.info("credit HaohanwuyinCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
             log.info("credit HaohanwuyinCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-           
+
             String configJson = HessianUtils.deserialize(configInfo.getRequestConfig()).toString() ;
             String configJson = HessianUtils.deserialize(configInfo.getRequestConfig()).toString() ;
             JSONObject HaohanwuyinJointDTO = JSON.parseObject(configJson);
             JSONObject HaohanwuyinJointDTO = JSON.parseObject(configJson);
             log.info("灏瀚无崟对接参数:{}", JSON.toJSONString(HaohanwuyinJointDTO));
             log.info("灏瀚无崟对接参数:{}", JSON.toJSONString(HaohanwuyinJointDTO));

+ 1 - 9
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/HeFeiShenDaiCreditService.java

@@ -4,11 +4,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
@@ -22,11 +18,7 @@ import javax.annotation.Resource;
 @Slf4j
 @Slf4j
 @Service
 @Service
 public class HeFeiShenDaiCreditService implements LoanDockingApi {
 public class HeFeiShenDaiCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
 
 
 
 

+ 3 - 11
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/HeZeRongXinCreditService.java

@@ -5,11 +5,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
@@ -24,11 +20,7 @@ import javax.annotation.Resource;
 @Slf4j
 @Slf4j
 @Service
 @Service
 public class HeZeRongXinCreditService implements LoanDockingApi {
 public class HeZeRongXinCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
     @Override
     @Override
     public ServerCodeEnums getType() {
     public ServerCodeEnums getType() {
@@ -55,10 +47,10 @@ public class HeZeRongXinCreditService implements LoanDockingApi {
         private Integer credit;//是否有信用卡 (  1:有  0:无 )
         private Integer credit;//是否有信用卡 (  1:有  0:无 )
     }
     }
 
 
-    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd configInfo)  {
+    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd    configInfo, Function<HttpApiRequest, HttpApiResponse> httpClientFunc)  {
         try {
         try {
             log.info("credit HeZeRongXinCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
             log.info("credit HeZeRongXinCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-          
+
             byte[] requestConfig = configInfo.getRequestConfig();
             byte[] requestConfig = configInfo.getRequestConfig();
             Object deserialize = HessianUtils.deserialize(requestConfig);
             Object deserialize = HessianUtils.deserialize(requestConfig);
             JSONObject config = JSONObject.parseObject(deserialize.toString());
             JSONObject config = JSONObject.parseObject(deserialize.toString());

+ 1 - 5
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/HengYangJiuZhenCreditService.java

@@ -28,11 +28,7 @@ import java.util.Collections;
 @Slf4j
 @Slf4j
 @Component
 @Component
 public class HengYangJiuZhenCreditService implements LoanDockingApi {
 public class HengYangJiuZhenCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
 
 
     @Override
     @Override
@@ -72,7 +68,7 @@ public class HengYangJiuZhenCreditService implements LoanDockingApi {
 
 
     }
     }
 
 
-    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd configInfo)  {
+    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd    configInfo, Function<HttpApiRequest, HttpApiResponse> httpClientFunc)  {
         try {
         try {
 //            log.info("credit YunHaiLianDongCreditService qualityCheck begin...userId:{}", userInfo.getUserId());
 //            log.info("credit YunHaiLianDongCreditService qualityCheck begin...userId:{}", userInfo.getUserId());
 
 

+ 3 - 11
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/HengaiCreditService.java

@@ -5,11 +5,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.core.env.Environment;
 import org.springframework.core.env.Environment;
@@ -30,11 +26,7 @@ import java.util.Date;
 @Service
 @Service
 @Slf4j
 @Slf4j
 public class HengaiCreditService implements LoanDockingApi {
 public class HengaiCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
 
 
     private final String qualityCheckPathTest = "/api/source/test_filter";
     private final String qualityCheckPathTest = "/api/source/test_filter";
@@ -97,11 +89,11 @@ public class HengaiCreditService implements LoanDockingApi {
     }
     }
 
 
 
 
-    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd configInfo)  {
+    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd    configInfo, Function<HttpApiRequest, HttpApiResponse> httpClientFunc)  {
         try {
         try {
             log.info("credit HengaiCreditService qualityCheck begin...userId:{}", userInfo.getUserId());
             log.info("credit HengaiCreditService qualityCheck begin...userId:{}", userInfo.getUserId());
 //            XdProductJointConfig xdProductJointConfig = xdProductJointConfigMapper.selectById(product.getJointType());
 //            XdProductJointConfig xdProductJointConfig = xdProductJointConfigMapper.selectById(product.getJointType());
-          
+
             byte[] requestConfig = configInfo.getRequestConfig();
             byte[] requestConfig = configInfo.getRequestConfig();
             Object deserialize = HessianUtils.deserialize(requestConfig);
             Object deserialize = HessianUtils.deserialize(requestConfig);
             JSONObject config = JSONObject.parseObject(deserialize.toString());
             JSONObject config = JSONObject.parseObject(deserialize.toString());

+ 3 - 11
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/HongShengJinFuCreditService.java

@@ -4,11 +4,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.http.HttpEntity;
 import org.springframework.http.HttpEntity;
@@ -28,11 +24,7 @@ import javax.annotation.Resource;
 @Slf4j
 @Slf4j
 @Service
 @Service
 public class HongShengJinFuCreditService implements LoanDockingApi {
 public class HongShengJinFuCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
 
 
     @Override
     @Override
@@ -67,9 +59,9 @@ public class HongShengJinFuCreditService implements LoanDockingApi {
         private String remark;
         private String remark;
     }
     }
 
 
-    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd configInfo)  {
+    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd    configInfo, Function<HttpApiRequest, HttpApiResponse> httpClientFunc)  {
         try {
         try {
-          
+
             byte[] requestConfig = configInfo.getRequestConfig();
             byte[] requestConfig = configInfo.getRequestConfig();
             Object deserialize = HessianUtils.deserialize(requestConfig);
             Object deserialize = HessianUtils.deserialize(requestConfig);
             JSONObject config = JSONObject.parseObject(deserialize.toString());
             JSONObject config = JSONObject.parseObject(deserialize.toString());

+ 2 - 10
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/HongXinPuHuiCreditService.java

@@ -4,11 +4,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.apache.http.HttpResponse;
 import org.apache.http.HttpResponse;
@@ -27,11 +23,7 @@ import java.util.Map;
 @Service
 @Service
 public class HongXinPuHuiCreditService implements LoanDockingApi {
 public class HongXinPuHuiCreditService implements LoanDockingApi {
 
 
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
 
 
 
 
@@ -71,7 +63,7 @@ public class HongXinPuHuiCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd    configInfo)  {
     public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd    configInfo)  {
         try {
         try {
             log.info("credit HongXinPuHuiCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
             log.info("credit HongXinPuHuiCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-          
+
             byte[] requestConfig = configInfo.getRequestConfig();
             byte[] requestConfig = configInfo.getRequestConfig();
             Object deserialize = HessianUtils.deserialize(requestConfig);
             Object deserialize = HessianUtils.deserialize(requestConfig);
             JSONObject config = JSONObject.parseObject(deserialize.toString());
             JSONObject config = JSONObject.parseObject(deserialize.toString());

+ 3 - 12
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/HuNanDiShuiYanCreditService.java

@@ -5,11 +5,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.apache.commons.codec.binary.Base64;
 import org.apache.commons.codec.binary.Base64;
@@ -26,11 +22,6 @@ import javax.crypto.spec.SecretKeySpec;
 @Slf4j
 @Slf4j
 @Service
 @Service
 public class HuNanDiShuiYanCreditService implements LoanDockingApi {
 public class HuNanDiShuiYanCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
-
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
     @Override
     @Override
     public ServerCodeEnums getType() {
     public ServerCodeEnums getType() {
         return ServerCodeEnums.HuNanDiShuiYan;
         return ServerCodeEnums.HuNanDiShuiYan;
@@ -58,10 +49,10 @@ public class HuNanDiShuiYanCreditService implements LoanDockingApi {
         private Integer note; //备注可为空(其他信息可传这
         private Integer note; //备注可为空(其他信息可传这
     }
     }
 
 
-    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd configInfo)  {
+    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd    configInfo, Function<HttpApiRequest, HttpApiResponse> httpClientFunc)  {
         try {
         try {
             log.info("credit HuNanDiShuiYanCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
             log.info("credit HuNanDiShuiYanCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-          
+
             byte[] requestConfig = configInfo.getRequestConfig();
             byte[] requestConfig = configInfo.getRequestConfig();
             Object deserialize = HessianUtils.deserialize(requestConfig);
             Object deserialize = HessianUtils.deserialize(requestConfig);
             JSONObject config = JSONObject.parseObject(deserialize.toString());
             JSONObject config = JSONObject.parseObject(deserialize.toString());

+ 1 - 10
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/HuirongCrmCreditService.java

@@ -5,11 +5,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.apache.commons.lang3.StringUtils;
 import org.apache.commons.lang3.StringUtils;
@@ -26,11 +22,6 @@ import java.util.Objects;
 @Service
 @Service
 @Slf4j
 @Slf4j
 public class HuirongCrmCreditService implements LoanDockingApi {
 public class HuirongCrmCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
-
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
     @Override
     @Override
     public ServerCodeEnums getType() {
     public ServerCodeEnums getType() {
         return ServerCodeEnums.HUIRONG_CRM;
         return ServerCodeEnums.HUIRONG_CRM;

+ 2 - 7
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/HuixinCreditService.java

@@ -29,11 +29,6 @@ import java.util.Objects;
 @Component
 @Component
 @Slf4j
 @Slf4j
 public class HuixinCreditService implements LoanDockingApi {
 public class HuixinCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
-
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
     private final String qualityCheckPath = "pushdata.ashx?type=CheckMobilePhone";
     private final String qualityCheckPath = "pushdata.ashx?type=CheckMobilePhone";
 
 
     private final String applyPath = "pushdata.ashx";
     private final String applyPath = "pushdata.ashx";
@@ -87,11 +82,11 @@ public class HuixinCreditService implements LoanDockingApi {
      * @param product
      * @param product
      * @return {"channelSource":"birong","url":"http://apitest.shlyxxjs.com","key":"mgjr@3des123#dhjr9763089"}
      * @return {"channelSource":"birong","url":"http://apitest.shlyxxjs.com","key":"mgjr@3des123#dhjr9763089"}
      */
      */
-    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd configInfo)  {
+    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd    configInfo, Function<HttpApiRequest, HttpApiResponse> httpClientFunc)  {
         try {
         try {
             log.info("credit HuixinCreditService qualityCheck begin...userId:{}", userInfo.getUserId());
             log.info("credit HuixinCreditService qualityCheck begin...userId:{}", userInfo.getUserId());
 //            XdProductJointConfig xdProductJointConfig = xdProductJointConfigMapper.selectById(product.getJointType());
 //            XdProductJointConfig xdProductJointConfig = xdProductJointConfigMapper.selectById(product.getJointType());
-           
+
             String configJson = HessianUtils.deserialize(configInfo.getRequestConfig()).toString();
             String configJson = HessianUtils.deserialize(configInfo.getRequestConfig()).toString();
             JSONObject huiXinJointDTO = JSONObject.parseObject(configJson);
             JSONObject huiXinJointDTO = JSONObject.parseObject(configJson);
             log.info("汇鑫对接参数:{}", JSONObject.toJSONString(huiXinJointDTO));
             log.info("汇鑫对接参数:{}", JSONObject.toJSONString(huiXinJointDTO));

+ 2 - 6
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/HuizhongCreditService.java

@@ -41,11 +41,7 @@ public class HuizhongCreditService implements LoanDockingApi {
 
 
     private final String prodUrl = "https://api.shlyxxjs.com";
     private final String prodUrl = "https://api.shlyxxjs.com";
 
 
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
     @Override
     @Override
     public ServerCodeEnums getType() {
     public ServerCodeEnums getType() {
@@ -88,11 +84,11 @@ public class HuizhongCreditService implements LoanDockingApi {
      * @return
      * @return
      *  {"channelSource":"birong","url":"http://apitest.shlyxxjs.com","key":"mgjr@3des123#dhjr9763089"}
      *  {"channelSource":"birong","url":"http://apitest.shlyxxjs.com","key":"mgjr@3des123#dhjr9763089"}
      */
      */
-    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd configInfo)  {
+    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd    configInfo, Function<HttpApiRequest, HttpApiResponse> httpClientFunc)  {
         try {
         try {
             log.info("credit HuizhongCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
             log.info("credit HuizhongCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
 //            XdProductJointConfig xdProductJointConfig = xdProductJointConfigMapper.selectById(product.getJointType());
 //            XdProductJointConfig xdProductJointConfig = xdProductJointConfigMapper.selectById(product.getJointType());
-          
+
             byte[] requestConfig = configInfo.getRequestConfig();
             byte[] requestConfig = configInfo.getRequestConfig();
             Object deserialize = HessianUtils.deserialize(requestConfig);
             Object deserialize = HessianUtils.deserialize(requestConfig);
             JSONObject config = JSONObject.parseObject(deserialize.toString());
             JSONObject config = JSONObject.parseObject(deserialize.toString());

+ 2 - 10
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/JianZhanCreditService.java

@@ -5,11 +5,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.apache.http.HttpResponse;
 import org.apache.http.HttpResponse;
@@ -29,11 +25,7 @@ import java.util.Map;
 @Slf4j
 @Slf4j
 @Service
 @Service
 public class JianZhanCreditService implements LoanDockingApi {
 public class JianZhanCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
     @Override
     @Override
     public ServerCodeEnums getType() {
     public ServerCodeEnums getType() {
@@ -94,7 +86,7 @@ public class JianZhanCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoCmd user, PlanCmd product, EgLoanApiConfigInfoCmd configInfoCmd) {
     public DataVo qualityCheck(UserBaseInfoCmd user, PlanCmd product, EgLoanApiConfigInfoCmd configInfoCmd) {
         try {
         try {
             log.info("credit JianZhanCreditService qualityCheck begin...userId:{}", user.getUserMobileMD5());
             log.info("credit JianZhanCreditService qualityCheck begin...userId:{}", user.getUserMobileMD5());
-          
+
             byte[] requestConfig =
             byte[] requestConfig =
             configInfoCmd.getRequestConfig();
             configInfoCmd.getRequestConfig();
             Object deserialize = HessianUtils.deserialize(requestConfig);
             Object deserialize = HessianUtils.deserialize(requestConfig);

+ 2 - 6
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/JiechengCreditService.java

@@ -23,11 +23,7 @@ import javax.annotation.Resource;
 public class JiechengCreditService implements LoanDockingApi {
 public class JiechengCreditService implements LoanDockingApi {
     private final String qualityCheckPath = "/api/yrh/index";
     private final String qualityCheckPath = "/api/yrh/index";
     private final String applyPath = "/api/yrh/orderadd";
     private final String applyPath = "/api/yrh/orderadd";
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
     @Override
     @Override
     public ServerCodeEnums getType() {
     public ServerCodeEnums getType() {
@@ -43,11 +39,11 @@ public class JiechengCreditService implements LoanDockingApi {
      *  {"key":"5lvNIA1Kmchq2gu3C9P5g+rttvQXq3lh","url":"http://www.cs.ahaiyu.com"}
      *  {"key":"5lvNIA1Kmchq2gu3C9P5g+rttvQXq3lh","url":"http://www.cs.ahaiyu.com"}
      */
      */
     @Override
     @Override
-    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd configInfo)  {
+    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd    configInfo, Function<HttpApiRequest, HttpApiResponse> httpClientFunc)  {
         try {
         try {
             log.info("credit JiechengCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
             log.info("credit JiechengCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
 //            XdProductJointConfig xdProductJointConfig = xdProductJointConfigMapper.selectById(product.getJointType());
 //            XdProductJointConfig xdProductJointConfig = xdProductJointConfigMapper.selectById(product.getJointType());
-          
+
             byte[] requestConfig = configInfo.getRequestConfig();
             byte[] requestConfig = configInfo.getRequestConfig();
             Object deserialize = HessianUtils.deserialize(requestConfig);
             Object deserialize = HessianUtils.deserialize(requestConfig);
             JSONObject config = JSONObject.parseObject(deserialize.toString());
             JSONObject config = JSONObject.parseObject(deserialize.toString());

+ 3 - 11
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/JilingHuiRongCreditService.java

@@ -5,11 +5,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
@@ -24,11 +20,7 @@ import javax.annotation.Resource;
 @Slf4j
 @Slf4j
 @Service
 @Service
 public class JilingHuiRongCreditService implements LoanDockingApi {
 public class JilingHuiRongCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
     @Override
     @Override
     public ServerCodeEnums getType() {
     public ServerCodeEnums getType() {
@@ -51,10 +43,10 @@ public class JilingHuiRongCreditService implements LoanDockingApi {
      *
      *
      */
      */
     @Override
     @Override
-    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd configInfo)  {
+    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd    configInfo, Function<HttpApiRequest, HttpApiResponse> httpClientFunc)  {
         try {
         try {
             log.info("credit JilingHuiRongCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
             log.info("credit JilingHuiRongCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-          
+
             byte[] requestConfig = configInfo.getRequestConfig();
             byte[] requestConfig = configInfo.getRequestConfig();
             Object deserialize = HessianUtils.deserialize(requestConfig);
             Object deserialize = HessianUtils.deserialize(requestConfig);
             JSONObject config = JSONObject.parseObject(deserialize.toString());
             JSONObject config = JSONObject.parseObject(deserialize.toString());

+ 2 - 10
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/JinDieV2CreditService.java

@@ -6,11 +6,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.apache.commons.lang3.StringUtils;
 import org.apache.commons.lang3.StringUtils;
@@ -33,11 +29,7 @@ import java.util.Map;
 @Service
 @Service
 @Slf4j
 @Slf4j
 public class JinDieV2CreditService implements LoanDockingApi {
 public class JinDieV2CreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
 
 
     @Override
     @Override
@@ -54,7 +46,7 @@ public class JinDieV2CreditService implements LoanDockingApi {
      * @return {"url":"http://apitest.shlyxxjs.com","key":"fluxZhudai*_key","tenantId":"1405729496904110081","trafficPlatformId":"13872425018351111"}
      * @return {"url":"http://apitest.shlyxxjs.com","key":"fluxZhudai*_key","tenantId":"1405729496904110081","trafficPlatformId":"13872425018351111"}
      */
      */
     @Override
     @Override
-    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd configInfo) {
+    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd    configInfo, Function<HttpApiRequest, HttpApiResponse> httpClientFunc) {
         try {
         try {
             log.info("credit JindieV2CreditService qualityCheck begin...userId:{},productId={}", userInfo.getUserId(), product.getPlanId());
             log.info("credit JindieV2CreditService qualityCheck begin...userId:{},productId={}", userInfo.getUserId(), product.getPlanId());
 
 

+ 1 - 5
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/JinDieV3CreditService.java

@@ -23,11 +23,7 @@ import javax.annotation.Resource;
 @Component
 @Component
 @Slf4j
 @Slf4j
 public class JinDieV3CreditService implements LoanDockingApi {
 public class JinDieV3CreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
 
 
     @Override
     @Override
@@ -57,7 +53,7 @@ public class JinDieV3CreditService implements LoanDockingApi {
      * @return {"url":"http://apitest.shlyxxjs.com","key":"fluxZhudai*_key","tenantId":"1405729496904110081","trafficPlatformId":"13872425018351111"}
      * @return {"url":"http://apitest.shlyxxjs.com","key":"fluxZhudai*_key","tenantId":"1405729496904110081","trafficPlatformId":"13872425018351111"}
      */
      */
     @Override
     @Override
-    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd configInfo) {
+    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd    configInfo, Function<HttpApiRequest, HttpApiResponse> httpClientFunc) {
         try {
         try {
             log.info("credit JinDieV3CreditService qualityCheck begin...userId:{},productId={}", userInfo.getUserId(), product.getPlanId());
             log.info("credit JinDieV3CreditService qualityCheck begin...userId:{},productId={}", userInfo.getUserId(), product.getPlanId());
             String configJson = HessianUtils.deserialize(configInfo.getRequestConfig()).toString();
             String configJson = HessianUtils.deserialize(configInfo.getRequestConfig()).toString();

+ 3 - 11
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/JinDieV4CreditService.java

@@ -4,11 +4,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
@@ -23,11 +19,7 @@ import javax.annotation.Resource;
 @Slf4j
 @Slf4j
 public class JinDieV4CreditService implements LoanDockingApi {
 public class JinDieV4CreditService implements LoanDockingApi {
 
 
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
 
 
     @Override
     @Override
@@ -42,10 +34,10 @@ public class JinDieV4CreditService implements LoanDockingApi {
     }
     }
 
 
     @Override
     @Override
-    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd configInfo)  {
+    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd    configInfo, Function<HttpApiRequest, HttpApiResponse> httpClientFunc)  {
         try {
         try {
             log.info("credit JinDieV4CreditService qualityCheck begin...userId:{}", userInfo.getUserId());
             log.info("credit JinDieV4CreditService qualityCheck begin...userId:{}", userInfo.getUserId());
-          
+
             byte[] requestConfig = configInfo.getRequestConfig();
             byte[] requestConfig = configInfo.getRequestConfig();
             Object deserialize = HessianUtils.deserialize(requestConfig);
             Object deserialize = HessianUtils.deserialize(requestConfig);
             JSONObject config = JSONObject.parseObject(deserialize.toString());
             JSONObject config = JSONObject.parseObject(deserialize.toString());

+ 2 - 10
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/JinZhuLiCreditService.java

@@ -5,11 +5,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
@@ -23,11 +19,7 @@ import javax.annotation.Resource;
 @Slf4j
 @Slf4j
 @Service
 @Service
 public class JinZhuLiCreditService  implements LoanDockingApi {
 public class JinZhuLiCreditService  implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
 
 
 
 
@@ -77,7 +69,7 @@ public class JinZhuLiCreditService  implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd configInfo)  {
     public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd configInfo)  {
         try {
         try {
             log.info("credit JinZhuLiCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
             log.info("credit JinZhuLiCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-          
+
             byte[] requestConfig = configInfo.getRequestConfig();
             byte[] requestConfig = configInfo.getRequestConfig();
             Object deserialize = HessianUtils.deserialize(requestConfig);
             Object deserialize = HessianUtils.deserialize(requestConfig);
             JSONObject config = JSONObject.parseObject(deserialize.toString());
             JSONObject config = JSONObject.parseObject(deserialize.toString());

+ 0 - 4
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/JindieCreditService.java

@@ -24,11 +24,7 @@ import javax.annotation.Resource;
 public class JindieCreditService implements LoanDockingApi {
 public class JindieCreditService implements LoanDockingApi {
     private final String qualityCheckPath = "/erp/api/ifRepeatmd5";
     private final String qualityCheckPath = "/erp/api/ifRepeatmd5";
     private final String applyPath = "/erp/api/addclue";
     private final String applyPath = "/erp/api/addclue";
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
     @Override
     @Override
     public ServerCodeEnums getType() {
     public ServerCodeEnums getType() {

+ 2 - 10
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/JiuXinKeCreditService.java

@@ -5,11 +5,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
@@ -24,11 +20,7 @@ import javax.annotation.Resource;
 @Service
 @Service
 public class JiuXinKeCreditService implements LoanDockingApi {
 public class JiuXinKeCreditService implements LoanDockingApi {
 
 
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
     @Override
     @Override
     public ServerCodeEnums getType() {
     public ServerCodeEnums getType() {
@@ -54,7 +46,7 @@ public class JiuXinKeCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd configInfo)  {
     public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd configInfo)  {
         try {
         try {
             log.info("credit JiuXinKeCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
             log.info("credit JiuXinKeCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-          
+
             byte[] requestConfig = configInfo.getRequestConfig();
             byte[] requestConfig = configInfo.getRequestConfig();
             Object deserialize = HessianUtils.deserialize(requestConfig);
             Object deserialize = HessianUtils.deserialize(requestConfig);
             JSONObject config = JSONObject.parseObject(deserialize.toString());
             JSONObject config = JSONObject.parseObject(deserialize.toString());

+ 1 - 9
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/KuaiYiRongCreditService.java

@@ -6,11 +6,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
@@ -25,11 +21,7 @@ import javax.annotation.Resource;
 @Slf4j
 @Slf4j
 @Service
 @Service
 public class KuaiYiRongCreditService implements LoanDockingApi {
 public class KuaiYiRongCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
 
 
     @Override
     @Override

+ 0 - 4
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/KuaiyidaiCreditService.java

@@ -24,11 +24,7 @@ import java.util.Objects;
 @Service
 @Service
 @Slf4j
 @Slf4j
 public class KuaiyidaiCreditService implements LoanDockingApi {
 public class KuaiyidaiCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
 
 
     private final String qualityCheckPath = "/Admin/UserIncomeApi/comparePhoneMonitor";
     private final String qualityCheckPath = "/Admin/UserIncomeApi/comparePhoneMonitor";

+ 0 - 4
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/KuaiyidaiFourToOneCreditService.java

@@ -24,11 +24,7 @@ import java.util.Objects;
 @Service
 @Service
 @Slf4j
 @Slf4j
 public class KuaiyidaiFourToOneCreditService implements LoanDockingApi {
 public class KuaiyidaiFourToOneCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
 
 
     private final String qualityCheckPath = "/Admin/UserIncomeApi/comparePhoneMonitor";
     private final String qualityCheckPath = "/Admin/UserIncomeApi/comparePhoneMonitor";

+ 0 - 4
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/KuaiyidaiNightCreditService.java

@@ -26,11 +26,7 @@ import java.util.Objects;
 @Service
 @Service
 @Slf4j
 @Slf4j
 public class KuaiyidaiNightCreditService implements LoanDockingApi {
 public class KuaiyidaiNightCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
     @Autowired
     @Autowired
     Environment environment;
     Environment environment;

+ 0 - 4
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/KuaiyidaiV2CreditService.java

@@ -24,11 +24,7 @@ import java.util.Objects;
 @Service
 @Service
 @Slf4j
 @Slf4j
 public class KuaiyidaiV2CreditService implements LoanDockingApi {
 public class KuaiyidaiV2CreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
 
 
     private final String qualityCheckPath = "/Admin/UserIncomeApi/comparePhoneMonitor";
     private final String qualityCheckPath = "/Admin/UserIncomeApi/comparePhoneMonitor";

+ 1 - 9
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/KunMingXiaoSongShuCreditService.java

@@ -5,11 +5,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
@@ -26,11 +22,7 @@ import java.util.Map;
 @Slf4j
 @Slf4j
 @Service
 @Service
 public class KunMingXiaoSongShuCreditService implements LoanDockingApi {
 public class KunMingXiaoSongShuCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
 
 
     @Override
     @Override

+ 1 - 9
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/LeXiangRongCreditService.java

@@ -5,11 +5,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
@@ -22,11 +18,7 @@ import javax.annotation.Resource;
 @Slf4j
 @Slf4j
 @Service
 @Service
 public class LeXiangRongCreditService implements LoanDockingApi {
 public class LeXiangRongCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
 
 
     @Override
     @Override

+ 1 - 9
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/LianKeYunKongCreditService.java

@@ -5,11 +5,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import com.hrsk.cloud.eg.infrastructure.utils.RSAUtils;
 import com.hrsk.cloud.eg.infrastructure.utils.RSAUtils;
 import com.hrsk.cloud.eg.infrastructure.utils.SnowflakeIdWorker;
 import com.hrsk.cloud.eg.infrastructure.utils.SnowflakeIdWorker;
 import lombok.Data;
 import lombok.Data;
@@ -28,11 +24,7 @@ import java.time.Instant;
 @Slf4j
 @Slf4j
 @Service
 @Service
 public class LianKeYunKongCreditService implements LoanDockingApi {
 public class LianKeYunKongCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
     @Override
     @Override
     public ServerCodeEnums getType() {
     public ServerCodeEnums getType() {

+ 1 - 9
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/LiaoChengXinYiDaiCreditService.java

@@ -5,11 +5,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
@@ -23,11 +19,7 @@ import javax.annotation.Resource;
 @Slf4j
 @Slf4j
 @Service
 @Service
 public class LiaoChengXinYiDaiCreditService implements LoanDockingApi {
 public class LiaoChengXinYiDaiCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
 
 
     @Override
     @Override

+ 1 - 9
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/MoGuTouCreditService.java

@@ -5,11 +5,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
@@ -25,11 +21,7 @@ import java.util.Random;
 @Slf4j
 @Slf4j
 @Service
 @Service
 public class MoGuTouCreditService implements LoanDockingApi {
 public class MoGuTouCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
 
 
     @Override
     @Override

+ 1 - 9
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/NanTongXingChengCreditService.java

@@ -5,11 +5,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import com.hrsk.cloud.eg.infrastructure.utils.RSAUtils;
 import com.hrsk.cloud.eg.infrastructure.utils.RSAUtils;
 import com.hrsk.cloud.eg.infrastructure.utils.RedisUtil;
 import com.hrsk.cloud.eg.infrastructure.utils.RedisUtil;
 import lombok.Data;
 import lombok.Data;
@@ -27,11 +23,7 @@ import java.util.concurrent.TimeUnit;
 @Slf4j
 @Slf4j
 @Service
 @Service
 public class NanTongXingChengCreditService implements LoanDockingApi {
 public class NanTongXingChengCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
     @Resource
     @Resource
     private RedisUtil redisUtil;
     private RedisUtil redisUtil;

+ 2 - 10
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/NiYouKeCreditService.java

@@ -4,11 +4,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
@@ -22,11 +18,7 @@ import javax.annotation.Resource;
 @Slf4j
 @Slf4j
 @Service
 @Service
 public class NiYouKeCreditService implements LoanDockingApi {
 public class NiYouKeCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
     @Override
     @Override
     public ServerCodeEnums  getType() {
     public ServerCodeEnums  getType() {
@@ -44,7 +36,7 @@ public class NiYouKeCreditService implements LoanDockingApi {
     public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd    configInfo)  {
     public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd    configInfo)  {
         try {
         try {
             log.info("credit NiYouKeCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
             log.info("credit NiYouKeCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-          
+
             byte[] requestConfig = configInfo.getRequestConfig();
             byte[] requestConfig = configInfo.getRequestConfig();
             Object deserialize = HessianUtils.deserialize(requestConfig);
             Object deserialize = HessianUtils.deserialize(requestConfig);
             JSONObject config = JSONObject.parseObject(deserialize.toString());
             JSONObject config = JSONObject.parseObject(deserialize.toString());

+ 1 - 9
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/NingBoTianChengCreditService.java

@@ -5,11 +5,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Component;
 import org.springframework.stereotype.Component;
@@ -25,11 +21,7 @@ import javax.annotation.Resource;
 @Component
 @Component
 public class NingBoTianChengCreditService implements LoanDockingApi {
 public class NingBoTianChengCreditService implements LoanDockingApi {
 
 
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
     @Override
     @Override
     public ServerCodeEnums getType() {
     public ServerCodeEnums getType() {

+ 0 - 4
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/OpenApiAesCreditService.java

@@ -22,11 +22,7 @@ import java.util.Objects;
 @Slf4j
 @Slf4j
 @Service
 @Service
 public class OpenApiAesCreditService implements LoanDockingApi {
 public class OpenApiAesCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
     private final static String IV="go9yPim47avSQZ8m";
     private final static String IV="go9yPim47avSQZ8m";
 
 

+ 0 - 4
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/OpenApiCreditService.java

@@ -26,11 +26,7 @@ import java.util.Objects;
 @Service
 @Service
 public class OpenApiCreditService implements LoanDockingApi {
 public class OpenApiCreditService implements LoanDockingApi {
 
 
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
     private final static String IV="go9yPim47avSQZ8m";
     private final static String IV="go9yPim47avSQZ8m";
 
 

+ 1 - 9
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/PingDingShanCreditService.java

@@ -5,11 +5,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.http.HttpEntity;
 import org.springframework.http.HttpEntity;
@@ -33,11 +29,7 @@ import java.util.Base64;
 @Slf4j
 @Slf4j
 public class PingDingShanCreditService implements LoanDockingApi {
 public class PingDingShanCreditService implements LoanDockingApi {
 
 
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
     @Override
     @Override
     public ServerCodeEnums getType() {
     public ServerCodeEnums getType() {

+ 1 - 9
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/PingXunCreditService.java

@@ -5,11 +5,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import com.hrsk.cloud.eg.infrastructure.utils.StringDecodeUtils;
 import com.hrsk.cloud.eg.infrastructure.utils.StringDecodeUtils;
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
@@ -41,11 +37,7 @@ public class PingXunCreditService implements LoanDockingApi {
     private final static String cityCodePath = "pull/get-code-by-name-status";
     private final static String cityCodePath = "pull/get-code-by-name-status";
 
 
 
 
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
 
 
     @Data
     @Data

+ 1 - 10
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/QingDaoAoSengCreditService.java

@@ -3,11 +3,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
@@ -22,11 +18,6 @@ import javax.annotation.Resource;
 @Service
 @Service
 public class QingDaoAoSengCreditService implements LoanDockingApi {
 public class QingDaoAoSengCreditService implements LoanDockingApi {
 
 
-    @Resource
-    private EgApiService egApiService;
-
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
     @Override
     @Override
     public ServerCodeEnums getType() {
     public ServerCodeEnums getType() {
         return ServerCodeEnums.QingDaoAoSen;
         return ServerCodeEnums.QingDaoAoSen;

+ 1 - 10
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/QingDaoAoSengV2CreditService.java

@@ -3,11 +3,7 @@ package com.hrsk.cloud.eg.domain.api.channel.customized.threedocking.impl;
 import com.alibaba.fastjson2.JSONObject;
 import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Component;
 import org.springframework.stereotype.Component;
@@ -23,11 +19,6 @@ import javax.annotation.Resource;
 @Component
 @Component
 public class QingDaoAoSengV2CreditService implements LoanDockingApi {
 public class QingDaoAoSengV2CreditService implements LoanDockingApi {
 
 
-    @Resource
-    private EgApiService egApiService;
-
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
     @Override
     @Override
     public ServerCodeEnums getType() {
     public ServerCodeEnums getType() {
         return ServerCodeEnums.QingDaoAoSenV2;
         return ServerCodeEnums.QingDaoAoSenV2;

+ 1 - 9
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/QingyuCreditService.java

@@ -5,11 +5,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.AllArgsConstructor;
 import lombok.AllArgsConstructor;
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
@@ -29,11 +25,7 @@ public class QingyuCreditService implements LoanDockingApi {
     private final String qualityCheckPath = "/openapi/interface/query/phones";
     private final String qualityCheckPath = "/openapi/interface/query/phones";
     private final String applyPath = "/openapi/interface/save/customer";
     private final String applyPath = "/openapi/interface/save/customer";
 
 
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
     public ServerCodeEnums getType() {
     public ServerCodeEnums getType() {
         return null;
         return null;

+ 1 - 10
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/QingyuV2CreditService.java

@@ -6,11 +6,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.cglib.beans.BeanMap;
 import org.springframework.cglib.beans.BeanMap;
@@ -34,11 +30,6 @@ public class QingyuV2CreditService implements LoanDockingApi {
 
 
     private final String prefix = "/openapi";
     private final String prefix = "/openapi";
 
 
-    @Resource
-    private EgApiService egApiService;
-
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
     @Override
     @Override
     public ServerCodeEnums getType() {
     public ServerCodeEnums getType() {
         return ServerCodeEnums.CRM_QY_V2;
         return ServerCodeEnums.CRM_QY_V2;

+ 1 - 10
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/QingyuV3CreditService.java

@@ -6,11 +6,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.cglib.beans.BeanMap;
 import org.springframework.cglib.beans.BeanMap;
@@ -27,11 +23,6 @@ import java.util.*;
 @Slf4j
 @Slf4j
 public class QingyuV3CreditService implements LoanDockingApi {
 public class QingyuV3CreditService implements LoanDockingApi {
 
 
-    @Resource
-    private EgApiService egApiService;
-
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
     @Override
     @Override
     public ServerCodeEnums  getType() {
     public ServerCodeEnums  getType() {
         return ServerCodeEnums.CRM_QY_V3;
         return ServerCodeEnums.CRM_QY_V3;

+ 1 - 9
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/RongChuangJinFuCreditService.java

@@ -5,11 +5,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
@@ -29,11 +25,7 @@ import java.security.Key;
 @Slf4j
 @Slf4j
 @Service
 @Service
 public class RongChuangJinFuCreditService implements LoanDockingApi {
 public class RongChuangJinFuCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
     @Override
     @Override
     public ServerCodeEnums getType() {
     public ServerCodeEnums getType() {

+ 1 - 9
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/RongXiangDaChangShaCreditService.java

@@ -4,11 +4,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
@@ -28,11 +24,7 @@ import java.util.Base64;
 @Slf4j
 @Slf4j
 @Service
 @Service
 public class RongXiangDaChangShaCreditService implements LoanDockingApi {
 public class RongXiangDaChangShaCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
     @Override
     @Override
     public ServerCodeEnums getType() {
     public ServerCodeEnums getType() {

+ 1 - 9
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/RongXiangKeBuShuCreditService.java

@@ -5,11 +5,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
@@ -29,11 +25,7 @@ import java.util.Base64;
 @Slf4j
 @Slf4j
 @Service
 @Service
 public class RongXiangKeBuShuCreditService implements LoanDockingApi {
 public class RongXiangKeBuShuCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
 
 
 
 

+ 1 - 9
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/RongXiangKeV2CreditService.java

@@ -4,11 +4,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Component;
 import org.springframework.stereotype.Component;
@@ -28,11 +24,7 @@ import java.util.Base64;
 @Slf4j
 @Slf4j
 @Component
 @Component
 public class RongXiangKeV2CreditService implements LoanDockingApi {
 public class RongXiangKeV2CreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
 
 
     @Override
     @Override

+ 0 - 4
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/RongYiDaCreditService.java

@@ -30,11 +30,7 @@ import java.util.Date;
 @Slf4j
 @Slf4j
 @Service
 @Service
 public class RongYiDaCreditService implements LoanDockingApi {
 public class RongYiDaCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
 
 
 
 

+ 0 - 5
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/RongkedaiCreditService.java

@@ -31,11 +31,6 @@ public class RongkedaiCreditService implements LoanDockingApi {
         return ServerCodeEnums.Rongkedai;
         return ServerCodeEnums.Rongkedai;
     }
     }
 
 
-    @Resource
-    private EgApiService egApiService;
-
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
     /**
     /**
      * 撞库 实现单个用户撞库
      * 撞库 实现单个用户撞库
      *
      *

+ 0 - 4
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/RongshengCreditService.java

@@ -42,11 +42,7 @@ public class RongshengCreditService implements LoanDockingApi {
     private final static String applyPath = "ad/h5/tripartite/v1/ps";
     private final static String applyPath = "ad/h5/tripartite/v1/ps";
 
 
     private final static String RedisKey = "Rongsheng:api:%s";
     private final static String RedisKey = "Rongsheng:api:%s";
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
     @Resource
     @Resource
     private RedisUtil redisUtil;
     private RedisUtil redisUtil;

+ 0 - 4
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/RongxiziCreditService.java

@@ -29,11 +29,7 @@ import java.util.*;
 @Service
 @Service
 @Slf4j
 @Slf4j
 public class RongxiziCreditService implements LoanDockingApi {
 public class RongxiziCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
     private final String qualityCheckPath = "https://admin.qxd-wh.com/home/Api/checkTel";
     private final String qualityCheckPath = "https://admin.qxd-wh.com/home/Api/checkTel";
 
 

+ 1 - 10
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/RunMeiXinYiRongCreditService.java

@@ -5,11 +5,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
@@ -24,11 +20,6 @@ import javax.annotation.Resource;
 @Slf4j
 @Slf4j
 @Service
 @Service
 public class RunMeiXinYiRongCreditService implements LoanDockingApi {
 public class RunMeiXinYiRongCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
-
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
     @Override
     @Override
     public ServerCodeEnums getType() {
     public ServerCodeEnums getType() {
         return ServerCodeEnums.RunMei;
         return ServerCodeEnums.RunMei;

+ 0 - 5
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/RxkCreditService.java

@@ -25,11 +25,6 @@ import java.util.Objects;
 @Slf4j
 @Slf4j
 @Service
 @Service
 public class RxkCreditService implements LoanDockingApi {
 public class RxkCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
-
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
     private final static String CHECK_URL="/xxb-filter/api/filter/md5";
     private final static String CHECK_URL="/xxb-filter/api/filter/md5";
     private final static String REGISTER_URL="/xxb/api/source/clue_data/consumer";
     private final static String REGISTER_URL="/xxb/api/source/clue_data/consumer";
 
 

+ 1 - 10
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/ShanDongBangBangDaiCreditService.java

@@ -5,11 +5,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.apache.commons.codec.binary.Base64;
 import org.apache.commons.codec.binary.Base64;
@@ -29,11 +25,6 @@ import java.util.Map;
 @Service
 @Service
 public class ShanDongBangBangDaiCreditService implements LoanDockingApi {
 public class ShanDongBangBangDaiCreditService implements LoanDockingApi {
 
 
-    @Resource
-    private EgApiService egApiService;
-
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
     public ServerCodeEnums getType() {
     public ServerCodeEnums getType() {
         return ServerCodeEnums.ShanDongBangBangDai;
         return ServerCodeEnums.ShanDongBangBangDai;
     }
     }

+ 1 - 10
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/ShanXiHengShengDaiCreditService.java

@@ -5,11 +5,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.http.HttpEntity;
 import org.springframework.http.HttpEntity;
@@ -35,11 +31,6 @@ import java.util.Base64;
 @Service
 @Service
 public class ShanXiHengShengDaiCreditService implements LoanDockingApi {
 public class ShanXiHengShengDaiCreditService implements LoanDockingApi {
 
 
-    @Resource
-    private EgApiService egApiService;
-
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
     @Override
     @Override
     public ServerCodeEnums getType() {
     public ServerCodeEnums getType() {
         return ServerCodeEnums.ShanXiHengSheng;
         return ServerCodeEnums.ShanXiHengSheng;

+ 1 - 9
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/ShanXiMingDePuHuiCreditService.java

@@ -5,11 +5,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.apache.commons.codec.binary.Base64;
 import org.apache.commons.codec.binary.Base64;
@@ -28,11 +24,7 @@ import java.nio.charset.StandardCharsets;
 @Slf4j
 @Slf4j
 public class ShanXiMingDePuHuiCreditService implements LoanDockingApi {
 public class ShanXiMingDePuHuiCreditService implements LoanDockingApi {
 
 
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
 
 
 
 

+ 1 - 10
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/ShangHaiHanGeCreditService.java

@@ -4,11 +4,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.http.HttpEntity;
 import org.springframework.http.HttpEntity;
@@ -27,11 +23,6 @@ import javax.annotation.Resource;
 @Slf4j
 @Slf4j
 @Component
 @Component
 public class ShangHaiHanGeCreditService implements LoanDockingApi {
 public class ShangHaiHanGeCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
-
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
     @Override
     @Override
     public ServerCodeEnums getType() {
     public ServerCodeEnums getType() {
         return ServerCodeEnums.ShangHaiHanGe;
         return ServerCodeEnums.ShangHaiHanGe;

+ 3 - 12
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/ShangHaiJuHuiRongCreditService.java

@@ -5,11 +5,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
@@ -22,11 +18,6 @@ import javax.annotation.Resource;
 @Slf4j
 @Slf4j
 @Service
 @Service
 public class ShangHaiJuHuiRongCreditService implements LoanDockingApi {
 public class ShangHaiJuHuiRongCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
-
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
     @Override
     @Override
     public ServerCodeEnums getType() {
     public ServerCodeEnums getType() {
         return ServerCodeEnums.ShangHaiJuHuiRongCreditService;
         return ServerCodeEnums.ShangHaiJuHuiRongCreditService;
@@ -40,10 +31,10 @@ public class ShangHaiJuHuiRongCreditService implements LoanDockingApi {
     }
     }
 
 
     @Override
     @Override
-    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd configInfo)  {
+    public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd    configInfo, Function<HttpApiRequest, HttpApiResponse> httpClientFunc)  {
         try {
         try {
             log.info("credit ShangHaiJuHuiRongCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
             log.info("credit ShangHaiJuHuiRongCreditService qualityCheck begin...userId:{}",userInfo.getUserId());
-          
+
             byte[] requestConfig = configInfo.getRequestConfig();
             byte[] requestConfig = configInfo.getRequestConfig();
             Object deserialize = HessianUtils.deserialize(requestConfig);
             Object deserialize = HessianUtils.deserialize(requestConfig);
             JSONObject config = JSONObject.parseObject(deserialize.toString());
             JSONObject config = JSONObject.parseObject(deserialize.toString());

+ 1 - 10
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/ShenLuoJinFuCreditService.java

@@ -5,11 +5,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.apache.http.HttpResponse;
 import org.apache.http.HttpResponse;
@@ -27,11 +23,6 @@ import java.util.Map;
 @Slf4j
 @Slf4j
 @Component
 @Component
 public class ShenLuoJinFuCreditService implements LoanDockingApi {
 public class ShenLuoJinFuCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
-
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
     @Override
     @Override
     public ServerCodeEnums getType() {
     public ServerCodeEnums getType() {
         return ServerCodeEnums.ShenLuoJinFu;
         return ServerCodeEnums.ShenLuoJinFu;

+ 1 - 9
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/ShenYangXinYiRongCreditService.java

@@ -5,11 +5,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
@@ -26,11 +22,7 @@ import javax.annotation.Resource;
 @Service
 @Service
 public class ShenYangXinYiRongCreditService implements LoanDockingApi {
 public class ShenYangXinYiRongCreditService implements LoanDockingApi {
 
 
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
     @Override
     @Override
     public ServerCodeEnums getType() {
     public ServerCodeEnums getType() {

+ 1 - 9
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/ShiYueCreditService.java

@@ -5,11 +5,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
@@ -31,11 +27,7 @@ import java.util.TreeMap;
 @Slf4j
 @Slf4j
 @Service
 @Service
 public class ShiYueCreditService implements LoanDockingApi {
 public class ShiYueCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
 
 
     @Override
     @Override

+ 1 - 9
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/ShuRongCreditService.java

@@ -5,11 +5,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
@@ -23,11 +19,7 @@ import javax.annotation.Resource;
 @Slf4j
 @Slf4j
 @Service
 @Service
 public class ShuRongCreditService implements LoanDockingApi {
 public class ShuRongCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
     @Override
     @Override
     public ServerCodeEnums getType() {
     public ServerCodeEnums getType() {

+ 1 - 9
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/SiChuangRuiCreditService.java

@@ -5,11 +5,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.apache.commons.codec.binary.Base64;
 import org.apache.commons.codec.binary.Base64;
@@ -27,11 +23,7 @@ import javax.crypto.spec.SecretKeySpec;
 @Service
 @Service
 public class SiChuangRuiCreditService implements LoanDockingApi {
 public class SiChuangRuiCreditService implements LoanDockingApi {
 
 
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
 
 
     @Override
     @Override

+ 1 - 10
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/SouYuJinFuCreditService.java

@@ -5,11 +5,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.apache.commons.lang3.StringUtils;
 import org.apache.commons.lang3.StringUtils;
@@ -31,11 +27,6 @@ import java.util.Base64;
 @Slf4j
 @Slf4j
 @Service
 @Service
 public class SouYuJinFuCreditService implements LoanDockingApi {
 public class SouYuJinFuCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
-
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
     @Override
     @Override
     public ServerCodeEnums getType() {
     public ServerCodeEnums getType() {
         return ServerCodeEnums.SouYuJinFu;
         return ServerCodeEnums.SouYuJinFu;

+ 1 - 10
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/SuZhouJianYiRongCreditService.java

@@ -5,11 +5,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
@@ -23,11 +19,6 @@ import javax.annotation.Resource;
 @Slf4j
 @Slf4j
 @Service
 @Service
 public class SuZhouJianYiRongCreditService implements LoanDockingApi {
 public class SuZhouJianYiRongCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
-
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
     @Override
     @Override
     public ServerCodeEnums getType() {
     public ServerCodeEnums getType() {
         return ServerCodeEnums.SuZhouJianYiRong;
         return ServerCodeEnums.SuZhouJianYiRong;

+ 1 - 10
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/SuzhouchangshuoCreditService.java

@@ -5,11 +5,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.apache.commons.codec.binary.Base64;
 import org.apache.commons.codec.binary.Base64;
@@ -27,11 +23,6 @@ import javax.crypto.spec.SecretKeySpec;
 @Service
 @Service
 @Slf4j
 @Slf4j
 public class SuzhouchangshuoCreditService implements LoanDockingApi {
 public class SuzhouchangshuoCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
-
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
     @Override
     @Override
     public ServerCodeEnums getType() {
     public ServerCodeEnums getType() {
         return ServerCodeEnums.Suzhouchangshuo;
         return ServerCodeEnums.Suzhouchangshuo;

+ 1 - 10
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/TangShanRongYangCreditService.java

@@ -5,11 +5,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
@@ -23,11 +19,6 @@ import javax.annotation.Resource;
 @Slf4j
 @Slf4j
 public class TangShanRongYangCreditService implements LoanDockingApi {
 public class TangShanRongYangCreditService implements LoanDockingApi {
 
 
-    @Resource
-    private EgApiService egApiService;
-
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
     @Override
     @Override
     public ServerCodeEnums getType() {
     public ServerCodeEnums getType() {
         return ServerCodeEnums.ThangSanRongYang;
         return ServerCodeEnums.ThangSanRongYang;

+ 1 - 9
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/TianJingJiaYiCreditService.java

@@ -5,11 +5,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.apache.commons.codec.binary.Base64;
 import org.apache.commons.codec.binary.Base64;
@@ -26,11 +22,7 @@ import javax.crypto.spec.SecretKeySpec;
 @Slf4j
 @Slf4j
 @Service
 @Service
 public class TianJingJiaYiCreditService implements LoanDockingApi {
 public class TianJingJiaYiCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
 
 
     @Override
     @Override

+ 1 - 9
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/TianShuiShuYiRongCreditService.java

@@ -5,11 +5,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
 
 
@@ -22,11 +18,7 @@ import javax.annotation.Resource;
 @Slf4j
 @Slf4j
 @Service
 @Service
 public class TianShuiShuYiRongCreditService implements LoanDockingApi {
 public class TianShuiShuYiRongCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
     @Override
     @Override
     public ServerCodeEnums getType() {
     public ServerCodeEnums getType() {

+ 0 - 4
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/TuoBaoRongCreditService.java

@@ -31,11 +31,7 @@ public class TuoBaoRongCreditService implements LoanDockingApi {
     private static final String checkPath = "api/check";
     private static final String checkPath = "api/check";
     private static final String applyPath = "api/apply";
     private static final String applyPath = "api/apply";
 
 
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
 
 
 
 

+ 1 - 9
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/WeiFangHuaShenCreditService.java

@@ -5,11 +5,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.apache.http.HttpResponse;
 import org.apache.http.HttpResponse;
@@ -29,11 +25,7 @@ import java.util.Map;
 @Service
 @Service
 public class WeiFangHuaShenCreditService implements LoanDockingApi {
 public class WeiFangHuaShenCreditService implements LoanDockingApi {
 
 
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
 
 
     @Override
     @Override

+ 1 - 9
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/WeiFangYouYiCreditService.java

@@ -4,11 +4,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
@@ -23,11 +19,7 @@ import javax.annotation.Resource;
 @Slf4j
 @Slf4j
 @Service
 @Service
 public class WeiFangYouYiCreditService implements LoanDockingApi {
 public class WeiFangYouYiCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
     @Override
     @Override
     public ServerCodeEnums getType() {
     public ServerCodeEnums getType() {

+ 1 - 10
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/WenZhouGaoShenCreditService.java

@@ -5,11 +5,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
@@ -28,11 +24,6 @@ import java.util.*;
 @Service
 @Service
 public class WenZhouGaoShenCreditService implements LoanDockingApi {
 public class WenZhouGaoShenCreditService implements LoanDockingApi {
 
 
-    @Resource
-    private EgApiService egApiService;
-
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
     @Override
     @Override
     public ServerCodeEnums getType() {
     public ServerCodeEnums getType() {
         return ServerCodeEnums.WenZhouGaoShen;
         return ServerCodeEnums.WenZhouGaoShen;

+ 1 - 10
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/WenZhouYueShangXiangCreditService.java

@@ -5,11 +5,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.Data;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.apache.commons.codec.binary.Base64;
 import org.apache.commons.codec.binary.Base64;
@@ -26,11 +22,6 @@ import javax.crypto.spec.SecretKeySpec;
 @Slf4j
 @Slf4j
 @Component
 @Component
 public class WenZhouYueShangXiangCreditService  implements LoanDockingApi {
 public class WenZhouYueShangXiangCreditService  implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
-
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
     @Override
     @Override
     public ServerCodeEnums getType() {
     public ServerCodeEnums getType() {
         return ServerCodeEnums.WenZhouYueShangXiang;
         return ServerCodeEnums.WenZhouYueShangXiang;

+ 1 - 10
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/WuHanDongYuanCreditService.java

@@ -5,11 +5,7 @@ import com.alibaba.fastjson2.JSONObject;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
 import com.hrsk.cloud.eg.client.dto.user.command.UserBaseInfoCmd;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
 
 
@@ -22,11 +18,6 @@ import javax.annotation.Resource;
 @Slf4j
 @Slf4j
 @Service
 @Service
 public class WuHanDongYuanCreditService implements LoanDockingApi {
 public class WuHanDongYuanCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
-
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
     @Override
     @Override
     public ServerCodeEnums getType() {
     public ServerCodeEnums getType() {
         return ServerCodeEnums.WuHanDongYuan;
         return ServerCodeEnums.WuHanDongYuan;

+ 1 - 9
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/channel/customized/threedocking/impl/WuHanJingChengCreditService.java

@@ -2,11 +2,7 @@ package com.hrsk.cloud.eg.domain.api.channel.customized.threedocking.impl;
 
 
 import com.alibaba.fastjson2.JSON;
 import com.alibaba.fastjson2.JSON;
 import com.alibaba.fastjson2.JSONObject;
 import com.alibaba.fastjson2.JSONObject;
-import com.hrsk.cloud.eg.clinet.vo.DataVo;
-import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
-import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
-import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
-import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
+
 
 
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.EgLoanApiConfigInfoCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
 import com.hrsk.cloud.eg.client.dto.plan.command.PlanCmd;
@@ -24,11 +20,7 @@ import javax.annotation.Resource;
 @Slf4j
 @Slf4j
 @Service
 @Service
 public class WuHanJingChengCreditService implements LoanDockingApi {
 public class WuHanJingChengCreditService implements LoanDockingApi {
-    @Resource
-    private EgApiService egApiService;
 
 
-    @Resource
-    private RetryRestTemplate httpRestTemplate;
 
 
     @Override
     @Override
     public ServerCodeEnums getType() {
     public ServerCodeEnums getType() {

Some files were not shown because too many files changed in this diff