1
13693261870
2024-11-27 3c79d1b62d794cda8b9976610956057f212a4706
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
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.se.system.mapper.IndexMapper">
    <select id="newUserCount" resultType="java.lang.Integer">
        select count(*) from sys_user where create_time >= #{createTime};
    </select>
 
    <select id="userCountList" resultType="java.util.Map">
        select user_name userName, count(*) count
        from sys_logininfor
        where access_time >= #{createTime}
        group by user_name
        order by count desc
        limit ${amount};
    </select>
 
    <select id="uvCount" resultType="java.lang.Integer">
        select count(distinct user_name, ipaddr, date_format(access_time, '%Y%m%d')) count
        from sys_logininfor
        where access_time >= #{createTime};
    </select>
 
    <select id="pvCount" resultType="java.lang.Integer">
        select count(*)
        from sys_oper_log
        where oper_url = '/index/addAccessLog' and oper_time >= #{createTime};
    </select>
</mapper>