peng
2026-03-18 e59a0201057ba67cad425fed804c82ff4ba0c6f1
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package com.tievd.cube.modules.system.mapper;
 
import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tievd.cube.commons.model.LogDTO;
import com.tievd.cube.modules.system.entity.SysLog;
import com.tievd.cube.modules.system.model.api.response.VisitsInfo;
import org.apache.ibatis.annotations.Param;
 
import java.util.Date;
import java.util.List;
 
/**
 * 系统日志
 *
 * @author 杨欣武
 * @version 2.4.0
 * @since 2022-05-07
 */
public interface SysLogMapper extends BaseMapper<SysLog> {
 
    /**
     * 清空所有日志记录
     */
    void removeAll();
 
    /**
     * 获取系统总访问次数
     *
     * @return Long
     */
    Long findTotalVisitCount();
 
    //update-begin--Author:zhangweijian  Date:20190428 for:传入开始时间,结束时间参数
 
    /**
     * 获取系统今日访问次数
     *
     * @return Long
     */
    Long findTodayVisitCount(@Param("dayStart") Date dayStart, @Param("dayEnd") Date dayEnd);
 
    /**
     * 获取系统今日访问 IP数
     *
     * @return Long
     */
    Long findTodayIp(@Param("dayStart") Date dayStart, @Param("dayEnd") Date dayEnd);
    //update-end--Author:zhangweijian  Date:20190428 for:传入开始时间,结束时间参数
 
    /**
     * 首页:根据时间统计访问数量/ip数量
     */
    List<VisitsInfo> findVisitCount(@Param("dayStart") Date dayStart, @Param("dayEnd") Date dayEnd, @Param("dbType") String dbType);
 
    /**
     * 保存日志
     */
    @InterceptorIgnore(illegalSql = "true", tenantLine = "true")
    void saveLog(@Param("dto") LogDTO dto);
}