diff --git a/models/user_business_analysis.go b/models/user_business_analysis.go index 2fe38c792..be22cc300 100644 --- a/models/user_business_analysis.go +++ b/models/user_business_analysis.go @@ -208,7 +208,7 @@ func QueryUserStaticDataPage(opts *UserBusinessAnalysisQueryOptions) ([]*UserBus resultMap := make(map[int64]*UserBusinessAnalysis) - if opts.Page >= 0 && opts.PageSize > 0 { + if opts.Page >= 0 && opts.PageSize > 0 && len(userBusinessAnalysisList) > 0 { var newAndCond = builder.NewCond() var newOrCond = builder.NewCond() for _, userRecord := range userBusinessAnalysisList {