...
|
...
|
@@ -433,6 +433,9 @@ func (srv *SummaryEvaluationService) EvaluationHRBPList(param *command.QueryEval |
|
|
|
|
|
// 必须是HRBP权限的人才能编辑操作
|
|
|
hrbp, err := service.GetHRBP(transactionContext, param.CompanyId, param.UserId)
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
}
|
|
|
if hrbp != 1 {
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "没有操作权限")
|
|
|
}
|
...
|
...
|
@@ -481,9 +484,8 @@ func (srv *SummaryEvaluationService) EvaluationHRBPList(param *command.QueryEval |
|
|
positionIds := make([]int, 0)
|
|
|
for i := range users {
|
|
|
userMap[users[i].Id] = users[i]
|
|
|
for _, pid := range users[i].PositionId {
|
|
|
positionIds = append(positionIds, pid)
|
|
|
}
|
|
|
positionIds = append(positionIds, users[i].PositionId...)
|
|
|
|
|
|
}
|
|
|
if len(positionIds) > 0 {
|
|
|
_, positions, err := positionRepo.Find(map[string]interface{}{"ids": positionIds, "companyId": param.CompanyId})
|
...
|
...
|
@@ -674,6 +676,9 @@ func (srv *SummaryEvaluationService) EditEvaluationHRBP(param *command.EditEvalu |
|
|
|
|
|
// 必须是HRBP权限的人才能编辑操作
|
|
|
hrbp, err := service.GetHRBP(transactionContext, param.CompanyId, param.ExecutorId)
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
}
|
|
|
if hrbp != 1 {
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "没有操作权限")
|
|
|
}
|
...
|
...
|
|