|
@@ -3,16 +3,17 @@ package com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.impl;
|
|
import com.alibaba.fastjson2.JSON;
|
|
import com.alibaba.fastjson2.JSON;
|
|
import com.alibaba.fastjson2.JSONArray;
|
|
import com.alibaba.fastjson2.JSONArray;
|
|
import com.alibaba.fastjson2.JSONObject;
|
|
import com.alibaba.fastjson2.JSONObject;
|
|
-import com.hrsk.cloud.eg.app.constant.ServerCodeEnums;
|
|
|
|
-import com.hrsk.cloud.eg.app.threedocking.LoanDockingApi;
|
|
|
|
-import com.hrsk.cloud.eg.dto.data.egPlan.PlanCmd;
|
|
|
|
-import com.hrsk.cloud.eg.dto.data.user.UserBaseInfoCmd;
|
|
|
|
|
|
+import com.hrsk.cloud.eg.clinet.dto.data.plan.command.EgLoanApiConfigInfoCmd;
|
|
|
|
+import com.hrsk.cloud.eg.clinet.dto.data.plan.command.PlanCmd;
|
|
|
|
+import com.hrsk.cloud.eg.clinet.dto.data.user.command.UserBaseInfoCmd;
|
|
|
|
+import com.hrsk.cloud.eg.clinet.vo.DataVo;
|
|
|
|
+import com.hrsk.cloud.eg.domain.common.constant.ServerCodeEnums;
|
|
import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
|
|
import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
|
|
-import com.hrsk.cloud.eg.infrastructure.config.client.config.RetryRestTemplate;
|
|
|
|
|
|
+import com.hrsk.cloud.eg.infrastructure.config.client.RetryRestTemplate;
|
|
|
|
+import com.hrsk.cloud.eg.infrastructure.loanMannager.threedocking.LoanDockingApi;
|
|
import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
|
|
import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
|
|
import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
|
|
import com.hrsk.cloud.eg.infrastructure.service.EgApiService;
|
|
import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
|
|
import com.hrsk.cloud.eg.infrastructure.utils.Md5Util;
|
|
-import com.hrsk.cloud.eg.vo.response.DataVo;
|
|
|
|
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;
|
|
@@ -42,7 +43,7 @@ public class QingyuV2CreditService implements LoanDockingApi {
|
|
@Resource
|
|
@Resource
|
|
private RetryRestTemplate httpRestTemplate;
|
|
private RetryRestTemplate httpRestTemplate;
|
|
@Override
|
|
@Override
|
|
- public ServerCodeEnums getType() {
|
|
|
|
|
|
+ public ServerCodeEnums getType() {
|
|
return ServerCodeEnums.CRM_QY_V2;
|
|
return ServerCodeEnums.CRM_QY_V2;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -56,11 +57,10 @@ public class QingyuV2CreditService 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) {
|
|
|
|
|
|
+ public DataVo qualityCheck(UserBaseInfoCmd userInfo, PlanCmd product, EgLoanApiConfigInfoCmd configInfoCmd) {
|
|
try {
|
|
try {
|
|
log.info("credit QingyuV2CreditService qualityCheck begin...userId:{},productId={}", userInfo.getUserId(), product.getPlanId());
|
|
log.info("credit QingyuV2CreditService qualityCheck begin...userId:{},productId={}", userInfo.getUserId(), product.getPlanId());
|
|
- EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(product.getApiId());
|
|
|
|
- byte[] requestConfig = loanApiConfigInfo.getApiConfig();
|
|
|
|
|
|
+ byte[] requestConfig = configInfoCmd.getRequestConfig();
|
|
Object deserialize = HessianUtils.deserialize(requestConfig);
|
|
Object deserialize = HessianUtils.deserialize(requestConfig);
|
|
JSONObject config = JSONObject.parseObject(deserialize.toString());
|
|
JSONObject config = JSONObject.parseObject(deserialize.toString());
|
|
log.info("庆鱼V2.0对接参数:{}", JSON.toJSONString(config));
|
|
log.info("庆鱼V2.0对接参数:{}", JSON.toJSONString(config));
|