Browse Source

Merge pull request '提交代码,解决搜索不到返回数据的问题' (#873) from zouap_static into V20211115

Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/873
Reviewed-by: ychao_1983 <ychao_1983@sina.com>
tags/v1.21.12.1
ychao_1983 4 years ago
parent
commit
7d48b2ad19
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      models/user_business_analysis.go

+ 1
- 1
models/user_business_analysis.go View File

@@ -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 {


Loading…
Cancel
Save