|
|
|
@ -61,8 +61,8 @@ class StatisticSchoolDailyReportTask
|
|
|
|
|
|
|
|
|
|
def yesterday
|
|
|
|
|
@_yesterday ||= begin
|
|
|
|
|
# 每日凌晨5点为节点
|
|
|
|
|
end_time = Time.zone.now.beginning_of_day + 5.hour
|
|
|
|
|
# 每日凌晨2点为节点
|
|
|
|
|
end_time = Time.zone.now.beginning_of_day + 2.hour
|
|
|
|
|
begin_time = end_time - 1.day
|
|
|
|
|
begin_time..end_time
|
|
|
|
|
end
|
|
|
|
|