fix(sms):修正重置标记逻辑以避免不必要的更新
- 在重置生日发送标记时添加条件判断 - 在重置节假日发送标记时添加条件判断 - 避免将未设置标记的数据错误地更新为0master
parent
dcb0107fa6
commit
a868168463
|
|
@ -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();
|
||||
}
|
||||
Loading…
Reference in New Issue