| | |
| | | /** |
| | | * 创建Zip包 |
| | | */ |
| | | public String createZipFile(UserEntity ue, List<String> entities, String wkt, String pwd) { |
| | | public String createZipFile(UserEntity ue, List<String> entities, String wkt, String pwd) throws Exception { |
| | | Map<String, List<?>> map = queryData(entities, wkt); |
| | | if (map.size() == 0) { |
| | | return null; |
| | | } |
| | | |
| | | //String tempName = StringHelper.YMDHMS2_FORMAT.format(new Date()); |
| | | //String tempPath = pathHelper.getTempPath(tempName); |
| | | //String filePath = tempPath + File.separator + tempName + ".gdb"; |
| | | String tempName = StringHelper.YMDHMS2_FORMAT.format(new Date()); |
| | | String tempPath = pathHelper.getTempPath(tempName); |
| | | String filePath = tempPath + File.separator + tempName + ".gdb"; |
| | | |
| | | String filePath = "D:\\LF\\temp\\20221219202706\\20221219202705.gdb"; |
| | | File file = new File(filePath); |
| | | if (!file.exists() || !file.isDirectory()) { |
| | | file.mkdirs(); |
| | | } |
| | | |
| | | filePath = "D:\\LF\\temp\\20221219202706\\2022.gdb"; |
| | | if (file.exists() && file.isDirectory()) { |
| | | FileHelper.deleteDir(filePath); |
| | | } |