|
|
|
@ -44,7 +44,6 @@ class Admins::SchoolDailyStatisticService < ApplicationService
|
|
|
|
|
|
|
|
|
|
courses = Course.where(is_delete: 0, school_id: ids).group('school_id')
|
|
|
|
|
course_map = courses.count
|
|
|
|
|
Rails.logger.info("####courses_daiao: #{courses.inspect}")
|
|
|
|
|
nearly_course_time_map = courses.joins(:course_activities).maximum('course_activities.updated_at')
|
|
|
|
|
active_course_map = courses.where(is_end: false).count
|
|
|
|
|
|
|
|
|
|