欧阳劲驰 2 týždňov pred
rodič
commit
2fa534cf8b

+ 4 - 4
custom-gateway-zydma/src/main/java/com/shkpr/service/customgateway/zydma/components/InfoSynchronizer.java

@@ -6,13 +6,13 @@ import com.global.base.log.LogPrintMgr;
 import com.shkpr.service.customgateway.core.constants.LogFlagBusiType;
 import com.shkpr.service.customgateway.core.domain.IntegrationKey;
 import com.shkpr.service.customgateway.core.properties.CallingProperties;
+import com.shkpr.service.customgateway.core.utils.CallingUtil;
 import com.shkpr.service.customgateway.zydma.constants.MiddlePlatformMetadata;
 import com.shkpr.service.customgateway.zydma.domain.MiddlePlatformPage;
 import com.shkpr.service.customgateway.zydma.domain.MiddlePlatformResult;
 import com.shkpr.service.customgateway.zydma.domain.MiddlePlatformUser;
 import com.shkpr.service.customgateway.zydma.domain.PersonnelInfo;
 import com.shkpr.service.customgateway.zydma.service.PersonnelInfoService;
-import com.shkpr.service.customgateway.core.utils.CallingUtil;
 import lombok.extern.slf4j.Slf4j;
 import org.apache.http.message.BasicHeader;
 import org.springframework.http.HttpMethod;
@@ -41,15 +41,12 @@ public class InfoSynchronizer {
     final
     CallingProperties callingProperties;
     final
-    CallingProperties.CallingEndpoint endpoint;
-    final
     PersonnelInfoService personnelInfoService;
     final
     CallingUtil callingUtil;
 
     public InfoSynchronizer(CallingProperties callingProperties, PersonnelInfoService personnelInfoService, CallingUtil callingUtil) {
         this.callingProperties = callingProperties;
-        this.endpoint = callingProperties.getEndpoints().get(MiddlePlatformMetadata.NAME);
         this.personnelInfoService = personnelInfoService;
         this.callingUtil = callingUtil;
     }
@@ -64,6 +61,9 @@ public class InfoSynchronizer {
                 , "开始同步用户信息,开始滚动拉取数据");
         long begin = System.currentTimeMillis();
 
+        //对接点
+        CallingProperties.CallingEndpoint endpoint = callingProperties.getEndpoints().get(MiddlePlatformMetadata.NAME);
+
         //请求地址
         String url = endpoint.getUrl() + MiddlePlatformMetadata.Uri.GET_USERS;
         //请求获取用户