Browse Source

Merge branch 'V20211213' into zouap

pull/1073/head
zhoupzh 3 years ago
parent
commit
6aa2616018
2 changed files with 556 additions and 321 deletions
  1. +553
    -312
      models/user_business_analysis.go
  2. +3
    -9
      routers/repo/user_data_analysis.go

+ 553
- 312
models/user_business_analysis.go
File diff suppressed because it is too large
View File


+ 3
- 9
routers/repo/user_data_analysis.go View File

@@ -148,11 +148,6 @@ func QueryUserStaticDataPage(ctx *context.Context) {


func TimingCountDataByDateAndReCount(date string, isReCount bool) { func TimingCountDataByDateAndReCount(date string, isReCount bool) {


if date == "refreshAll" {
models.RefreshUserStaticAllTabel()
return
}

t, _ := time.Parse("2006-01-02", date) t, _ := time.Parse("2006-01-02", date)
startTime := time.Date(t.Year(), t.Month(), t.Day(), 0, 0, 0, 0, t.Location()) startTime := time.Date(t.Year(), t.Month(), t.Day(), 0, 0, 0, 0, t.Location())


@@ -205,10 +200,9 @@ func TimingCountDataByDateAndReCount(date string, isReCount bool) {
log.Error("count user info error." + err.Error()) log.Error("count user info error." + err.Error())
mailer.SendWarnNotifyMail(setting.Warn_Notify_Mails, warnEmailMessage) mailer.SendWarnNotifyMail(setting.Warn_Notify_Mails, warnEmailMessage)
} }

if isReCount {
models.RefreshUserStaticAllTabel()
}
log.Info("start to count all user info data")
//models.RefreshUserStaticAllTabel(wikiMap)
log.Info("end to count all user info data")
} }


func TimingCountDataByDate(date string) { func TimingCountDataByDate(date string) {


Loading…
Cancel
Save