fix
This commit is contained in:
parent
450cb92d01
commit
d1e6e80f87
@ -19,13 +19,16 @@ public class DeadlineScheduler {
|
|||||||
private final Logger log = LoggerFactory.getLogger(DeadlineScheduler.class);
|
private final Logger log = LoggerFactory.getLogger(DeadlineScheduler.class);
|
||||||
|
|
||||||
private final PaperRepository paperRepository;
|
private final PaperRepository paperRepository;
|
||||||
|
|
||||||
private final MailService mailService;
|
private final MailService mailService;
|
||||||
|
|
||||||
|
private final static boolean IS_DEADLINE_NOTIFICATION_BEFORE_WEEK = true;
|
||||||
|
|
||||||
public DeadlineScheduler(PaperRepository paperRepository, MailService mailService) {
|
public DeadlineScheduler(PaperRepository paperRepository, MailService mailService) {
|
||||||
this.paperRepository = paperRepository;
|
this.paperRepository = paperRepository;
|
||||||
this.mailService = mailService;
|
this.mailService = mailService;
|
||||||
}
|
}
|
||||||
private final static boolean IS_DEADLINE_NOTIFICATION_BEFORE_WEEK = true;
|
|
||||||
|
|
||||||
@Scheduled(cron = "0 0 8 * 1 ?")
|
@Scheduled(cron = "0 0 8 * 1 ?")
|
||||||
public void checkDeadlineBeforeWeek() {
|
public void checkDeadlineBeforeWeek() {
|
||||||
|
Loading…
Reference in New Issue
Block a user