fix(sms): 调整定时任务执行时间避免冲突

- 将生日短信发送标志重置时间从0点调整为0点1分
- 将节假日短信发送标志重置时间从0点调整为0点1分
- 避免两个定时任务在同一时间点执行可能产生的资源竞争
master
李一帆 2025-09-29 09:14:34 +08:00
parent 13ee8d62b2
commit dcb0107fa6
2 changed files with 4 additions and 4 deletions

View File

@ -187,9 +187,9 @@ public class SmsBirthdayServiceImpl extends ServiceImpl<SmsBirthdayMapper, SmsBi
}
/**
* 0flagBirthdaySentToday0
* 01flagBirthdaySentToday0
*/
@Scheduled(cron = "0 0 0 * * ?")
@Scheduled(cron = "1 0 0 * * ?")
public void resetFlagBirthdaySentToday() {
specialistMapper.resetFlagBirthdaySentToday();
}

View File

@ -271,9 +271,9 @@ public class SmsHolidayServiceImpl extends ServiceImpl<SmsHolidayMapper, SmsHoli
}
/**
* 0flagHolidaySentToday0
* 01flagHolidaySentToday0
*/
@Scheduled(cron = "0 0 0 * * ?")
@Scheduled(cron = "1 0 0 * * ?")
public void resetFlagHolidaySentToday() {
specialistMapper.resetFlagHolidaySentToday();
}