package jnpf.attendance.mapper;

import jnpf.base.mapper.SuperMapper;
import jnpf.entity.attendance.DailyRuleChange;
import jnpf.model.attendance.vo.UserDayVo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * 出勤规则变更
 *
 * @author yanwenfu
 * @create 2026-05-20
 */
public interface DailyRuleChangeMapper extends SuperMapper<DailyRuleChange> {

    /**
     * 批量保存变更
     * @param list 变更列表
     */
    void saveRecordBatch(@Param("list") List<DailyRuleChange> list);

    /**
     * 删除小于当前时间的记录
     * @param list 变更列表
     * @param day 当前时间
     */
    void removeBatch(@Param("list") List<UserDayVo> list, @Param("day") Date day);
}
