Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.21.12.1
zouap 3 years ago
parent
commit
926151239c
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      models/user_business_analysis.go

+ 2
- 2
models/user_business_analysis.go View File

@@ -194,7 +194,7 @@ func QueryUserStaticDataPage(opts *UserBusinessAnalysisQueryOptions) ([]*UserBus
var newAndCond = builder.NewCond()
var newOrCond = builder.NewCond()
for _, userRecord := range userBusinessAnalysisList {
newOrCond.Or(
newOrCond = newOrCond.Or(
builder.Eq{"id": userRecord.ID},
)
}
@@ -267,7 +267,7 @@ func CounDataByDateAndReCount(wikiCountMap map[string]int, startTime time.Time,
end_unix := endTime.Unix()
CountDate := time.Date(currentTimeNow.Year(), currentTimeNow.Month(), currentTimeNow.Day(), 0, 1, 0, 0, currentTimeNow.Location())
if isReCount {
CountDate = time.Date(startTime.Year(), startTime.Month(), startTime.Day(), 0, 1, 0, 0, startTime.Location())
CountDate = time.Date(startTime.Year(), startTime.Month(), startTime.Day(), 0, 1, 0, 0, currentTimeNow.Location())
}

DataDate := startTime.Format("2006-01-02")


Loading…
Cancel
Save