package com.cmeeting.mapper.primary;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cmeeting.pojo.UserAccessRecord;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserAccessRecordMapper extends BaseMapper<UserAccessRecord> {

    @MapKey("userId")
    Page<Map<String, String>> statisticsByDate(@Param("page") Page page, @Param("search") String search, @Param("startTime") String startTime,
                                               @Param("endTime") String endTime, @Param("dateList") List<String> dateList);
}
