From 63e44806c99fca5f312b2b56ac85bc27e87f34d7 Mon Sep 17 00:00:00 2001 From: zouap Date: Thu, 28 Oct 2021 15:13:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8=E7=9A=84?= =?UTF-8?q?=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- models/user_business_analysis.go | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/models/user_business_analysis.go b/models/user_business_analysis.go index 6f6abb1ff..bb6726a2c 100644 --- a/models/user_business_analysis.go +++ b/models/user_business_analysis.go @@ -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()