| 
														
															@@ -57,11 +57,12 @@ public class HouseBuildingIdleStrategyJob { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             List<LinkedHashMap<String, Object>> list = houseStrategyDao.getBuildingIdleStrategy(endYearMonth); 
														 | 
														
														 | 
														
															             List<LinkedHashMap<String, Object>> list = houseStrategyDao.getBuildingIdleStrategy(endYearMonth); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             String dir = jobConfig.getHouseBuildingIdleStrategyOutputPath(); 
														 | 
														
														 | 
														
															             String dir = jobConfig.getHouseBuildingIdleStrategyOutputPath(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             Path dirPath = Paths.get(dir); 
														 | 
														
														 | 
														
															             Path dirPath = Paths.get(dir); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            Path filePath = Paths.get(dir + "building_idle_strategy_" + endYearMonth + ".csv"); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             if (!Files.exists(dirPath)) { 
														 | 
														
														 | 
														
															             if (!Files.exists(dirPath)) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 Files.createDirectories(dirPath); 
														 | 
														
														 | 
														
															                 Files.createDirectories(dirPath); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 FileUtil.setDefaultDirPermissions(dirPath); 
														 | 
														
														 | 
														
															                 FileUtil.setDefaultDirPermissions(dirPath); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             } 
														 | 
														
														 | 
														
															             } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            String filename = "building_idle_strategy_" + endYearMonth + ".csv"; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            Path filePath = Paths.get(dir + filename); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             char delimiter = 1; 
														 | 
														
														 | 
														
															             char delimiter = 1; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             try (OutputStreamWriter osw = new OutputStreamWriter(Files.newOutputStream(filePath), 
														 | 
														
														 | 
														
															             try (OutputStreamWriter osw = new OutputStreamWriter(Files.newOutputStream(filePath), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     StandardCharsets.UTF_8); 
														 | 
														
														 | 
														
															                     StandardCharsets.UTF_8); 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -80,6 +81,8 @@ public class HouseBuildingIdleStrategyJob { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 } 
														 | 
														
														 | 
														
															                 } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             } 
														 | 
														
														 | 
														
															             } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             FileUtil.setDefaultFilePermissions(filePath); 
														 | 
														
														 | 
														
															             FileUtil.setDefaultFilePermissions(filePath); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            Files.createDirectories(Paths.get(jobConfig.getTempOutputDir())); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            Files.copy(filePath, Paths.get(jobConfig.getTempOutputDir() + filename)); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } catch (Exception e) { 
														 | 
														
														 | 
														
															         } catch (Exception e) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             log.error(e.getMessage(), e); 
														 | 
														
														 | 
														
															             log.error(e.getMessage(), e); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             throw new MyRuntimeException("闲置建筑面积超过1000平米策略定时任务失败"); 
														 | 
														
														 | 
														
															             throw new MyRuntimeException("闲置建筑面积超过1000平米策略定时任务失败"); 
														 |