作者 yangfu

个人共创项目搜索修改

@@ -109,12 +109,13 @@ func (srv CooperationProjectService) PersonSearchCooperationProject(projectQuery @@ -109,12 +109,13 @@ func (srv CooperationProjectService) PersonSearchCooperationProject(projectQuery
109 creationCooperationGateway := allied_creation_cooperation.NewHttplibAlliedCreationCooperation( 109 creationCooperationGateway := allied_creation_cooperation.NewHttplibAlliedCreationCooperation(
110 projectQuery.Operator) 110 projectQuery.Operator)
111 result, err := creationCooperationGateway.CooperationProjectsSearch(allied_creation_cooperation.ReqCooperationProjectSearch{ 111 result, err := creationCooperationGateway.CooperationProjectsSearch(allied_creation_cooperation.ReqCooperationProjectSearch{
112 - PageNumber: projectQuery.PageNumber + 1, //手机序号从0开始的  
113 - PageSize: projectQuery.PageSize,  
114 - OrgId: projectQuery.OrgId,  
115 - Status: 1, //搜索状态为“招标中”项目  
116 - Keyword: projectQuery.Keyword,  
117 - SearchCooperationProjectExtQueries: extQueries, 112 + PageNumber: projectQuery.PageNumber + 1, //手机序号从0开始的
  113 + PageSize: projectQuery.PageSize,
  114 + OrgId: projectQuery.OrgId,
  115 + Status: 1, //搜索状态为“招标中”项目
  116 + Keyword: projectQuery.Keyword,
  117 + SearchCooperationProjectExtQueriesFlag: 1,
  118 + SearchCooperationProjectExtQueries: extQueries,
118 }) 119 })
119 if err != nil { 120 if err != nil {
120 return 0, nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error()) 121 return 0, nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
@@ -208,6 +208,8 @@ type ( @@ -208,6 +208,8 @@ type (
208 UserBaseId int64 `cname:"用户基础数据ID" json:"userBaseId"` 208 UserBaseId int64 `cname:"用户基础数据ID" json:"userBaseId"`
209 // 共创项目承接对象,1员工,2共创用户,4公开,可以多选 209 // 共创项目承接对象,1员工,2共创用户,4公开,可以多选
210 CooperationProjectUndertakerType int32 `json:"cooperationProjectUndertakerType"` 210 CooperationProjectUndertakerType int32 `json:"cooperationProjectUndertakerType"`
  211 + // 额外的查询条件 0:不需要额外查询 1:额外查询
  212 + SearchCooperationProjectExtQueriesFlag int `cname:"额外的查询条件标识" json:"searchCooperationProjectExtQueriesFlag"`
211 // 额外的查询条件 213 // 额外的查询条件
212 SearchCooperationProjectExtQueries []*SearchCooperationProjectExtQuery `cname:"额外的查询条件" json:"searchCooperationProjectExtQueries"` 214 SearchCooperationProjectExtQueries []*SearchCooperationProjectExtQuery `cname:"额外的查询条件" json:"searchCooperationProjectExtQueries"`
213 } 215 }