作者 tangxuhui
@@ -477,8 +477,8 @@ func (svr AuthService) getUserInfo(operator domain.Operator) (interface{}, error @@ -477,8 +477,8 @@ func (svr AuthService) getUserInfo(operator domain.Operator) (interface{}, error
477 "orgCode": resultOrg.OrgCode, 477 "orgCode": resultOrg.OrgCode,
478 "companyId": resultOrg.CompanyID, 478 "companyId": resultOrg.CompanyID,
479 }, 479 },
480 - "currentLoginOrg": resultUser.Org,  
481 - "favoriteMenus": resultUser.FavoriteMenus, 480 + //"currentLoginOrg": resultUser.Org,
  481 + "favoriteMenus": resultUser.FavoriteMenus,
482 } 482 }
483 return user, nil 483 return user, nil
484 } 484 }
@@ -48,5 +48,5 @@ type PersonSearchCooperationProjectQuery struct { @@ -48,5 +48,5 @@ type PersonSearchCooperationProjectQuery struct {
48 // 查询限制 48 // 查询限制
49 PageSize int `json:"pageSize" valid:"Required"` 49 PageSize int `json:"pageSize" valid:"Required"`
50 // 50 //
51 - OrgId int `json:"orgId"` 51 + OrgId int64 `json:"orgId"`
52 } 52 }
@@ -103,11 +103,12 @@ func (srv CooperationProjectService) SearchCooperationProject(projectQuery *comm @@ -103,11 +103,12 @@ func (srv CooperationProjectService) SearchCooperationProject(projectQuery *comm
103 func (srv CooperationProjectService) PersonSearchCooperationProject(projectQuery *command.PersonSearchCooperationProjectQuery) (int, interface{}, error) { 103 func (srv CooperationProjectService) PersonSearchCooperationProject(projectQuery *command.PersonSearchCooperationProjectQuery) (int, interface{}, error) {
104 creationCooperationGateway := allied_creation_cooperation.NewHttplibAlliedCreationCooperation( 104 creationCooperationGateway := allied_creation_cooperation.NewHttplibAlliedCreationCooperation(
105 projectQuery.Operator) 105 projectQuery.Operator)
106 - orgidStr := strconv.Itoa(projectQuery.OrgId) 106 + //orgidStr := strconv.Itoa(projectQuery.OrgId)
107 result, err := creationCooperationGateway.CooperationProjectsSearch(allied_creation_cooperation.ReqCooperationProjectSearch{ 107 result, err := creationCooperationGateway.CooperationProjectsSearch(allied_creation_cooperation.ReqCooperationProjectSearch{
108 PageNumber: projectQuery.PageNumber, 108 PageNumber: projectQuery.PageNumber,
109 PageSize: projectQuery.PageSize, 109 PageSize: projectQuery.PageSize,
110 - OrgIds: []string{orgidStr}, 110 + OrgId: projectQuery.OrgId,
  111 + UserBaseId: projectQuery.Operator.UserBaseId,
111 }) 112 })
112 if err != nil { 113 if err != nil {
113 return 0, nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error()) 114 return 0, nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
@@ -156,10 +156,13 @@ type ( @@ -156,10 +156,13 @@ type (
156 CooperationProjectName string `json:"cooperationProjectName"` 156 CooperationProjectName string `json:"cooperationProjectName"`
157 // 共创项目状态,1招标中,2结束 0 全部 157 // 共创项目状态,1招标中,2结束 0 全部
158 Status int `json:"status"` 158 Status int `json:"status"`
159 - // 159 + // 组织机构ID
  160 + OrgId int64 `cname:"组织机构ID" json:"orgId"`
160 OrgIds []string `json:"orgIds"` 161 OrgIds []string `json:"orgIds"`
161 CooperationProjectNumberLike string `json:"cooperationProjectNumberLike"` 162 CooperationProjectNumberLike string `json:"cooperationProjectNumberLike"`
162 //OffsetLimitFlag bool `json:"offsetLimitFlag"` 163 //OffsetLimitFlag bool `json:"offsetLimitFlag"`
  164 + // 用户基础数据id
  165 + UserBaseId int64 `cname:"用户基础数据ID" json:"userBaseId"`
163 } 166 }
164 167
165 DataCooperationProjectSearch struct { 168 DataCooperationProjectSearch struct {
@@ -111,6 +111,7 @@ func CheckAccessToken2() web.FilterFunc { @@ -111,6 +111,7 @@ func CheckAccessToken2() web.FilterFunc {
111 "/v1/auth/reset-password": "", 111 "/v1/auth/reset-password": "",
112 "/v1/auth/refresh-token": "", 112 "/v1/auth/refresh-token": "",
113 "/v1/app/cooperation-projects/person/search": "", 113 "/v1/app/cooperation-projects/person/search": "",
  114 + "/v1/common/dictionary/search": "",
114 } 115 }
115 var err error 116 var err error
116 if filterUrl, err := url.Parse(ctx.Request.RequestURI); err == nil { 117 if filterUrl, err := url.Parse(ctx.Request.RequestURI); err == nil {