作者 tangxvhui

更新

@@ -529,3 +529,19 @@ func (c *SummaryEvaluationController) InfoEvaluationHrCheck() { @@ -529,3 +529,19 @@ func (c *SummaryEvaluationController) InfoEvaluationHrCheck() {
529 data, err := srv.GetEvaluationShow1(param) 529 data, err := srv.GetEvaluationShow1(param)
530 c.Response(data, err) 530 c.Response(data, err)
531 } 531 }
  532 +
  533 +// 获取人资稽查的列表详情
  534 +func (c *SummaryEvaluationController) EditEvaluationHrCheck() {
  535 + srv := service.NewSummaryEvaluationService()
  536 + param := command.EditEvaluationValue{}
  537 + err := c.BindJSON(&param)
  538 + if err != nil {
  539 + e := application.ThrowError(application.ARG_ERROR, "json 解析错误"+err.Error())
  540 + c.Response(nil, e)
  541 + return
  542 + }
  543 + userReq := middlewares.GetUser(c.Ctx)
  544 + param.CompanyId = int(userReq.CompanyId)
  545 + data, err := srv.EditEvaluationByHrCheck(&param)
  546 + c.Response(data, err)
  547 +}
@@ -38,6 +38,7 @@ func init() { @@ -38,6 +38,7 @@ func init() {
38 web.NSCtrlPost("/staff_assess/self/remark", (*controllers.SummaryEvaluationController).SearchAssessRemark), 38 web.NSCtrlPost("/staff_assess/self/remark", (*controllers.SummaryEvaluationController).SearchAssessRemark),
39 web.NSCtrlPost("/evaluation/hr-check/list", (*controllers.SummaryEvaluationController).ListEvaluationHrCheck), 39 web.NSCtrlPost("/evaluation/hr-check/list", (*controllers.SummaryEvaluationController).ListEvaluationHrCheck),
40 web.NSCtrlPost("/evaluation/hr-check/info", (*controllers.SummaryEvaluationController).InfoEvaluationHrCheck), 40 web.NSCtrlPost("/evaluation/hr-check/info", (*controllers.SummaryEvaluationController).InfoEvaluationHrCheck),
  41 + web.NSCtrlPost("/evaluation/hr-check/edit", (*controllers.SummaryEvaluationController).EditEvaluationHrCheck),
41 ) 42 )
42 web.AddNamespace(summaryNS) 43 web.AddNamespace(summaryNS)
43 summaryV2 := web.NewNamespace("/v2/summary-evaluation", 44 summaryV2 := web.NewNamespace("/v2/summary-evaluation",