|
|
|
@@ -147,11 +147,13 @@ func getLastCountDate() int64 { |
|
|
|
defer statictisSess.Close() |
|
|
|
statictisSess.Limit(1, 0) |
|
|
|
userBusinessAnalysisList := make([]*UserBusinessAnalysis, 0) |
|
|
|
if err := statictisSess.Table("user_business_analysis").OrderBy("countdate desc").Limit(1, 0). |
|
|
|
if err := statictisSess.Table("user_business_analysis").OrderBy("count_date desc").Limit(1, 0). |
|
|
|
Find(&userBusinessAnalysisList); err == nil { |
|
|
|
for _, userRecord := range userBusinessAnalysisList { |
|
|
|
return userRecord.CountDate - 10000 |
|
|
|
} |
|
|
|
} else { |
|
|
|
log.Info("query error." + err.Error()) |
|
|
|
} |
|
|
|
currentTimeNow := time.Now() |
|
|
|
pageStartTime := time.Date(currentTimeNow.Year(), currentTimeNow.Month(), currentTimeNow.Day(), 0, 0, 0, 0, currentTimeNow.Location()) |
|
|
|
|