Bläddra i källkod

fix:年度报告的日期匹配规则优化

wangzaijun 1 månad sedan
förälder
incheckning
889f0cdc9a

+ 0 - 0
logs/error.log


+ 0 - 0
logs/info.log


+ 0 - 0
logs/warn.log


+ 11 - 6
mo-daq/src/main/java/com/smppw/modaq/application/components/ReportParseUtils.java

@@ -500,13 +500,18 @@ public final class ReportParseUtils {
 //        System.out.println(emailType + ",reportType=" + reportType + ",reportDate=" + matchReportDate(reportType, text));
 
 
-        text = "官方公众号市场周报披露250430(1).docx";
-        emailType = EmailUtil.getEmailTypeBySubject(text);
-        reportType = matchReportType(emailType, text);
-        System.out.println(emailType + ",reportType=" + reportType + ",reportDate=" + matchReportDate(reportType, text));
-
+//        text = "官方公众号市场周报披露250430(1).docx";
+//        emailType = EmailUtil.getEmailTypeBySubject(text);
+//        reportType = matchReportType(emailType, text);
+//        System.out.println(emailType + ",reportType=" + reportType + ",reportDate=" + matchReportDate(reportType, text));
+//
+//
+//        text = "涌津涌赢11号私募证券投资基金-月度报告-25250508.pdf";
+//        emailType = EmailUtil.getEmailTypeBySubject(text);
+//        reportType = matchReportType(emailType, text);
+//        System.out.println(emailType + ",reportType=" + reportType + ",reportDate=" + matchReportDate(reportType, text));
 
-        text = "涌津涌赢11号私募证券投资基金-月度报告-25250508.pdf";
+        text = "年报_多元化CTA私募证券基金_2024年年度报告.pdf";
         emailType = EmailUtil.getEmailTypeBySubject(text);
         reportType = matchReportType(emailType, text);
         System.out.println(emailType + ",reportType=" + reportType + ",reportDate=" + matchReportDate(reportType, text));

+ 1 - 1
mo-daq/src/main/java/com/smppw/modaq/common/conts/PatternConsts.java

@@ -13,7 +13,7 @@ public class PatternConsts {
     /**
      * 年度报告正则匹配
      */
-    public static final Pattern ANNUALLY_PATTERN = Pattern.compile("(20[23]\\d)(度|年度|年报)");
+    public static final Pattern ANNUALLY_PATTERN = Pattern.compile("(20[23]\\d)(度|年报|年年度|年报)?");
     /**
      * 月度报告正则匹配
      */