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).