手工统计

dev_local_lzdx
xiaoxiaoqiong 4 years ago
parent f7093d1dd5
commit 1cb4762733

@ -45,6 +45,7 @@ class StatisticSchoolDailyReport1Task
shixun_homework_count: shixun_homework_count, shixun_evaluate_count: shixun_evaluate_count,
shixun_increase_count: shixun_count, active_user_count: active_user_count, date: current_date
}
SchoolDailyReport.where(school_id: school.id).where(date: current_date).destroy_all
report = SchoolDailyReport.create!(create_params)
if active_user_ids.present?

@ -45,6 +45,7 @@ class StatisticSchoolDailyReport2Task
shixun_homework_count: shixun_homework_count, shixun_evaluate_count: shixun_evaluate_count,
shixun_increase_count: shixun_count, active_user_count: active_user_count, date: current_date
}
SchoolDailyReport.where(school_id: school.id).where(date: current_date).destroy_all
report = SchoolDailyReport.create!(create_params)
if active_user_ids.present?

Loading…
Cancel
Save