统计:Review修改

This commit is contained in:
owen
2023-10-16 13:00:14 +08:00
parent ea810bb5d6
commit bb82c631e9
30 changed files with 274 additions and 207 deletions

View File

@@ -2,7 +2,7 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.iocoder.yudao.module.statistics.dal.mysql.infra.ApiAccessLogStatisticsMapper">
<select id="selectIpCountByCreateTimeBetween" resultType="java.lang.Integer">
<select id="selectIpCountByUserTypeAndCreateTimeBetween" resultType="java.lang.Integer">
SELECT COUNT(DISTINCT user_ip)
FROM infra_api_access_log
WHERE user_type = #{userType}
@@ -10,7 +10,7 @@
AND deleted = FALSE
</select>
<select id="selectUserCountByCreateTimeBetween" resultType="java.lang.Integer">
<select id="selectUserCountByUserTypeAndCreateTimeBetween" resultType="java.lang.Integer">
SELECT COUNT(DISTINCT user_id)
FROM infra_api_access_log
WHERE user_id > 0