package com.template.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.template.model.pojo.SmartAccess;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.template.model.vo.SmartAccessVo;
import com.template.model.vo.VisitorPageVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ceshi
 * @since 2024-05-31
 */
@Repository
public interface SmartAccessMapper extends BaseMapper<SmartAccess> {

    IPage<SmartAccessVo> getPage(Page<SmartAccessVo> page, @Param("keyWord") String keyWord, @Param("gradeId") Integer gradeId, @Param("classId") Integer classId, @Param("departmentId") Integer departmentId, @Param("openType") String openType, @Param("resultStatus") String resultStatus, @Param("startTime") String startTime, @Param("endTime") String endTime);

    List<SmartAccessVo> getPageExport(@Param("keyWord") String keyWord, @Param("gradeId") Integer gradeId, @Param("classId") Integer classId, @Param("departmentId") Integer departmentId, @Param("openType") String openType, @Param("resultStatus") String resultStatus, @Param("startTime") String startTime, @Param("endTime") String endTime);

}
