mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-11-04 12:18:42 +08:00 
			
		
		
		
	code review:会员统计
This commit is contained in:
		@@ -3,6 +3,7 @@
 | 
			
		||||
<mapper namespace="cn.iocoder.yudao.module.statistics.dal.mysql.infra.ApiAccessLogStatisticsMapper">
 | 
			
		||||
 | 
			
		||||
    <select id="selectCountByIp" resultType="java.lang.Integer">
 | 
			
		||||
        <!-- TODO @疯狂:distinct 会不会更合适哈 -->
 | 
			
		||||
        SELECT COUNT(1)
 | 
			
		||||
        FROM infra_api_access_log
 | 
			
		||||
        WHERE create_time BETWEEN #{beginTime} AND #{endTime}
 | 
			
		||||
@@ -11,6 +12,7 @@
 | 
			
		||||
    </select>
 | 
			
		||||
 | 
			
		||||
    <select id="selectCountByUserId" resultType="java.lang.Integer">
 | 
			
		||||
        <!-- TODO @疯狂:distinct 会不会更合适哈 -->
 | 
			
		||||
        SELECT COUNT(1)
 | 
			
		||||
        FROM infra_api_access_log
 | 
			
		||||
        WHERE user_id > 0
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user