|
@@ -559,6 +559,19 @@ public class EmailTemplateService {
|
|
Optional.ofNullable(getRealFilePath(zipFilePath, null)).ifPresent(emailFileContentDTOList::addAll);
|
|
Optional.ofNullable(getRealFilePath(zipFilePath, null)).ifPresent(emailFileContentDTOList::addAll);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ }else if(ExcelUtil.isRAR(filePath)){
|
|
|
|
+ String destPath = filePath.replaceAll(".rar", "").replaceAll(".RAR", "");
|
|
|
|
+ List<String> dir = ExcelUtil.extractCompressedFiles(filePath, destPath);
|
|
|
|
+ for (String zipFilePath : dir) {
|
|
|
|
+ File file = new File(zipFilePath);
|
|
|
|
+ if (file.isDirectory()) {
|
|
|
|
+ for (String navFilePath : Objects.requireNonNull(file.list())) {
|
|
|
|
+ Optional.ofNullable(getRealFilePath(navFilePath, null)).ifPresent(emailFileContentDTOList::addAll);
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ Optional.ofNullable(getRealFilePath(zipFilePath, null)).ifPresent(emailFileContentDTOList::addAll);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
return emailFileContentDTOList;
|
|
return emailFileContentDTOList;
|
|
}
|
|
}
|