dev_jupyter
daiao 5 years ago
parent 271dbe1cbd
commit e2fa4112b8

@ -467,7 +467,7 @@ class SubjectsController < ApplicationController
@subject.subject_course_records @subject.subject_course_records
select_sql = "count(*) total, sum(course_count) course_count, sum(student_count) student_count, " + 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" "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 end
@data_count = @data.count @data_count = @data.count

Loading…
Cancel
Save