fix(sms):修正重置标记逻辑以避免不必要的更新

- 在重置生日发送标记时添加条件判断
- 在重置节假日发送标记时添加条件判断
- 避免将未设置标记的数据错误地更新为0
master
李一帆 2025-09-29 09:16:46 +08:00
parent dcb0107fa6
commit a868168463
1 changed files with 2 additions and 2 deletions

View File

@ -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();
}