Browse Source

fix:报告解析多往前找1小时,防止部分报告从默认收件箱移动到文件夹后没有解析

wangzaijun 1 month ago
parent
commit
5299f8f430

+ 2 - 2
mo-daq/src/main/java/com/smppw/modaq/application/task/ParseSchedulerTask.java

@@ -97,8 +97,8 @@ public class ParseSchedulerTask {
         long start = System.currentTimeMillis();
         long start = System.currentTimeMillis();
         Date now = new Date();
         Date now = new Date();
         try {
         try {
-            // 尽可能往前找20分钟覆盖可能遗漏的邮件
-            Date startTime = DateUtil.offsetMinute(task.getStartTime(), -20);
+            // 尽可能往前找60分钟覆盖可能遗漏的邮件
+            Date startTime = DateUtil.offsetMinute(task.getStartTime(), -60);
             // 定期报告从 我的文件夹.报告公告 文件夹获取邮件
             // 定期报告从 我的文件夹.报告公告 文件夹获取邮件
             this.emailParseApiService.parseEmail(startTime, now,
             this.emailParseApiService.parseEmail(startTime, now,
                     ListUtil.of("其他文件夹/报告公告"), EmailTypeConst.REPORT_EMAIL_TYPES);
                     ListUtil.of("其他文件夹/报告公告"), EmailTypeConst.REPORT_EMAIL_TYPES);