fix(sms): 调整定时任务执行时间避免冲突
- 将生日短信发送标志重置时间从0点调整为0点1分 - 将节假日短信发送标志重置时间从0点调整为0点1分 - 避免两个定时任务在同一时间点执行可能产生的资源竞争master
parent
13ee8d62b2
commit
dcb0107fa6
|
|
@ -187,9 +187,9 @@ public class SmsBirthdayServiceImpl extends ServiceImpl<SmsBirthdayMapper, SmsBi
|
|||
}
|
||||
|
||||
/**
|
||||
* 每天0点重置所有专家的flagBirthdaySentToday为0
|
||||
* 每天0点1分重置所有专家的flagBirthdaySentToday为0
|
||||
*/
|
||||
@Scheduled(cron = "0 0 0 * * ?")
|
||||
@Scheduled(cron = "1 0 0 * * ?")
|
||||
public void resetFlagBirthdaySentToday() {
|
||||
specialistMapper.resetFlagBirthdaySentToday();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -271,9 +271,9 @@ public class SmsHolidayServiceImpl extends ServiceImpl<SmsHolidayMapper, SmsHoli
|
|||
}
|
||||
|
||||
/**
|
||||
* 每天0点重置所有专家的flagHolidaySentToday为0
|
||||
* 每天0点1分重置所有专家的flagHolidaySentToday为0
|
||||
*/
|
||||
@Scheduled(cron = "0 0 0 * * ?")
|
||||
@Scheduled(cron = "1 0 0 * * ?")
|
||||
public void resetFlagHolidaySentToday() {
|
||||
specialistMapper.resetFlagHolidaySentToday();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue