Compare commits
2 Commits
13ee8d62b2
...
a868168463
| Author | SHA1 | Date |
|---|---|---|
|
|
a868168463 | |
|
|
dcb0107fa6 |
|
|
@ -11,9 +11,9 @@ import org.apache.ibatis.annotations.Update;
|
|||
* @since 2025-09-23
|
||||
*/
|
||||
public interface SmsSpecialistMapper extends BaseMapper<SmsSpecialist> {
|
||||
@Update("update specialist set flag_birthday_sent_today = 0")
|
||||
@Update("update specialist set flag_birthday_sent_today = 0 where flag_birthday_sent_today = 1")
|
||||
void resetFlagBirthdaySentToday();
|
||||
|
||||
@Update("update specialist set flag_holiday_sent_today = 0")
|
||||
@Update("update specialist set flag_holiday_sent_today = 0 where flag_holiday_sent_today = 1")
|
||||
void resetFlagHolidaySentToday();
|
||||
}
|
||||
|
|
@ -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