|  |  |  | @ -104,7 +104,20 @@ public class FileServiceImpl implements FileService { | 
			
		
	
		
			
				
					|  |  |  |  |     public BaseResponse fileDownload(HttpServletRequest request,Map<String,Object> params) { | 
			
		
	
		
			
				
					|  |  |  |  |         Map<String, Object> map = dbDao.get("select * from sync_data_set limit 1"); | 
			
		
	
		
			
				
					|  |  |  |  |         if(map!=null&&map.get("syncIp")!=null) { | 
			
		
	
		
			
				
					|  |  |  |  |         | 
			
		
	
		
			
				
					|  |  |  |  |             String result = IDCUtils.post(map.get("syncIp").toString()+"/spssync/file/downloadFile", params); | 
			
		
	
		
			
				
					|  |  |  |  |             JSONObject object = JSON.parseObject(result); | 
			
		
	
		
			
				
					|  |  |  |  |             boolean success = false; | 
			
		
	
		
			
				
					|  |  |  |  |             if(object.getInteger("code")==20000) { | 
			
		
	
		
			
				
					|  |  |  |  |                 String[] files = params.get("fileName").toString().split(","); | 
			
		
	
		
			
				
					|  |  |  |  |                 success = true; | 
			
		
	
		
			
				
					|  |  |  |  |                 for(String str:files) { | 
			
		
	
		
			
				
					|  |  |  |  |                     if(!idcService.signleDownloadFile(map.get("syncIp").toString(), str)) | 
			
		
	
		
			
				
					|  |  |  |  |                         success = false; | 
			
		
	
		
			
				
					|  |  |  |  |                 } | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |             if(!success) | 
			
		
	
		
			
				
					|  |  |  |  |                 return ResultVOUtils.error(9999,"失败"); | 
			
		
	
		
			
				
					|  |  |  |  |         } else { | 
			
		
	
		
			
				
					|  |  |  |  |             return ResultVOUtils.error(9999,"中继服务地址未配置,请至同步设置中进行配置"); | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
	
		
			
				
					|  |  |  | 
 |