...
|
...
|
@@ -358,3 +358,20 @@ func (c *StaffAssessController) SaveAssessCache() { |
|
|
c.Response(cacheService.SaveAssessCache(in))
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// 员工绩效-项目管理-矩阵分析
|
|
|
func (c *StaffAssessController) AnalysisData() {
|
|
|
srv := service.NewStaffAssessServeice()
|
|
|
paramReq := &query.ListAssessContentCycleDay{}
|
|
|
err := c.BindJSON(paramReq)
|
|
|
if err != nil {
|
|
|
e := application.ThrowError(application.ARG_ERROR, "json 解析错误"+err.Error())
|
|
|
c.Response(nil, e)
|
|
|
return
|
|
|
}
|
|
|
userReq := middlewares.GetUser(c.Ctx)
|
|
|
paramReq.CompanyId = int(userReq.CompanyId)
|
|
|
paramReq.OperaterId = int(userReq.UserId)
|
|
|
data, err := srv.AnalysisData(paramReq)
|
|
|
c.Response(data, err)
|
|
|
} |
...
|
...
|
|