diff --git a/web/src/main/resources/sql/jlw/student.md b/web/src/main/resources/sql/jlw/student.md index f90d67c7..4ab105d6 100644 --- a/web/src/main/resources/sql/jlw/student.md +++ b/web/src/main/resources/sql/jlw/student.md @@ -1594,8 +1594,17 @@ studentActiveInfo 1 AND zz.id = zxc.user_id ) AS class_rank_no, - (select count(1) from sys_log sl where request_url = #@com.ibeetl.jlw.conf.KeyExpiredListener.TOKEN_EXPIRED_MESSAGE# - and sl.student_id = zxc.student_id and sl.user_id = zxc.user_id group by date(create_time) LIMIT 1) AS login_days + ( + SELECT count(1) + FROM ( + SELECT date(create_time) + FROM sys_log sl + WHERE request_url = #@com.ibeetl.jlw.conf.KeyExpiredListener.TOKEN_EXPIRED_MESSAGE# + AND sl.student_id = zxc.student_id + AND sl.user_id = zxc.user_id + GROUP BY date(create_time) + ) AS login_days + ) AS login_days FROM ( SELECT user_id, org_id, class_id, student_name, student_sn, student_id FROM student WHERE 1 @if(!isEmpty(userId)) {