Browse Source

删除无用的方法

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

+ 0
- 15
models/user_business_analysis.go View File

@@ -255,21 +255,6 @@ func CounDataByDate(wikiCountMap map[string]int, startTime time.Time, endTime ti

}

func CountData(wikiCountMap map[string]int) {

currentTimeNow := time.Now()
log.Info("current time:" + currentTimeNow.Format("2006-01-02 15:04:05"))

yesterday := currentTimeNow.AddDate(0, 0, -1)
startTime := time.Date(yesterday.Year(), yesterday.Month(), yesterday.Day(), 0, 0, 0, 0, yesterday.Location())

log.Info("DB query time:" + startTime.Format("2006-01-02 15:04:05"))

endTime := time.Date(currentTimeNow.Year(), currentTimeNow.Month(), currentTimeNow.Day(), 0, 0, 0, 0, currentTimeNow.Location())

CounDataByDate(wikiCountMap, startTime, endTime)
}

func querySolveIssue(start_unix int64, end_unix int64) map[int64]int {
//select issue_assignees.* from issue_assignees,issue where issue.is_closed=true and issue.id=issue_assignees.issue_id
sess := x.NewSession()


Loading…
Cancel
Save