正在显示
3 个修改的文件
包含
19 行增加
和
1 行删除
@@ -1716,7 +1716,7 @@ func (srv StaffAssessServeice) SaveAssessInfo(param *command.SaveAssessInfoComma | @@ -1716,7 +1716,7 @@ func (srv StaffAssessServeice) SaveAssessInfo(param *command.SaveAssessInfoComma | ||
1716 | //转换填入的评估值 | 1716 | //转换填入的评估值 |
1717 | err = v.TransformValue() | 1717 | err = v.TransformValue() |
1718 | if err != nil { | 1718 | if err != nil { |
1719 | - return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error()) | 1719 | + return nil, application.ThrowError(application.BUSINESS_ERROR, v.Category+"-"+v.Name+":"+err.Error()) |
1720 | } | 1720 | } |
1721 | } | 1721 | } |
1722 | for ii := range v.Remark { | 1722 | for ii := range v.Remark { |
@@ -358,3 +358,20 @@ func (c *StaffAssessController) SaveAssessCache() { | @@ -358,3 +358,20 @@ func (c *StaffAssessController) SaveAssessCache() { | ||
358 | c.Response(cacheService.SaveAssessCache(in)) | 358 | c.Response(cacheService.SaveAssessCache(in)) |
359 | } | 359 | } |
360 | } | 360 | } |
361 | + | ||
362 | +// 员工绩效-项目管理-矩阵分析 | ||
363 | +func (c *StaffAssessController) AnalysisData() { | ||
364 | + srv := service.NewStaffAssessServeice() | ||
365 | + paramReq := &query.ListAssessContentCycleDay{} | ||
366 | + err := c.BindJSON(paramReq) | ||
367 | + if err != nil { | ||
368 | + e := application.ThrowError(application.ARG_ERROR, "json 解析错误"+err.Error()) | ||
369 | + c.Response(nil, e) | ||
370 | + return | ||
371 | + } | ||
372 | + userReq := middlewares.GetUser(c.Ctx) | ||
373 | + paramReq.CompanyId = int(userReq.CompanyId) | ||
374 | + paramReq.OperaterId = int(userReq.UserId) | ||
375 | + data, err := srv.AnalysisData(paramReq) | ||
376 | + c.Response(data, err) | ||
377 | +} |
@@ -17,6 +17,7 @@ func init() { | @@ -17,6 +17,7 @@ func init() { | ||
17 | web.NSCtrlPost("/cycle/day", (*controllers.StaffAssessController).ListAssessCycleDay), //获取周期中的考核日期 | 17 | web.NSCtrlPost("/cycle/day", (*controllers.StaffAssessController).ListAssessCycleDay), //获取周期中的考核日期 |
18 | web.NSCtrlPost("/cycle/day/content", (*controllers.StaffAssessController).ListAssessContentCycleDay), //根据周期里的考核日期,获取员工填写评估内容列表 | 18 | web.NSCtrlPost("/cycle/day/content", (*controllers.StaffAssessController).ListAssessContentCycleDay), //根据周期里的考核日期,获取员工填写评估内容列表 |
19 | web.NSCtrlPost("/cycle/day/content/export", (*controllers.StaffAssessController).ExportAssessContentCycleDay), //根据周期里的考核日期,导出员工填写评估内容列表 | 19 | web.NSCtrlPost("/cycle/day/content/export", (*controllers.StaffAssessController).ExportAssessContentCycleDay), //根据周期里的考核日期,导出员工填写评估内容列表 |
20 | + web.NSCtrlPost("/cycle/day/analysis", (*controllers.StaffAssessController).AnalysisData), //员工绩效-项目管理-矩阵分析 | ||
20 | ) | 21 | ) |
21 | 22 | ||
22 | assessNS := web.NewNamespace("/v1/staff-assess", | 23 | assessNS := web.NewNamespace("/v1/staff-assess", |
-
请 注册 或 登录 后发表评论