Compare commits
No commits in common. "a868168463923835ddec084e8e7c43e63cf71b58" and "13ee8d62b2955ec3e2d940b3a64de5823a9bf734" have entirely different histories.
a868168463
...
13ee8d62b2
|
|
@ -11,9 +11,9 @@ import org.apache.ibatis.annotations.Update;
|
||||||
* @since 2025-09-23
|
* @since 2025-09-23
|
||||||
*/
|
*/
|
||||||
public interface SmsSpecialistMapper extends BaseMapper<SmsSpecialist> {
|
public interface SmsSpecialistMapper extends BaseMapper<SmsSpecialist> {
|
||||||
@Update("update specialist set flag_birthday_sent_today = 0 where flag_birthday_sent_today = 1")
|
@Update("update specialist set flag_birthday_sent_today = 0")
|
||||||
void resetFlagBirthdaySentToday();
|
void resetFlagBirthdaySentToday();
|
||||||
|
|
||||||
@Update("update specialist set flag_holiday_sent_today = 0 where flag_holiday_sent_today = 1")
|
@Update("update specialist set flag_holiday_sent_today = 0")
|
||||||
void resetFlagHolidaySentToday();
|
void resetFlagHolidaySentToday();
|
||||||
}
|
}
|
||||||
|
|
@ -187,9 +187,9 @@ public class SmsBirthdayServiceImpl extends ServiceImpl<SmsBirthdayMapper, SmsBi
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 每天0点1分重置所有专家的flagBirthdaySentToday为0
|
* 每天0点重置所有专家的flagBirthdaySentToday为0
|
||||||
*/
|
*/
|
||||||
@Scheduled(cron = "1 0 0 * * ?")
|
@Scheduled(cron = "0 0 0 * * ?")
|
||||||
public void resetFlagBirthdaySentToday() {
|
public void resetFlagBirthdaySentToday() {
|
||||||
specialistMapper.resetFlagBirthdaySentToday();
|
specialistMapper.resetFlagBirthdaySentToday();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -271,9 +271,9 @@ public class SmsHolidayServiceImpl extends ServiceImpl<SmsHolidayMapper, SmsHoli
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 每天0点1分重置所有专家的flagHolidaySentToday为0
|
* 每天0点重置所有专家的flagHolidaySentToday为0
|
||||||
*/
|
*/
|
||||||
@Scheduled(cron = "1 0 0 * * ?")
|
@Scheduled(cron = "0 0 0 * * ?")
|
||||||
public void resetFlagHolidaySentToday() {
|
public void resetFlagHolidaySentToday() {
|
||||||
specialistMapper.resetFlagHolidaySentToday();
|
specialistMapper.resetFlagHolidaySentToday();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue