...
|
...
|
@@ -50,7 +50,7 @@ func (c *StaffAssessControllerV2) AssessTaskMeDesc() { |
|
|
// 获取我要执行360评估,用户列表和评估填写的值
|
|
|
func (c *StaffAssessControllerV2) ListMeInviteUserAssess() {
|
|
|
srv := service.NewStaffAssessServeice()
|
|
|
paramReq := &query.ListInviteUserAssessQuery{}
|
|
|
paramReq := &query.ListExecutorAssessQuery{}
|
|
|
err := c.BindJSON(paramReq)
|
|
|
if err != nil {
|
|
|
e := application.ThrowError(application.ARG_ERROR, "json 解析错误"+err.Error())
|
...
|
...
|
@@ -61,14 +61,14 @@ func (c *StaffAssessControllerV2) ListMeInviteUserAssess() { |
|
|
userReq := middlewares.GetUser(c.Ctx)
|
|
|
paramReq.CompanyId = int(userReq.CompanyId)
|
|
|
paramReq.ExecutorId = int(userReq.UserId)
|
|
|
data, err := srv.ListExecutorInviteAssess(paramReq)
|
|
|
data, err := srv.ListExecutorInviteAssessV2(paramReq)
|
|
|
c.Response(data, err)
|
|
|
}
|
|
|
|
|
|
// 获取我要执行的上级评估成员列表
|
|
|
func (c *StaffAssessControllerV2) ListMeSupperAssess() {
|
|
|
srv := service.NewStaffAssessServeice()
|
|
|
paramReq := &query.ListSupperAssessQuery{}
|
|
|
paramReq := &query.ListExecutorAssessQuery{}
|
|
|
err := c.BindJSON(paramReq)
|
|
|
if err != nil {
|
|
|
e := application.ThrowError(application.ARG_ERROR, "json 解析错误"+err.Error())
|
...
|
...
|
@@ -79,6 +79,40 @@ func (c *StaffAssessControllerV2) ListMeSupperAssess() { |
|
|
userReq := middlewares.GetUser(c.Ctx)
|
|
|
paramReq.CompanyId = int(userReq.CompanyId)
|
|
|
paramReq.ExecutorId = int(userReq.UserId)
|
|
|
data, err := srv.ListExecutorSupperAssess(paramReq)
|
|
|
data, err := srv.ListExecutorSupperAssessV2(paramReq)
|
|
|
c.Response(data, err)
|
|
|
}
|
|
|
|
|
|
// 获取我邀请的人
|
|
|
func (c *StaffAssessControllerV2) GetAssessMeInviteUser() {
|
|
|
srv := service.NewStaffAssessServeice()
|
|
|
paramReq := &query.ListInviteUserQuery{}
|
|
|
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.TargetUserId = int(userReq.UserId)
|
|
|
data, err := srv.ListAssessInviteUserV2(paramReq)
|
|
|
c.Response(data, err)
|
|
|
}
|
|
|
|
|
|
// 获取员工自评详情
|
|
|
func (c *StaffAssessControllerV2) GetAssessTargetUserSelfInfo() {
|
|
|
srv := service.NewStaffAssessServeice()
|
|
|
paramReq := &query.GetExecutorSelfAssessQuery{}
|
|
|
err := c.BindJSON(paramReq)
|
|
|
if err != nil {
|
|
|
e := application.ThrowError(application.ARG_ERROR, "json 解析错误"+err.Error())
|
|
|
c.Response(nil, e)
|
|
|
return
|
|
|
}
|
|
|
// paramReq.CompanyId = 1
|
|
|
userReq := middlewares.GetUser(c.Ctx)
|
|
|
paramReq.CompanyId = int(userReq.CompanyId)
|
|
|
data, err := srv.GetAssessSelfInfoV2(paramReq)
|
|
|
c.Response(data, err)
|
|
|
} |
...
|
...
|
|