作者 tangxvhui

更新

@@ -2,8 +2,8 @@ package query @@ -2,8 +2,8 @@ package query
2 2
3 // 查询评估的执行人 3 // 查询评估的执行人
4 type ListExecutorQuery struct { 4 type ListExecutorQuery struct {
5 - CycleId int `json:"cycleId"` //周期id  
6 - BeginDay string `json:"beginDay"` //日期 2006-01-02  
7 - Types string `json:"types"` // 评估类型 自评:self;上级:super;360评估:invite 5 + CycleId int `json:"cycleId,string"` //周期id
  6 + BeginDay string `json:"beginDay"` //日期 2006-01-02
  7 + Types string `json:"types"` // 评估类型 自评:self;上级:super;360评估:360;360邀请:invite
8 CompanyId int `json:"-"` 8 CompanyId int `json:"-"`
9 } 9 }
@@ -1304,10 +1304,9 @@ func (srv StaffAssessServeice) ListExcutorUncompleted(param *query.ListExecutorQ @@ -1304,10 +1304,9 @@ func (srv StaffAssessServeice) ListExcutorUncompleted(param *query.ListExecutorQ
1304 condition["typesList"] = []string{string(domain.AssessSelf)} 1304 condition["typesList"] = []string{string(domain.AssessSelf)}
1305 case "super": 1305 case "super":
1306 condition["typesList"] = []string{string(domain.AssessSuper)} 1306 condition["typesList"] = []string{string(domain.AssessSuper)}
1307 - case "invite": 1307 + case "360":
1308 condition["typesList"] = []string{string(domain.AssessInviteDiffSuper), string(domain.AssessInviteSameSuper)} 1308 condition["typesList"] = []string{string(domain.AssessInviteDiffSuper), string(domain.AssessInviteSameSuper)}
1309 } 1309 }
1310 -  
1311 _, assessList, err := assessReps.Find(condition) 1310 _, assessList, err := assessReps.Find(condition)
1312 if err != nil { 1311 if err != nil {
1313 return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "获取员工的评估"+err.Error()) 1312 return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "获取员工的评估"+err.Error())
@@ -307,6 +307,11 @@ func (c *StaffAssessController) ExportUserAssess2() { @@ -307,6 +307,11 @@ func (c *StaffAssessController) ExportUserAssess2() {
307 c.Response(nil, e) 307 c.Response(nil, e)
308 return 308 return
309 } 309 }
  310 + if len(paramReq.ExportUserId) == 0 {
  311 + e := application.ThrowError(application.ARG_ERROR, "请选择人员进行绩效下载")
  312 + c.Response(nil, e)
  313 + return
  314 + }
310 userReq := middlewares.GetUser(c.Ctx) 315 userReq := middlewares.GetUser(c.Ctx)
311 paramReq.CompanyId = int(userReq.CompanyId) 316 paramReq.CompanyId = int(userReq.CompanyId)
312 paramReq.OperatorId = int(userReq.UserId) 317 paramReq.OperatorId = int(userReq.UserId)
@@ -356,6 +361,7 @@ func (c *StaffAssessController) GetStaffAsessSelfCountLevel() { @@ -356,6 +361,7 @@ func (c *StaffAssessController) GetStaffAsessSelfCountLevel() {
356 c.Response(data, err) 361 c.Response(data, err)
357 } 362 }
358 363
  364 +// 获取未完成评估任务的执行人员名单
359 func (c *StaffAssessController) ListExcutorUncompleted() { 365 func (c *StaffAssessController) ListExcutorUncompleted() {
360 srv := service.NewStaffAssessServeice() 366 srv := service.NewStaffAssessServeice()
361 paramReq := &query.ListExecutorQuery{} 367 paramReq := &query.ListExecutorQuery{}