From 903a53ca520070414df215fac486b516f98fc3f0 Mon Sep 17 00:00:00 2001 From: Mlxa0324 Date: Thu, 23 Mar 2023 23:15:45 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=95=E5=8D=B7=E6=8E=92=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/main/resources/sql/jlw/questionLogSummary.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/main/resources/sql/jlw/questionLogSummary.md b/web/src/main/resources/sql/jlw/questionLogSummary.md index d7363ae4..d460edd8 100644 --- a/web/src/main/resources/sql/jlw/questionLogSummary.md +++ b/web/src/main/resources/sql/jlw/questionLogSummary.md @@ -107,9 +107,9 @@ queryByConditionQuery select @pageTag(){ - @// 学生排名,单次试卷范围内的排名 + @// 学生排名,同一个学校单次试卷范围内的排名。 @// TODO mysql 8.0+ 支持 - RANK() over ( PARTITION BY t.question_setting_type, t.question_log_summary_from_type, t.question_setting_id ORDER BY t.question_log_summary_student_total_score DESC ) AS student_rank, -- 学生排名,单次试卷范围内的排名 + RANK() over ( PARTITION BY t.question_setting_type, t.question_log_summary_from_type, t.question_setting_id, t.org_id ORDER BY t.question_log_summary_student_total_score DESC ) AS student_rank, -- 学生排名,同一个学校单次试卷范围内的排名。 t.*, ta.student_name, ta.student_sn,