|
|
|
@ -873,21 +873,23 @@ analysisPageQuery
|
|
|
|
|
@}
|
|
|
|
|
from (
|
|
|
|
|
select
|
|
|
|
|
t.question_setting_name,
|
|
|
|
|
t.question_log_summary_from_type,
|
|
|
|
|
sum(t.question_setting_id) as total_setting_count,
|
|
|
|
|
avg(question_setting_total_score) as avg_question_setting_total_score,
|
|
|
|
|
avg(question_log_summary_student_total_score) as avg_student_score,
|
|
|
|
|
avg(question_log_summary_question_total_count) as question_total_count,
|
|
|
|
|
avg(question_log_summary_student_do_count) as avg_question_log_summary_student_do_count,
|
|
|
|
|
avg(question_log_summary_success_count) as avg_correct_count,
|
|
|
|
|
avg(question_log_summary_error_count) as avg_wrong_count,
|
|
|
|
|
avg(question_log_summary_success_rate) as avg_question_log_summary_success_rate,
|
|
|
|
|
avg(question_log_summary_is_pass) as avg_question_log_summary_is_pass,
|
|
|
|
|
avg(finish_second_time) as avg_finish_second_time
|
|
|
|
|
from question_log_summary t
|
|
|
|
|
left join teacher_open_course_question_setting ta on ta.teacher_open_course_question_setting_id = t.question_setting_id
|
|
|
|
|
where 1 = 1
|
|
|
|
|
ta.teacher_open_course_question_setting_name as question_setting_name,
|
|
|
|
|
ta.teacher_open_course_question_setting_type as question_setting_type,
|
|
|
|
|
count(distinct(ab.resources_question_snapshot_id)) as question_total_count,
|
|
|
|
|
count(distinct(t.question_setting_id)) as total_setting_count,
|
|
|
|
|
round(avg(question_setting_total_score), 1) as avg_question_setting_total_score,
|
|
|
|
|
round(avg(question_log_summary_student_total_score), 1) as avg_student_score,
|
|
|
|
|
round(avg(question_log_summary_question_total_count), 1) as avg_question_total_count,
|
|
|
|
|
round(avg(question_log_summary_student_do_count), 1) as avg_question_log_summary_student_do_count,
|
|
|
|
|
round(avg(question_log_summary_success_count), 1) as avg_correct_count,
|
|
|
|
|
round(avg(question_log_summary_error_count), 1)as avg_wrong_count,
|
|
|
|
|
round(avg(question_log_summary_success_rate), 1) as avg_question_log_summary_success_rate,
|
|
|
|
|
round(avg(question_log_summary_is_pass), 1) as avg_question_log_summary_is_pass,
|
|
|
|
|
round(avg(finish_second_time), 1) as avg_finish_second_time
|
|
|
|
|
from resources_question_snapshot ab
|
|
|
|
|
left join teacher_open_course_question_setting ta on ta.teacher_open_course_question_setting_id = ab.teacher_open_course_question_setting_id
|
|
|
|
|
left join question_log_summary t on t.question_setting_id = ab.teacher_open_course_question_setting_id
|
|
|
|
|
where 1
|
|
|
|
|
@if(!isEmpty(questionSettingType)) {
|
|
|
|
|
and t.question_setting_type = #questionSettingType#
|
|
|
|
|
and ta.teacher_open_course_question_setting_type = #questionSettingType#
|
|
|
|
@ -896,8 +898,9 @@ analysisPageQuery
|
|
|
|
|
and ta.teacher_open_course_id = #teacherOpenCourseId#
|
|
|
|
|
and ta.teacher_open_course_question_setting_status = 1
|
|
|
|
|
AND ta.teacher_open_course_question_setting_push_status = 1
|
|
|
|
|
AND ta.teacher_open_course_question_setting_name is not null
|
|
|
|
|
group by
|
|
|
|
|
t.question_setting_name,
|
|
|
|
|
question_log_summary_from_type
|
|
|
|
|
ta.teacher_open_course_question_setting_name,
|
|
|
|
|
ta.teacher_open_course_question_setting_type
|
|
|
|
|
) z
|
|
|
|
|
|