From b36956a9630877d590d8c3b7f30d6cfb097666bc Mon Sep 17 00:00:00 2001 From: Mlxa0324 Date: Mon, 28 Nov 2022 23:35:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=98=AF=E5=90=A6=E5=B7=B2=E4=BA=A4=E5=8D=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sql/jlw/resourcesQuestionSnapshot.md | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/web/src/main/resources/sql/jlw/resourcesQuestionSnapshot.md b/web/src/main/resources/sql/jlw/resourcesQuestionSnapshot.md index 7a6094fd..35e68a46 100644 --- a/web/src/main/resources/sql/jlw/resourcesQuestionSnapshot.md +++ b/web/src/main/resources/sql/jlw/resourcesQuestionSnapshot.md @@ -614,9 +614,19 @@ getQuestionTestSimpleInfo WHERE tb.teacher_open_course_question_setting_id = t.teacher_open_course_question_setting_id AND tb.question_status = 1 - AND t.teacher_open_course_question_setting_status = 1 - AND t.teacher_open_course_question_setting_push_status = 1 - ) AS question_total_count + ) AS question_total_count, + ( + SELECT + count( 1 ) > 0 + FROM + teacher_open_course_question_log tc + WHERE + tc.teacher_open_course_question_setting_id = t.teacher_open_course_question_setting_id + AND tc.teacher_open_course_question_log_status = 1 + @ // 是否已交卷 + AND tc.question_log_add_type = 'FINALLY_SUBMIT' + LIMIT 1 + ) AS is_finished @} FROM teacher_open_course_question_setting t