package com.template.services;

import com.template.model.pojo.SmartAccess;
import com.baomidou.mybatisplus.extension.service.IService;
import com.template.model.result.PageUtils;
import com.template.model.vo.SmartAccessVo;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ceshi
 * @since 2024-05-31
 */
public interface SmartAccessService extends IService<SmartAccess> {

    List<SmartAccess> track(String stateTime, String endTime, Integer id);

    PageUtils<SmartAccessVo> getPage(Integer currentPage, Integer pageCount,String keyWord,Integer gradeId, Integer classId, Integer departmentId,String openType,String resultStatus,String startTime,String endTime);

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

    PageUtils<SmartAccessVo> getAccessPage(Integer currentPage, Integer pageCount, String keyWord, Integer gradeId, Integer classId, String resultStatus, String inOut, String startTime, String endTime);

    List<SmartAccess> toDatelist(LocalDateTime start, LocalDateTime end);

    List<SmartAccess> toDateAndPlacelist(LocalDateTime startTime, LocalDateTime endTime, String type);
}
