作者 tangxvhui

更新

... ... @@ -529,3 +529,19 @@ func (c *SummaryEvaluationController) InfoEvaluationHrCheck() {
data, err := srv.GetEvaluationShow1(param)
c.Response(data, err)
}
// 获取人资稽查的列表详情
func (c *SummaryEvaluationController) EditEvaluationHrCheck() {
srv := service.NewSummaryEvaluationService()
param := command.EditEvaluationValue{}
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.CompanyId = int(userReq.CompanyId)
data, err := srv.EditEvaluationByHrCheck(&param)
c.Response(data, err)
}
... ...
... ... @@ -38,6 +38,7 @@ func init() {
web.NSCtrlPost("/staff_assess/self/remark", (*controllers.SummaryEvaluationController).SearchAssessRemark),
web.NSCtrlPost("/evaluation/hr-check/list", (*controllers.SummaryEvaluationController).ListEvaluationHrCheck),
web.NSCtrlPost("/evaluation/hr-check/info", (*controllers.SummaryEvaluationController).InfoEvaluationHrCheck),
web.NSCtrlPost("/evaluation/hr-check/edit", (*controllers.SummaryEvaluationController).EditEvaluationHrCheck),
)
web.AddNamespace(summaryNS)
summaryV2 := web.NewNamespace("/v2/summary-evaluation",
... ...