From 7401ec52966350def03020df2745c517606e1b1d Mon Sep 17 00:00:00 2001 From: whb <17803890193@163.com> Date: Tue, 18 Jun 2024 13:38:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=94=A8=E6=88=B7=E4=B8=AD?= =?UTF-8?q?=E5=BF=83=E7=99=BB=E5=BD=95=E5=A4=A9=E6=95=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/main/resources/sql/jlw/student.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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)) {