| 
						
						
							
								
							
						
						
					 | 
					@ -257,7 +257,7 @@ public class IcCustomerReportServiceImpl extends BaseServiceImpl<IcCustomerRepor | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    } | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    @Override | 
					 | 
					 | 
					    @Override | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					    public void batchExport(String reportId, String token, String paramKey, HttpServletResponse response) { | 
					 | 
					 | 
					    public void batchExport(String reportId, String paramKey, HttpServletResponse response) { | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        // 1. 首先去积木服务,查询出报表数据源的详细信息,包括报表url,isList;获取到哪一列是id(idFieldName)
 | 
					 | 
					 | 
					        // 1. 首先去积木服务,查询出报表数据源的详细信息,包括报表url,isList;获取到哪一列是id(idFieldName)
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -293,7 +293,7 @@ public class IcCustomerReportServiceImpl extends BaseServiceImpl<IcCustomerRepor | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        } | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        // 2. 调用该url的接口,获取到一个列表,根据idFieldName取出ID列
 | 
					 | 
					 | 
					        // 2. 调用该url的接口,获取到一个列表,根据idFieldName取出ID列
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					        List<String> ids = listIds(apiUrl, isHttps, idFieldName); | 
					 | 
					 | 
					        List<String> ids = listIds(paramKey, apiUrl, isHttps, idFieldName); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        // 3. 然后以这一列作为查询条件,循环,继续调用该接口,得到单条数据,每一条数据都下载一个excel,最后将其打包为一个压缩包下载
 | 
					 | 
					 | 
					        // 3. 然后以这一列作为查询条件,循环,继续调用该接口,得到单条数据,每一条数据都下载一个excel,最后将其打包为一个压缩包下载
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        Path storePath = makeTemporaryDownloadDir(reportId); | 
					 | 
					 | 
					        Path storePath = makeTemporaryDownloadDir(reportId); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -453,8 +453,9 @@ public class IcCustomerReportServiceImpl extends BaseServiceImpl<IcCustomerRepor | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					     * @param idFieldName | 
					 | 
					 | 
					     * @param idFieldName | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					     * @return | 
					 | 
					 | 
					     * @return | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					     */ | 
					 | 
					 | 
					     */ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					    public List<String> listIds(String apiUrl, boolean isHttps, String idFieldName) { | 
					 | 
					 | 
					    public List<String> listIds(String paramKey, String apiUrl, boolean isHttps, String idFieldName) { | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					        apiUrl = apiUrl.replace("${id}", ""); | 
					 | 
					 | 
					        apiUrl = apiUrl.replace("${id}", ""); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        apiUrl = apiUrl.replace("${paramKey}", paramKey); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        Map<String, Object> headers = new HashMap<>(); | 
					 | 
					 | 
					        Map<String, Object> headers = new HashMap<>(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        headers.put(Constant.AUTHORIZATION_HEADER, EpmetRequestHolder.getHeader(Constant.AUTHORIZATION_HEADER)); | 
					 | 
					 | 
					        headers.put(Constant.AUTHORIZATION_HEADER, EpmetRequestHolder.getHeader(Constant.AUTHORIZATION_HEADER)); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |