正在显示
4 个修改的文件
包含
15 行增加
和
6 行删除
@@ -481,7 +481,7 @@ func (svr AuthService) getUserInfo(operator domain.Operator) (interface{}, error | @@ -481,7 +481,7 @@ func (svr AuthService) getUserInfo(operator domain.Operator) (interface{}, error | ||
481 | return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error()) | 481 | return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error()) |
482 | } | 482 | } |
483 | var user = map[string]interface{}{ | 483 | var user = map[string]interface{}{ |
484 | - "userId": resultUser.UserBaseID, | 484 | + "userId": resultUser.UserID, |
485 | //"userOpenId": fmt.Sprintf("%v",resultUser.UserBaseID), | 485 | //"userOpenId": fmt.Sprintf("%v",resultUser.UserBaseID), |
486 | "userInfo": map[string]interface{}{ | 486 | "userInfo": map[string]interface{}{ |
487 | "userName": resultUser.UserInfo.UserName, | 487 | "userName": resultUser.UserInfo.UserName, |
@@ -505,7 +505,7 @@ func (svr AuthService) getUserInfo(operator domain.Operator) (interface{}, error | @@ -505,7 +505,7 @@ func (svr AuthService) getUserInfo(operator domain.Operator) (interface{}, error | ||
505 | } | 505 | } |
506 | 506 | ||
507 | var user = map[string]interface{}{ | 507 | var user = map[string]interface{}{ |
508 | - "userId": resultUser.UserBaseId, | 508 | + "userId": resultUser.UserId, |
509 | "userType": resultUser.UserType, | 509 | "userType": resultUser.UserType, |
510 | "userCode": resultUser.UserCode, | 510 | "userCode": resultUser.UserCode, |
511 | "userInfo": map[string]interface{}{ | 511 | "userInfo": map[string]interface{}{ |
@@ -43,7 +43,9 @@ func (srv *CommonService) GetDictionaryByCode(getDictionaryQuery *query.GetDicti | @@ -43,7 +43,9 @@ func (srv *CommonService) GetDictionaryByCode(getDictionaryQuery *query.GetDicti | ||
43 | } | 43 | } |
44 | } | 44 | } |
45 | } | 45 | } |
46 | - return response, nil | 46 | + return map[string]interface{}{ |
47 | + "dictionarys": response, | ||
48 | + }, nil | ||
47 | } | 49 | } |
48 | 50 | ||
49 | //LatestVersionInfo 版本升级 | 51 | //LatestVersionInfo 版本升级 |
@@ -267,7 +267,7 @@ func (srv CooperationProjectService) PersonSearchCooperationProjectShareInfoAtta | @@ -267,7 +267,7 @@ func (srv CooperationProjectService) PersonSearchCooperationProjectShareInfoAtta | ||
267 | 267 | ||
268 | // PersonSearchCooperationProject 共创用户获取共创项目列表 | 268 | // PersonSearchCooperationProject 共创用户获取共创项目列表 |
269 | func (srv CooperationProjectService) PersonSearchCooperationProjectStarred(projectQuery *command.PersonSearchCooperationProjectQuery) (int, interface{}, error) { | 269 | func (srv CooperationProjectService) PersonSearchCooperationProjectStarred(projectQuery *command.PersonSearchCooperationProjectQuery) (int, interface{}, error) { |
270 | - //extQueries := extQuires(projectQuery.Operator) | 270 | + extQueries := extQuires(projectQuery.Operator) |
271 | if projectQuery.Operator.UserBaseId == 0 { | 271 | if projectQuery.Operator.UserBaseId == 0 { |
272 | return 0, []struct{}{}, nil | 272 | return 0, []struct{}{}, nil |
273 | } | 273 | } |
@@ -292,6 +292,8 @@ func (srv CooperationProjectService) PersonSearchCooperationProjectStarred(proje | @@ -292,6 +292,8 @@ func (srv CooperationProjectService) PersonSearchCooperationProjectStarred(proje | ||
292 | OrgIds: userInfo.FavoriteOrg(), | 292 | OrgIds: userInfo.FavoriteOrg(), |
293 | IsSkipFetchProjectModel: true, | 293 | IsSkipFetchProjectModel: true, |
294 | SortByStatus: 1, | 294 | SortByStatus: 1, |
295 | + SearchCooperationProjectExtQueriesFlag: 1, | ||
296 | + SearchCooperationProjectExtQueries: extQueries, | ||
295 | }) | 297 | }) |
296 | if err != nil { | 298 | if err != nil { |
297 | return 0, nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error()) | 299 | return 0, nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error()) |
@@ -164,12 +164,17 @@ func (srv PersonStatisticsService) CompanyStatistics(cmd *command.CooperationPer | @@ -164,12 +164,17 @@ func (srv PersonStatisticsService) CompanyStatistics(cmd *command.CooperationPer | ||
164 | if user.Company == nil { | 164 | if user.Company == nil { |
165 | continue | 165 | continue |
166 | } | 166 | } |
167 | - cooperationCompanyStatisticsResponses[i].Company = domain.Company{ | 167 | + for j := range cooperationCompanyStatisticsResponses { |
168 | + if user.Org != nil && cooperationCompanyStatisticsResponses[j].OrgId == int64(user.Org.OrgId) { | ||
169 | + cooperationCompanyStatisticsResponses[j].Company = domain.Company{ | ||
168 | CompanyID: user.Org.OrgId, | 170 | CompanyID: user.Org.OrgId, |
169 | CompanyName: user.Org.OrgName, | 171 | CompanyName: user.Org.OrgName, |
170 | Logo: user.Company.Logo, | 172 | Logo: user.Company.Logo, |
171 | } | 173 | } |
172 | - values = append(values, cooperationCompanyStatisticsResponses[i]) | 174 | + values = append(values, cooperationCompanyStatisticsResponses[j]) |
175 | + } | ||
176 | + } | ||
177 | + | ||
173 | } | 178 | } |
174 | return map[string]interface{}{ | 179 | return map[string]interface{}{ |
175 | "list": values, | 180 | "list": values, |
-
请 注册 或 登录 后发表评论