|
@@ -387,7 +387,7 @@ public final class ReportParseUtils {
|
|
|
return null;
|
|
|
}
|
|
|
ReportType reportType = null;
|
|
|
- // 优先确认函、周报,然后才匹配定期报告,最后匹配其他观点
|
|
|
+ // 优先确认函、周报、其他观点,然后才匹配定期报告
|
|
|
boolean isAmac = Objects.equals(EmailTypeConst.REPORT_EMAIL_TYPE, emailType);
|
|
|
if (!isAmac) {
|
|
|
if (Objects.equals(EmailTypeConst.REPORT_LETTER_EMAIL_TYPE, emailType)
|
|
@@ -395,6 +395,8 @@ public final class ReportParseUtils {
|
|
|
reportType = ReportType.LETTER;
|
|
|
} else if (StrUtil.containsAny(string, ReportType.WEEKLY.getPatterns())) {
|
|
|
reportType = ReportType.WEEKLY;
|
|
|
+ } else if (StrUtil.containsAny(string, ReportType.OTHER.getPatterns())) {
|
|
|
+ reportType = ReportType.OTHER;
|
|
|
}
|
|
|
return reportType;
|
|
|
}
|
|
@@ -410,8 +412,6 @@ public final class ReportParseUtils {
|
|
|
} else if (matcher.find()) {
|
|
|
// 特殊的月报(当季度->年度->月度报告无法识别时,如果包含“\\d{1,2}月”就说明也是月报)
|
|
|
reportType = ReportType.MONTHLY;
|
|
|
- } else if (StrUtil.containsAny(string, ReportType.OTHER.getPatterns())) {
|
|
|
- reportType = ReportType.OTHER;
|
|
|
}
|
|
|
return reportType;
|
|
|
}
|