dev_jupyter
daiao 5 years ago
parent 9b30ab55be
commit ae032c8f67

@ -466,7 +466,7 @@ class SubjectsController < ApplicationController
else
select_sql = "count(subject_course_records.id) 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}").first.except("id")
@total = @subject.subject_course_records.select("#{select_sql}").first
@subject.subject_course_records
end

Loading…
Cancel
Save