...
|
...
|
@@ -52,10 +52,9 @@ func (srv StaffAssessServeice) SearchAssessTaskMeV2(param *query.SearchAssessMeQ |
|
|
var temp adapter.AssessCycleDayResp
|
|
|
for _, v := range assessCycleList {
|
|
|
temp = adapter.AssessCycleDayResp{
|
|
|
CycleId: v.CycleId,
|
|
|
CycleName: v.CycleName,
|
|
|
BeginDay: v.BeginDay,
|
|
|
AssessTaskId: v.AssessTaskId,
|
|
|
CycleId: v.CycleId,
|
|
|
CycleName: v.CycleName,
|
|
|
BeginDay: v.BeginDay,
|
|
|
}
|
|
|
listData = append(listData, temp)
|
|
|
}
|
...
|
...
|
@@ -416,6 +415,8 @@ func (srv StaffAssessServeice) ListExecutorInviteAssessV2(param *query.ListExecu |
|
|
"userName": v.TargetUser.UserName,
|
|
|
"userId": strconv.Itoa(v.TargetUser.UserId),
|
|
|
"status": string(v.Status),
|
|
|
"cycleId": strconv.FormatInt(v.CycleId, 10),
|
|
|
"beginDay": v.BeginTime.Local().Format("2006-01-02"),
|
|
|
"types": string(v.Types),
|
|
|
"endTime": v.EndTime.Local().Format("2006-01-02 15:04:05"),
|
|
|
"assessId": strconv.Itoa(v.Id),
|
...
|
...
|
@@ -560,7 +561,9 @@ func (srv StaffAssessServeice) ListExecutorSupperAssessV2(param *query.ListExecu |
|
|
for _, v := range assessList {
|
|
|
item := adapter.ListSupperAssessResp{
|
|
|
AssessId: v.Id,
|
|
|
UsrId: v.TargetUser.UserId,
|
|
|
CycleId: int(v.CycleId),
|
|
|
BeginDay: v.BeginTime.Local().Format("2006-01-02"),
|
|
|
UserId: v.TargetUser.UserId,
|
|
|
UserName: v.TargetUser.UserName,
|
|
|
EndTime: v.EndTime.Local().Format("2006-01-02 15:04:05"),
|
|
|
InviteCompleted: 0,
|
...
|
...
|
@@ -624,7 +627,7 @@ func (srv StaffAssessServeice) GetAssessSelfInfoV2(param *query.GetExecutorSelfA |
|
|
// 获取员工的评估
|
|
|
_, assessList, err := assessReps.Find(map[string]interface{}{
|
|
|
"companyId": param.CompanyId,
|
|
|
"executorId": param.ExecutorId,
|
|
|
"executorId": param.TargetUserId,
|
|
|
"cycleId": param.CycleId,
|
|
|
"beginDay": param.BeginDay,
|
|
|
"typesList": []string{string(domain.AssessSelf)},
|
...
|
...
|
@@ -634,7 +637,7 @@ func (srv StaffAssessServeice) GetAssessSelfInfoV2(param *query.GetExecutorSelfA |
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "获取员工的评估"+err.Error())
|
|
|
}
|
|
|
if len(assessList) == 0 {
|
|
|
return &adapter.AssessInfoResp{}, nil
|
|
|
return nil, application.ThrowError(application.BUSINESS_ERROR, "不存在员工的自评内容")
|
|
|
}
|
|
|
assessData := assessList[0]
|
|
|
|
...
|
...
|
@@ -659,7 +662,7 @@ func (srv StaffAssessServeice) GetAssessSelfInfoV2(param *query.GetExecutorSelfA |
|
|
}
|
|
|
|
|
|
//获取员工描述
|
|
|
staffDesc, _ := srv.getStaffDescrip(transactionContext, int64(param.ExecutorId))
|
|
|
staffDesc, _ := srv.getStaffDescrip(transactionContext, int64(param.TargetUserId))
|
|
|
if err := transactionContext.CommitTransaction(); err != nil {
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
}
|
...
|
...
|
|