...
|
...
|
@@ -38,6 +38,15 @@ func (srv *SummaryEvaluationService) GetExecutorCycleList(param *command.QueryCy |
|
|
evaluationDao := dao.NewSummaryEvaluationDao(map[string]interface{}{
|
|
|
"transactionContext": transactionContext,
|
|
|
})
|
|
|
|
|
|
flagHrbp, err := roleService.GetHRBP(transactionContext, param.CompanyId, param.UserId)
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
}
|
|
|
var isHrbp bool
|
|
|
if flagHrbp == 1 {
|
|
|
isHrbp = true
|
|
|
}
|
|
|
limit := 300
|
|
|
offset := 0
|
|
|
if param.PageSize > 0 {
|
...
|
...
|
@@ -47,7 +56,7 @@ func (srv *SummaryEvaluationService) GetExecutorCycleList(param *command.QueryCy |
|
|
offset = (param.PageNumber - 1) * param.PageSize
|
|
|
}
|
|
|
|
|
|
cycleData, err := evaluationDao.GetExecutorCycleList(param.UserId, offset, limit, domain.EvaluationSelf)
|
|
|
cycleData, err := evaluationDao.GetExecutorCycleList(param.UserId, offset, limit, isHrbp)
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "获取周期列表"+err.Error())
|
|
|
}
|
...
|
...
|
@@ -237,7 +246,9 @@ func (srv *SummaryEvaluationService) GetMenu(param *command.QueryMenu) (map[stri |
|
|
}
|
|
|
}
|
|
|
menu1.Child = append(menu1.Child, menu1_1, menu1_2)
|
|
|
if len(selfEvaluation) > 0 {
|
|
|
menuList = append(menuList, menu1)
|
|
|
}
|
|
|
menu2 := adapter.MenuListAdapter{
|
|
|
CycleId: 0,
|
|
|
NodeName: "给他人评估",
|
...
|
...
|
|