|  |  | @ -93,23 +93,33 @@ public class IdcServiceImpl implements IdcService { | 
			
		
	
		
		
			
				
					
					|  |  |  |         return ResultVOUtils.success(list); |  |  |  |         return ResultVOUtils.success(list); | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     /*下载任务*/ | 
			
		
	
		
		
			
				
					
					|  |  |  |     @Override |  |  |  |     @Override | 
			
		
	
		
		
			
				
					
					|  |  |  |     public BaseResponse download(HttpServletRequest request, Map<String, Object> params) { |  |  |  |     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 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) { |  |  |  |     	 if (params.containsKey("taskId") && params.get("taskId") != null) { | 
			
		
	
		
		
			
				
					
					|  |  |  |              id = params.get("taskId").toString(); |  |  |  |              id = params.get("taskId").toString(); | 
			
		
	
		
		
			
				
					
					|  |  |  |          } else { |  |  |  |          } else { | 
			
		
	
		
		
			
				
					
					|  |  |  |              id = params.get("id").toString(); |  |  |  |              id = params.get("id").toString(); | 
			
		
	
		
		
			
				
					
					|  |  |  |          } |  |  |  |          } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |          Map<String, Object> map = map = dbDao.get("select * from " + tableName + " where id='" + id + "'"); |  |  |  |          Map<String, Object> map = map = dbDao.get("select * from " + tableName + " where id='" + id + "'"); | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |          if (map == null) |  |  |  |          if (map == null) | 
			
		
	
		
		
			
				
					
					|  |  |  |             return ResultVOUtils.error(9000, "下载任务不存在"); |  |  |  |          	return ResultVOUtils.error(9000, "下载任务不存在"+tableName); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |          if (!(map.get("cacheFilePath") != null && FileUtils.isFileExist(map.get("cacheFilePath").toString()))) |  |  |  |          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()); |  |  |  |          String json = FileUtils.readFileAll(map.get("cacheFilePath").toString()); | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |          JSONObject object = JSON.parseObject(json); |  |  |  |          JSONObject object = JSON.parseObject(json); | 
			
		
	
	
		
		
			
				
					|  |  | @ -123,7 +133,6 @@ public class IdcServiceImpl implements IdcService { | 
			
		
	
		
		
			
				
					
					|  |  |  |          return ResultVOUtils.success(object); |  |  |  |          return ResultVOUtils.success(object); | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     /*UDI系统上传自助平台*/ |  |  |  |     /*UDI系统上传自助平台*/ | 
			
		
	
		
		
			
				
					
					|  |  |  |     @Override |  |  |  |     @Override | 
			
		
	
		
		
			
				
					
					|  |  |  |     public void asyncUdiTask() { |  |  |  |     public void asyncUdiTask() { | 
			
		
	
	
		
		
			
				
					|  |  | 
 |