소스 검색

校验二代征信接口优化

liuj 3 주 전
부모
커밋
69cd041d1d

+ 5 - 0
src/main/java/com/sunxung/factoring/component/util/ConstantUtil.java

@@ -730,6 +730,11 @@ public class ConstantUtil {
      */
     public static final String REFINANCING_CREDIT_REPORT_TRANS_CODE = "sop.refinancingCredit.report";
 
+    /**
+     * 校验二代征信信息是否完整
+     */
+    public static final String SOP_ENTERPRISE_CREDIT_VERIFY ="sop.enterprise.credit.verify";
+
     /**
      * sop支用上报-接口编号
      */

+ 1 - 0
src/main/java/com/sunxung/factoring/service/financing/review/impl/ReviewQuotaDisburseServiceImpl.java

@@ -343,6 +343,7 @@ public class ReviewQuotaDisburseServiceImpl extends ServiceImpl<ReviewQuotaDisbu
                     EnterpriseVerifyCreditSearch verifyCreditSearch = new EnterpriseVerifyCreditSearch();
                     verifyCreditSearch.setEnterpriseIdentity(enterprise.getSocialCreditCode());
                     verifyCreditSearch.setCustomerId(ConstantUtil.QUOTA_DISBURSE_REPORT_CUSTOMER_ID);
+                    verifyCreditSearch.setTransCode(ConstantUtil.SOP_ENTERPRISE_CREDIT_VERIFY);
                     ResponseEntity<String> responseEntity = restTemplate.postForEntity(verifyCreditEntBusinessUrl, verifyCreditSearch, String.class);
                     ResponseJson responseJson = JSONUtil.toBean(responseEntity.getBody(), ResponseJson.class);
                     if (responseEntity.getStatusCode().value() != HttpStatus.OK.value() || !responseJson.isSuccess()) {