Resolve "Список периодических событий" #129

Merged
romanov73 merged 57 commits from 4-show-time-line into master 2018-10-30 23:32:01 +04:00
Showing only changes of commit d1e6e80f87 - Show all commits

View File

@ -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() {