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