|
|
|
@ -12,7 +12,7 @@ queryByCondition
|
|
|
|
|
left join student ta on ta.student_id = t.student_id and ta.student_status = 1
|
|
|
|
|
left join school_class tb on tb.class_id = ta.class_id and tb.class_status = 1
|
|
|
|
|
@ // 如果关联类型不为空,则关联题目配置表
|
|
|
|
|
@if(!isEmpty(questionLogAddType)){
|
|
|
|
|
@if(!isEmpty(questionSettingType)){
|
|
|
|
|
inner join teacher_open_course_question_setting tc on tc.teacher_open_course_question_setting_id = t.teacher_open_course_question_setting_id
|
|
|
|
|
@}
|
|
|
|
|
where 1=1
|
|
|
|
@ -107,7 +107,7 @@ queryByCondition
|
|
|
|
|
and (t.is_error_favorite =#isErrorFavorite# or t.student_score != t.question_score)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(questionLogAddType)){
|
|
|
|
|
and tc.teacher_open_course_question_setting_type =#questionLogAddType#
|
|
|
|
|
and tc.question_log_add_type =#questionLogAddType#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(orgId)){
|
|
|
|
|
and t.org_id =#orgId#
|
|
|
|
@ -127,7 +127,7 @@ queryByCondition
|
|
|
|
|
@if(!isEmpty(schoolClassIdPlural)){
|
|
|
|
|
and find_in_set(ta.class_id, #schoolClassIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(questionLogAddType)){
|
|
|
|
|
@if(!isEmpty(questionSettingType)){
|
|
|
|
|
and tc.teacher_open_course_question_setting_type = #questionSettingType#
|
|
|
|
|
and tc.teacher_open_course_question_setting_status = 1
|
|
|
|
|
and tc.teacher_open_course_question_setting_push_status = 1
|
|
|
|
@ -148,7 +148,7 @@ queryByConditionQuery
|
|
|
|
|
left join student ta on ta.student_id = t.student_id and ta.student_status = 1
|
|
|
|
|
left join school_class tb on tb.class_id = ta.class_id and tb.class_status = 1
|
|
|
|
|
@ // 如果关联类型不为空,则关联题目配置表
|
|
|
|
|
@if(!isEmpty(questionLogAddType)){
|
|
|
|
|
@if(!isEmpty(questionSettingType)){
|
|
|
|
|
inner join teacher_open_course_question_setting tc on tc.teacher_open_course_question_setting_id = t.teacher_open_course_question_setting_id
|
|
|
|
|
@}
|
|
|
|
|
where 1=1
|
|
|
|
@ -261,7 +261,7 @@ queryByConditionQuery
|
|
|
|
|
@if(!isEmpty(schoolClassIdPlural)){
|
|
|
|
|
and find_in_set(ta.class_id, #schoolClassIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(questionLogAddType)){
|
|
|
|
|
@if(!isEmpty(questionSettingType)){
|
|
|
|
|
and tc.teacher_open_course_question_setting_type = #questionSettingType#
|
|
|
|
|
and tc.teacher_open_course_question_setting_status = 1
|
|
|
|
|
and tc.teacher_open_course_question_setting_push_status = 1
|
|
|
|
|