@@ -73,8 +73,7 @@
</foreach>
</select>
<select id="getTodayLoginCount" resultType="java.lang.Integer">
- select
- count(*)
+ select count(DISTINCT DATE( login_time ))
from yt_dyz_login_record
where user_id = #{userId} and DATE(login_time) = current_date()
@@ -74,8 +74,7 @@