学生答案

beetlsql3-dev
Mlxa0324 2 years ago
parent d68e7d0757
commit b28ea11b65

@ -482,6 +482,16 @@ getValuesByQueryNotWithPermission
* 根据不为空的参数进行查询 * 根据不为空的参数进行查询
select t.* select t.*
@if(!isEmpty(studentId)){
,(select b.teacher_open_course_question_log_answer
from teacher_open_course_question_log b
where 1 = 1 and b.student_id = #studentId#
and b.teacher_open_course_question_log_status = 1
and b.teacher_open_course_question_setting_id = t.teacher_open_course_question_setting_id
and b.resources_question_snapshot_id = t.resources_question_snapshot_id
order by teacher_open_course_question_log_add_time desc limit 1
) as student_answer
@}
from resources_question_snapshot t from resources_question_snapshot t
where 1=1 where 1=1
@if(!isEmpty(resourcesQuestionSnapshotId)){ @if(!isEmpty(resourcesQuestionSnapshotId)){

Loading…
Cancel
Save