作者 yangfu

索引优化

@@ -116,6 +116,7 @@ func (srv CooperationProjectService) PersonSearchCooperationProject(projectQuery @@ -116,6 +116,7 @@ func (srv CooperationProjectService) PersonSearchCooperationProject(projectQuery
116 Keyword: projectQuery.Keyword, 116 Keyword: projectQuery.Keyword,
117 SearchCooperationProjectExtQueriesFlag: 1, 117 SearchCooperationProjectExtQueriesFlag: 1,
118 SearchCooperationProjectExtQueries: extQueries, 118 SearchCooperationProjectExtQueries: extQueries,
  119 + IsSkipFetchProjectModel: true,
119 }) 120 })
120 if err != nil { 121 if err != nil {
121 return 0, nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error()) 122 return 0, nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
@@ -184,6 +184,7 @@ func (srv PersonStatisticsService) CooperationProjectRecommend(projectQuery *com @@ -184,6 +184,7 @@ func (srv PersonStatisticsService) CooperationProjectRecommend(projectQuery *com
184 PageSize: projectQuery.PageSize, 184 PageSize: projectQuery.PageSize,
185 CooperationProjectUndertakerType: 3, 185 CooperationProjectUndertakerType: 3,
186 Status: 1, 186 Status: 1,
  187 + IsSkipFetchProjectModel: true,
187 }) 188 })
188 if err != nil { 189 if err != nil {
189 return 0, nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error()) 190 return 0, nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
@@ -212,6 +212,8 @@ type ( @@ -212,6 +212,8 @@ type (
212 SearchCooperationProjectExtQueriesFlag int `cname:"额外的查询条件标识" json:"searchCooperationProjectExtQueriesFlag"` 212 SearchCooperationProjectExtQueriesFlag int `cname:"额外的查询条件标识" json:"searchCooperationProjectExtQueriesFlag"`
213 // 额外的查询条件 213 // 额外的查询条件
214 SearchCooperationProjectExtQueries []*SearchCooperationProjectExtQuery `cname:"额外的查询条件" json:"searchCooperationProjectExtQueries"` 214 SearchCooperationProjectExtQueries []*SearchCooperationProjectExtQuery `cname:"额外的查询条件" json:"searchCooperationProjectExtQueries"`
  215 + // 是否跳过获取共创模式
  216 + IsSkipFetchProjectModel bool `cname:"是否跳过获取共创模式" json:"isSkipFetchProjectModel,omitempty"`
215 } 217 }
216 DataCooperationProjectSearchItem struct { 218 DataCooperationProjectSearchItem struct {
217 CooperationProjectID string `json:"cooperationProjectId"` 219 CooperationProjectID string `json:"cooperationProjectId"`