手动统计日期2021-05-20

dev_local_lzdx
xiaoxiaoqiong 4 years ago
parent 4eaed7d034
commit 9c32618fdb

@ -57,13 +57,13 @@ class StatisticSchoolDailyReportTask
private
def current_date
@_current_date ||= Time.zone.now.beginning_of_day - 1.day
@_current_date ||= Time.parse("2021-05-20") - 1.day
end
def yesterday
@_yesterday ||= begin
# 每日凌晨2点为节点
end_time = Time.zone.now.beginning_of_day + 2.hour
end_time = Time.parse("2021-05-20") + 2.hour
begin_time = end_time - 1.day
begin_time..end_time
end

Loading…
Cancel
Save