作者 tangxvhui

修正条件判断

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