diff --git a/mailbox-lan/src/main/java/com/biutag/lan/crontab/MailSourceJob.java b/mailbox-lan/src/main/java/com/biutag/lan/crontab/MailSourceJob.java index 9172590..babe67c 100644 --- a/mailbox-lan/src/main/java/com/biutag/lan/crontab/MailSourceJob.java +++ b/mailbox-lan/src/main/java/com/biutag/lan/crontab/MailSourceJob.java @@ -29,7 +29,7 @@ public class MailSourceJob { private final MailSourceService mailSourceService; -// @Scheduled(fixedRate = 30000) +// @Scheduled(fixedRate = 60000) @Transactional(rollbackFor = Exception.class) public void extractMailSource() { System.out.println("extractMailSource------------"); diff --git a/mailbox-lan/src/main/java/com/biutag/lan/domain/MailSource.java b/mailbox-lan/src/main/java/com/biutag/lan/domain/MailSource.java index caf1526..693149b 100644 --- a/mailbox-lan/src/main/java/com/biutag/lan/domain/MailSource.java +++ b/mailbox-lan/src/main/java/com/biutag/lan/domain/MailSource.java @@ -88,11 +88,23 @@ public class MailSource { @AllArgsConstructor public enum Source { + + // 局长信箱 MAILBOX("mailbox", "XXWW"), + // 110举报投诉 REPORT_COMPLAINTS("110_report_complaints", "JBTS"), + // 12345市长热线 HOTLINE("12345_mayor's_hotline", "SZRX"), + // 红网问政 RED_NETWORK_POLITICS("red_network_politics", "HWWZ"), - CREATE_YOUR_OWN_LETTERS("create_your_own_letters", "ZJXJ"); + // 自建信件 + CREATE_YOUR_OWN_LETTERS("create_your_own_letters", "ZJXJ"), + + // 信访投诉 + PETITION_COMPLAINTS("petition_complaints", "XXTS"), + + // 新闻舆情 + NEWS_OPINION("news_opinion", "XXYQ"); @Getter private String value;