Resolve "Список периодических событий" #129
@ -19,13 +19,16 @@ public class DeadlineScheduler {
|
||||
private final Logger log = LoggerFactory.getLogger(DeadlineScheduler.class);
|
||||
|
||||
private final PaperRepository paperRepository;
|
||||
|
||||
private final MailService mailService;
|
||||
|
||||
private final static boolean IS_DEADLINE_NOTIFICATION_BEFORE_WEEK = true;
|
||||
|
||||
public DeadlineScheduler(PaperRepository paperRepository, MailService mailService) {
|
||||
this.paperRepository = paperRepository;
|
||||
this.mailService = mailService;
|
||||
}
|
||||
private final static boolean IS_DEADLINE_NOTIFICATION_BEFORE_WEEK = true;
|
||||
|
||||
|
||||
@Scheduled(cron = "0 0 8 * 1 ?")
|
||||
public void checkDeadlineBeforeWeek() {
|
||||
|
Loading…
Reference in New Issue
Block a user