|
|
|
@ -44,6 +44,9 @@ namespace :subjects do
|
|
|
|
|
puts("---------------------course_info_statistic_begin")
|
|
|
|
|
Rails.logger.info("---------------------course_info_statistic_begin")
|
|
|
|
|
subjects = Subject.where(status: 2)
|
|
|
|
|
str = ""
|
|
|
|
|
column_value = "subject_id, school_id, school_name, course_count, student_count, choice_shixun_num, " +
|
|
|
|
|
"choice_shixun_frequency, created_at, updated_at"
|
|
|
|
|
subjects.find_each do |subject|
|
|
|
|
|
puts("---------------------course_info_statistic: #{subject.id}")
|
|
|
|
|
Rails.logger.info("---------------------course_info_statistic: #{subject.id}")
|
|
|
|
|