...
|
...
|
@@ -341,3 +341,19 @@ func (c *StaffAssessController) ListTargetUserSelfCycle() { |
|
|
data, err := srv.ListTargetUserSelfCycle(paramReq)
|
|
|
c.Response(data, err)
|
|
|
}
|
|
|
|
|
|
// ListTargetUserSelfCycle 按照周期获取员工的每日自评小结
|
|
|
func (c *StaffAssessController) GetStaffAsessSelfCountLevel() {
|
|
|
srv := service.NewStaffAssessServeice()
|
|
|
paramReq := &query.StaffAsessSelfCountLevel{}
|
|
|
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)
|
|
|
data, err := srv.GetStaffAsessSelfCountLevel(paramReq)
|
|
|
c.Response(data, err)
|
|
|
} |
...
|
...
|
|