Browse Source

feat:查询有效的项目id调整es语句

fuwencai 2 years ago
parent
commit
1ea40ee822
1 changed files with 5 additions and 3 deletions
  1. 5 3
      jyBXCore/rpc/model/es/project.go

+ 5 - 3
jyBXCore/rpc/model/es/project.go

@@ -7,7 +7,7 @@ import (
 	"time"
 )
 
-//项目信息 项目id
+// 项目信息 项目id
 func GetProjectInfo(id string) map[string]interface{} {
 	projectInfos := elastic.GetById(IndexProjectSet, TypeProjectSet, id)
 	if projectInfos != nil && len(*projectInfos) > 0 {
@@ -16,7 +16,7 @@ func GetProjectInfo(id string) map[string]interface{} {
 	return nil
 }
 
-//招标信息 招标信息id
+// 招标信息 招标信息id
 func GetBiddingInfo(id string) map[string]interface{} {
 	biddingInfos := elastic.GetById(INDEX, TYPE, id)
 	if biddingInfos != nil && len(*biddingInfos) > 0 {
@@ -48,7 +48,9 @@ func GetValidProjectByInfoId(infoIds []string) *[]map[string]interface{} {
         ]
     }
 }
-] }}]}}}`
+] }}]}},
+"size": 500
+}`
 
 	projectResult := elastic.Get(IndexProjectSet, TypeProjectSet, query)
 	return projectResult