|
@@ -121,6 +121,7 @@ public class NavEmailParser extends AbstractEmailParser {
|
|
|
String destPath = filePath.replaceAll(".zip", "").replaceAll(".ZIP", "");
|
|
|
log.info("压缩包地址:{},解压后文件地址:{}", filePath, destPath);
|
|
|
List<String> dir = ExcelUtil.extractCompressedFiles(filePath, destPath);
|
|
|
+ log.info("解压后文件列表大小:{}", dir.size());
|
|
|
for (String zipFilePath : dir) {
|
|
|
emailFundNavDTOList.addAll(parseZipFile(emailContentInfoDTO, zipFilePath, emailFieldMap));
|
|
|
File file = new File(zipFilePath);
|
|
@@ -156,6 +157,7 @@ public class NavEmailParser extends AbstractEmailParser {
|
|
|
}
|
|
|
|
|
|
private List<EmailFundNavDTO> parseZipFile(EmailContentInfoDTO emailContentInfoDTO, String zipFilePath, Map<String, List<String>> emailFieldMap) {
|
|
|
+ log.info(zipFilePath+"=====================");
|
|
|
List<EmailFundNavDTO> fundNavDTOList = CollUtil.newArrayList();
|
|
|
if (ExcelUtil.isPdf(zipFilePath)) {
|
|
|
String excelFilePath = zipFilePath.replace(".pdf", System.currentTimeMillis()+".xlsx").replace(".PDF", System.currentTimeMillis()+".xlsx");
|