From 86237a9758719653af5c6ea52a6c33996ce8c317 Mon Sep 17 00:00:00 2001 From: zouap Date: Mon, 9 May 2022 11:03:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=97=B6=E9=97=B4=E8=BE=93?= =?UTF-8?q?=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- models/user_business_analysis.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/models/user_business_analysis.go b/models/user_business_analysis.go index 540749bc2..d2dbe4026 100644 --- a/models/user_business_analysis.go +++ b/models/user_business_analysis.go @@ -305,6 +305,7 @@ func makeResultForMonth(allUserInfo []UserMetrics, count int) []UserMetrics { monthUserMetrics.ActivateRegistUser = userMetrics.ActivateRegistUser monthUserMetrics.NotActivateRegistUser = userMetrics.NotActivateRegistUser monthUserMetrics.TotalUser = userMetrics.TotalUser + monthUserMetrics.TotalNotActivateRegistUser = userMetrics.TotalUser - userMetrics.TotalActivateRegistUser monthUserMetrics.TotalActivateRegistUser = userMetrics.TotalActivateRegistUser monthUserMetrics.TotalHasActivityUser = userMetrics.TotalHasActivityUser monthUserMetrics.HasActivityUser = userMetrics.HasActivityUser @@ -315,9 +316,6 @@ func makeResultForMonth(allUserInfo []UserMetrics, count int) []UserMetrics { value := monthMap[month] value.ActivateRegistUser += userMetrics.ActivateRegistUser value.NotActivateRegistUser += userMetrics.NotActivateRegistUser - value.TotalUser += userMetrics.TotalUser - value.TotalActivateRegistUser += userMetrics.TotalActivateRegistUser - value.TotalHasActivityUser += userMetrics.TotalHasActivityUser value.HasActivityUser += userMetrics.HasActivityUser value.TotalRegistUser += userMetrics.TotalRegistUser value.DaysForMonth += 1