调试信息

ecloud_sso
daiao 5 years ago
parent d29d1a84bd
commit 52017c9858

@ -44,6 +44,7 @@ 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_acts).maximum('course_activities.updated_at')
active_course_map = courses.where(is_end: false).count

Loading…
Cancel
Save