...
|
...
|
@@ -175,6 +175,7 @@ func (c *SummaryEvaluationController) EditEvaluationHRBP() { |
|
|
c.Response(data, err)
|
|
|
}
|
|
|
|
|
|
// 获取上级评估
|
|
|
func (c *SummaryEvaluationController) GetEvaluationSuper() {
|
|
|
srv := service.NewSummaryEvaluationService()
|
|
|
param := &command.QueryEvaluationSuper{}
|
...
|
...
|
@@ -190,6 +191,7 @@ func (c *SummaryEvaluationController) GetEvaluationSuper() { |
|
|
c.Response(data, err)
|
|
|
}
|
|
|
|
|
|
// 编辑上级评估
|
|
|
func (c *SummaryEvaluationController) EditEvaluationSuper() {
|
|
|
srv := service.NewSummaryEvaluationService()
|
|
|
param := &command.EditEvaluationValue{}
|
...
|
...
|
@@ -206,6 +208,7 @@ func (c *SummaryEvaluationController) EditEvaluationSuper() { |
|
|
c.Response(data, err)
|
|
|
}
|
|
|
|
|
|
// 上级评估列表
|
|
|
func (c *SummaryEvaluationController) ListEvaluationSuper() {
|
|
|
srv := service.NewSummaryEvaluationService()
|
|
|
param := &command.QueryEvaluationList{}
|
...
|
...
|
@@ -221,3 +224,19 @@ func (c *SummaryEvaluationController) ListEvaluationSuper() { |
|
|
data, err := srv.ListEvaluationSuper(param)
|
|
|
c.Response(data, err)
|
|
|
}
|
|
|
|
|
|
// 员工确认评估分数
|
|
|
func (c *SummaryEvaluationController) ConfirmScoreSuperEvaluation() {
|
|
|
srv := service.NewSummaryEvaluationService()
|
|
|
param := &command.ConfirmScore{}
|
|
|
err := c.BindJSON(param)
|
|
|
if err != nil {
|
|
|
e := application.ThrowError(application.ARG_ERROR, "json 解析错误"+err.Error())
|
|
|
c.Response(nil, e)
|
|
|
return
|
|
|
}
|
|
|
userReq := middlewares.GetUser(c.Ctx)
|
|
|
param.UserId = int(userReq.UserId)
|
|
|
err = srv.ConfirmScoreSuperEvaluation(param)
|
|
|
c.Response(nil, err)
|
|
|
} |
...
|
...
|
|