Bläddra i källkod

add prod 配置

GITZYY 7 månader sedan
förälder
incheckning
f344d183a4

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

@@ -14,6 +14,8 @@ import com.hrsk.cloud.eg.vo.response.DataVo;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import org.apache.commons.lang3.StringUtils;
+import org.springframework.http.HttpEntity;
+import org.springframework.http.HttpHeaders;
 import org.springframework.stereotype.Service;
 
 import javax.annotation.Resource;
@@ -77,9 +79,10 @@ public class HuirongCrmCreditService implements LoanDockingApi {
             log.info("credit qualityCheck HuirongCrmCreditService request userId:{}, url:{},requestParam:{}", userInfo.getUserId(), url, requestJson);
             ResultHt response = null;
             try {
-                Map<String, String> head = new HashMap<>();
-                head.put("Content-Type", "application/json");
-                response = httpRestTemplate.restTemplate().postForObject(url,head,ResultHt.class, checkData);
+               HttpHeaders headers = new HttpHeaders();
+               headers.set("Content-Type", "application/json");
+               HttpEntity httpEntity = new HttpEntity<>(requestJson,headers);
+                response = httpRestTemplate.restTemplate().postForObject(url,httpEntity,ResultHt.class);
               log.info("hui ron result {}",JSONObject.toJSONString(response));
             } catch (Exception e) {
                 log.error("惠融crm准入异常,异常信息:{}", e.getMessage(), e);

+ 1 - 1
egress-gateway-service-infrastructure/src/main/java/com/hrsk/cloud/eg/infrastructure/repository/database/entity/ProductBusinessApiInfoDo.java

@@ -15,7 +15,7 @@ import java.util.Date;
  */
 @Data
 @Accessors(chain = true)
-@TableName("product_business_api_info_v2")
+@TableName("product_business_api_info")
 public class ProductBusinessApiInfoDo implements Serializable {
 
     private Integer id;

+ 1 - 1
start/src/main/resources/application.yaml

@@ -8,7 +8,7 @@ spring:
   application:
     name: eg-server
   profiles:
-    active: dev
+    active: pre
 #mybatis
 mybatis-plus:
   mapper-locations: classpath*:mapper/**/*.xml