| 
						
						
							
								
							
						
						
					 | 
					@ -58,6 +58,7 @@ import javax.servlet.http.HttpServletResponse; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import java.io.IOException; | 
					 | 
					 | 
					import java.io.IOException; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import java.io.InputStream; | 
					 | 
					 | 
					import java.io.InputStream; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import java.util.*; | 
					 | 
					 | 
					import java.util.*; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					import java.util.concurrent.ExecutorService; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import java.util.function.Function; | 
					 | 
					 | 
					import java.util.function.Function; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import java.util.stream.Collectors; | 
					 | 
					 | 
					import java.util.stream.Collectors; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -95,6 +96,8 @@ public class BuildingServiceImpl implements BuildingService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    private IcNeighborHoodService neighborHoodService; | 
					 | 
					 | 
					    private IcNeighborHoodService neighborHoodService; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    @Autowired | 
					 | 
					 | 
					    @Autowired | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    private EpmetCommonServiceOpenFeignClient epmetCommonServiceOpenFeignClient; | 
					 | 
					 | 
					    private EpmetCommonServiceOpenFeignClient epmetCommonServiceOpenFeignClient; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    @Autowired | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    private ExecutorService executorService; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    @Override | 
					 | 
					 | 
					    @Override | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    @Transactional(rollbackFor = Exception.class) | 
					 | 
					 | 
					    @Transactional(rollbackFor = Exception.class) | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -403,15 +406,15 @@ public class BuildingServiceImpl implements BuildingService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					     * @date 2022/2/13 10:15 上午 | 
					 | 
					 | 
					     * @date 2022/2/13 10:15 上午 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					     */ | 
					 | 
					 | 
					     */ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    @Override | 
					 | 
					 | 
					    @Override | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    @Async | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    public Result buildingImportExcel(ImportInfoFormDTO formDTO, MultipartFile file,Result<ImportTaskCommonResultDTO> importTask) throws IOException { | 
					 | 
					 | 
					    public Result buildingImportExcel(ImportInfoFormDTO formDTO, MultipartFile file,Result<ImportTaskCommonResultDTO> importTask) throws IOException { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        executorService.submit(() -> { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            ExcelReader excelReader = null; | 
					 | 
					 | 
					            ExcelReader excelReader = null; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            try { | 
					 | 
					 | 
					            try { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                InputStream inputStream = null; | 
					 | 
					 | 
					                InputStream inputStream = null; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                try { | 
					 | 
					 | 
					                try { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                    inputStream = file.getInputStream(); | 
					 | 
					 | 
					                    inputStream = file.getInputStream(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                } catch (IOException e) { | 
					 | 
					 | 
					                } catch (IOException e) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					                return new Result<String>().error("读取文件失败"); | 
					 | 
					 | 
					                    log.error("读取文件失败"); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					                } | 
					 | 
					 | 
					                } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                excelReader = EasyExcel.read(inputStream).build(); | 
					 | 
					 | 
					                excelReader = EasyExcel.read(inputStream).build(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                // 这里为了简单 所以注册了 同样的head 和Listener 自己使用功能必须不同的Listener
 | 
					 | 
					 | 
					                // 这里为了简单 所以注册了 同样的head 和Listener 自己使用功能必须不同的Listener
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -430,6 +433,7 @@ public class BuildingServiceImpl implements BuildingService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                    excelReader.finish(); | 
					 | 
					 | 
					                    excelReader.finish(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                } | 
					 | 
					 | 
					                } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            } | 
					 | 
					 | 
					            } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        }); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        return new Result<>(); | 
					 | 
					 | 
					        return new Result<>(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    } | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |