| 
					
				 | 
			
			
				@@ -3,6 +3,7 @@ package com.xunmei.sync.service.impl; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.alibaba.fastjson.JSONArray; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.alibaba.fastjson.JSONObject; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.xunmei.common.core.http.service.params.HttpParamsGet; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.xunmei.sync.config.ThirdPartySystemConfig; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.xunmei.sync.dto.fjnxsync.FJNXXmlOrgDto; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.xunmei.sync.dto.fjnxsync.SyncResponseDto; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.xunmei.sync.service.IFJNXOrgSyncService; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -31,14 +32,17 @@ public class FJNXOrgSyncServiceImpl implements IFJNXOrgSyncService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     FjnxXmlApi fjnxXmlApi; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    private ThirdPartySystemConfig thirdPartySystemConfig; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Override 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public SyncResponseDto getOrgSyncFileInfo() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         final Map<String, Object> params = new HashMap<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         // TODO 后期将参数和地址 放在数据库中,放在配置文件中如果不是多套需要修改多个配置文件,可以放在数据库中 获取一次后放入Redis缓存 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        params.put("systemCode", 61303); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        params.put("orgCode", "900000000"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        params.put("systemCode", thirdPartySystemConfig.getFjnxSystemCode()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        params.put("orgCode", thirdPartySystemConfig.getFjnxSyncOrgTopOrgCode()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 //        final JSONObject data = this.fjnxApi.get(HttpParamsGet.get("/sp-app-batch/api/syncout/orgdirect", params)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        final JSONObject data = this.fjnxApi.get(HttpParamsGet.get("/fjnx/mock/orgfileInfo", params)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        final JSONObject data = this.fjnxApi.get(HttpParamsGet.get(thirdPartySystemConfig.getFjnxSyncOrgFileInfoUrl(), params)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (data == null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             return null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -52,12 +56,12 @@ public class FJNXOrgSyncServiceImpl implements IFJNXOrgSyncService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         // TODO 后期将参数和地址 放在数据库中,放在配置文件中如果不是多套需要修改多个配置文件,可以放在数据库中 获取一次后放入Redis缓存 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         final Map<String, Object> params = new HashMap<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        params.put("systemCode", "61303"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        params.put("systemCode",  thirdPartySystemConfig.getFjnxSystemCode());//"61303" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         params.put("fileName", syncResponseDto.getData().getFileName()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         params.put("fileId", syncResponseDto.getData().getFileId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         params.put("storageType", "localdisk"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 //        final String data= fjnxXmlApi.get(HttpParamsGet.get("/yusp-file/api/file/download", params)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        final String data= fjnxXmlApi.get(HttpParamsGet.get("/fjnx/mock/orgxmldata", params)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        final String data= fjnxXmlApi.get(HttpParamsGet.get(thirdPartySystemConfig.getFjnxSyncOrgFileDownloadUrl(), params)); //"/fjnx/mock/orgxmldata" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         try { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             return FjnxXmlApi.convertXmlToJavaBean(data, FJNXXmlOrgDto.class); 
			 |