|  |  |  | @ -97,8 +97,18 @@ public class IdcServiceImpl implements IdcService { | 
			
		
	
		
			
				
					|  |  |  |  |     /*下载任务*/ | 
			
		
	
		
			
				
					|  |  |  |  |     @Override | 
			
		
	
		
			
				
					|  |  |  |  |     public BaseResponse download(HttpServletRequest request, Map<String, Object> params) { | 
			
		
	
		
			
				
					|  |  |  |  |     	return statusFile(params,"basic_export_status"); | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  |     @Override | 
			
		
	
		
			
				
					|  |  |  |  |     public BaseResponse uploadStatus(HttpServletRequest request, Map<String, Object> params) { | 
			
		
	
		
			
				
					|  |  |  |  |     	return statusFile(params,"basic_upload_status"); | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  |     @Override | 
			
		
	
		
			
				
					|  |  |  |  |     public BaseResponse downloadStatus(HttpServletRequest request, Map<String, Object> params) { | 
			
		
	
		
			
				
					|  |  |  |  |     	return statusFile(params,"basic_download_status"); | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  |     private BaseResponse statusFile(Map<String,Object> params,String tableName) { | 
			
		
	
		
			
				
					|  |  |  |  |     	String id = ""; | 
			
		
	
		
			
				
					|  |  |  |  |         String tableName = params.get("scheduleType") != null && params.get("scheduleType").equals("3") ? "basic_export_status" : "basic_export_status"; | 
			
		
	
		
			
				
					|  |  |  |  |     	 if (params.containsKey("taskId") && params.get("taskId") != null) { | 
			
		
	
		
			
				
					|  |  |  |  |              id = params.get("taskId").toString(); | 
			
		
	
		
			
				
					|  |  |  |  |          } else { | 
			
		
	
	
		
			
				
					|  |  |  | @ -108,9 +118,9 @@ public class IdcServiceImpl implements IdcService { | 
			
		
	
		
			
				
					|  |  |  |  |          Map<String, Object> map = map = dbDao.get("select * from " + tableName + " where id='" + id + "'"); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |          if (map == null) | 
			
		
	
		
			
				
					|  |  |  |  |             return ResultVOUtils.error(9000, "下载任务不存在"); | 
			
		
	
		
			
				
					|  |  |  |  |          	return ResultVOUtils.error(9000, "下载任务不存在"+tableName); | 
			
		
	
		
			
				
					|  |  |  |  |          if (!(map.get("cacheFilePath") != null && FileUtils.isFileExist(map.get("cacheFilePath").toString()))) | 
			
		
	
		
			
				
					|  |  |  |  |             return ResultVOUtils.error(9000, "下载文件不存在"); | 
			
		
	
		
			
				
					|  |  |  |  |              return ResultVOUtils.error(9000, "下载文件不存在-"+tableName); | 
			
		
	
		
			
				
					|  |  |  |  |          String json = FileUtils.readFileAll(map.get("cacheFilePath").toString()); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |          JSONObject object = JSON.parseObject(json); | 
			
		
	
	
		
			
				
					|  |  |  | 
 |