KKSU
2025-03-18 664184af3e070dee665ee736caffa0297804975f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package cc.mrbird.febs.monitor.mapper;
 
import cc.mrbird.febs.monitor.entity.LoginLog;
import cc.mrbird.febs.system.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 
import java.util.List;
import java.util.Map;
 
/**
 * @author MrBird
 */
public interface LoginLogMapper extends BaseMapper<LoginLog> {
 
    /**
     * 获取系统总访问次数
     *
     * @return Long
     */
    Long findTotalVisitCount();
 
    /**
     * 获取系统今日访问次数
     *
     * @return Long
     */
    Long findTodayVisitCount();
 
    /**
     * 获取系统今日访问 IP数
     *
     * @return Long
     */
    Long findTodayIp();
 
    /**
     * 获取系统近七天来的访问记录
     *
     * @param user 用户
     * @return 系统近七天来的访问记录
     */
    List<Map<String, Object>> findLastSevenDaysVisitCount(User user);
}