dev_trainings
p31729568 6 years ago
parent 1829bada46
commit cb0b5a8880

@ -48,7 +48,7 @@ class Management::SchoolDataGrowService
subquery = SchoolDailyActiveUser.select('COUNT(distinct user_id)') subquery = SchoolDailyActiveUser.select('COUNT(distinct user_id)')
.joins('LEFT JOIN school_daily_reports sdr ON sdr.id = school_daily_active_users.school_daily_report_id') .joins('LEFT JOIN school_daily_reports sdr ON sdr.id = school_daily_active_users.school_daily_report_id')
.where(date_condition_sql) .where(date_condition_sql).to_sql
reports = search_filter(reports) reports = search_filter(reports)
reports.select( reports.select(
'SUM(teacher_increase_count) teacher_increase_count,'\ 'SUM(teacher_increase_count) teacher_increase_count,'\

Loading…
Cancel
Save