From 190e275c8c75b955d866718c2c832d181d2386da Mon Sep 17 00:00:00 2001 From: zouap Date: Tue, 23 Nov 2021 08:52:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- models/user_business_analysis.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/user_business_analysis.go b/models/user_business_analysis.go index e0c864cd2..01875a063 100644 --- a/models/user_business_analysis.go +++ b/models/user_business_analysis.go @@ -199,7 +199,7 @@ func QueryUserStaticDataPage(opts *UserBusinessAnalysisQueryOptions) ([]*UserBus } statictisSess.Limit(opts.PageSize, start) } - statictisSess.OrderBy("count_date desc") + statictisSess.OrderBy("count_date desc, commit_count desc") userBusinessAnalysisList := make([]*UserBusinessAnalysis, 0) if err := statictisSess.Table("user_business_analysis").Where(cond).