package jnpf.attendance.mapper;

import jnpf.base.mapper.SuperMapper;
import jnpf.entity.attendance.AttendanceFestivalRules;
import jnpf.model.attendance.dto.FestivalRulesQueryDto;
import jnpf.model.attendance.vo.attendance.AttendanceFestivalRulesVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface AttendanceFestivalRulesMapper extends SuperMapper<AttendanceFestivalRules> {
    /**
     * 列表
     * @param queryDto 查询参数
     * @return 列表
     */
    List<AttendanceFestivalRulesVo> getPageList(@Param("queryDto") FestivalRulesQueryDto queryDto);

    /**
     * 添加
     * @param id 主键
     * @param state 状态 1是 0否
     * @param userId 用户ID
     */
    void updateState(@Param("id") String id, @Param("state") Integer state, @Param("userId") String userId);
}
