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,