作者 tangxvhui

修正条件判断

@@ -1489,7 +1489,7 @@ func (srv *SummaryEvaluationService) ListAllEvaluationSuper(param *command.Query @@ -1489,7 +1489,7 @@ func (srv *SummaryEvaluationService) ListAllEvaluationSuper(param *command.Query
1489 "parentId": param.UserId, 1489 "parentId": param.UserId,
1490 "limit": 1, 1490 "limit": 1,
1491 }) 1491 })
1492 - if len(parentUser) == 0 { 1492 + if len(parentUser) == 0 && flagHrbp != 1 {
1493 return tool_funs.SimpleWrapGridMap(0, []string{}), nil 1493 return tool_funs.SimpleWrapGridMap(0, []string{}), nil
1494 } 1494 }
1495 evaluationRepo := factory.CreateSummaryEvaluationRepository(map[string]interface{}{ 1495 evaluationRepo := factory.CreateSummaryEvaluationRepository(map[string]interface{}{
@@ -50,6 +50,7 @@ func (userAuth *UserAuth) ParseAccessToken(token string) (*UserAuth, error) { @@ -50,6 +50,7 @@ func (userAuth *UserAuth) ParseAccessToken(token string) (*UserAuth, error) {
50 user.PlatformId = claim.PlatformId 50 user.PlatformId = claim.PlatformId
51 user.Name = claim.Name 51 user.Name = claim.Name
52 user.AdminType = claim.AdminType 52 user.AdminType = claim.AdminType
  53 + user.CompanyName = claim.CompanyName
53 return user, nil 54 return user, nil
54 } 55 }
55 return user, errors.New("解析token失败") 56 return user, errors.New("解析token失败")