|
@@ -37,15 +37,15 @@ public class MoDaqApplicationTests {
|
|
|
|
|
|
@Test
|
|
|
public void reportTest() {
|
|
|
- MailboxInfoDTO emailInfoDTO = this.buildMailbox("*@simuwang.com", "**");
|
|
|
- Date startDate = DateUtil.parse("2025-04-29 08:40:00", DateConst.YYYY_MM_DD_HH_MM_SS);
|
|
|
+ MailboxInfoDTO emailInfoDTO = this.buildMailbox("**@simuwang.com", "**");
|
|
|
+ Date startDate = DateUtil.parse("2025-04-29 17:00:00", DateConst.YYYY_MM_DD_HH_MM_SS);
|
|
|
Date endDate = DateUtil.parse("2025-04-29 19:42:05", DateConst.YYYY_MM_DD_HH_MM_SS);
|
|
|
try {
|
|
|
List<String> folderNames = ListUtil.list(false);
|
|
|
// folderNames.add("其他文件夹/报告公告");
|
|
|
folderNames.add("INBOX");
|
|
|
emailParseService.parseEmail(emailInfoDTO, startDate, endDate,
|
|
|
- folderNames, ListUtil.of(EmailTypeConst.REPORT_LETTER_EMAIL_TYPE));
|
|
|
+ folderNames, EmailTypeConst.REPORT_EMAIL_TYPES);
|
|
|
} catch (Exception e) {
|
|
|
throw new RuntimeException(e);
|
|
|
}
|