|
|
@@ -46,6 +46,10 @@ func QueryUserStaticDataPage(ctx *context.Context) { |
|
|
|
} |
|
|
|
endTime, _ = time.ParseInLocation("2006-01-02", endDate, time.Local) |
|
|
|
endTime = endTime.AddDate(0, 0, 1) |
|
|
|
if startDate == endDate { |
|
|
|
startTime = startTime.AddDate(0, 0, 1) |
|
|
|
endTime = endTime.AddDate(0, 0, 1) |
|
|
|
} |
|
|
|
isAll = false |
|
|
|
log.Info("startTime=" + fmt.Sprint(startTime.Unix()) + " endDate=" + fmt.Sprint(endTime.Unix())) |
|
|
|
} |
|
|
@@ -218,6 +222,10 @@ func TimingCountDataByDateAndReCount(date string, isReCount bool) { |
|
|
|
log.Error("count user info error." + err.Error()) |
|
|
|
mailer.SendWarnNotifyMail(setting.Warn_Notify_Mails, warnEmailMessage) |
|
|
|
} |
|
|
|
|
|
|
|
if isReCount { |
|
|
|
models.RefreshUserStaticAllTabel() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
func TimingCountDataByDate(date string) { |
|
|
|