|
|
|
@@ -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() |
|
|
|
|