|
|
|
@ -48,7 +48,7 @@ class Management::SchoolDataGrowService
|
|
|
|
|
|
|
|
|
|
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')
|
|
|
|
|
.where(date_condition_sql)
|
|
|
|
|
.where(date_condition_sql).to_sql
|
|
|
|
|
reports = search_filter(reports)
|
|
|
|
|
reports.select(
|
|
|
|
|
'SUM(teacher_increase_count) teacher_increase_count,'\
|
|
|
|
|