|
|
|
@ -467,7 +467,7 @@ class SubjectsController < ApplicationController
|
|
|
|
|
@subject.subject_course_records
|
|
|
|
|
select_sql = "count(*) total, sum(course_count) course_count, sum(student_count) student_count, " +
|
|
|
|
|
"sum(choice_shixun_num) choice_shixun_num, sum(choice_shixun_frequency) choice_shixun_frequency"
|
|
|
|
|
@total = @subject.subject_course_records.select("select_sql")
|
|
|
|
|
@total = @subject.subject_course_records.select("select_sql").first
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
@data_count = @data.count
|
|
|
|
|