|
@@ -308,9 +308,7 @@ func (srv StaffAssessServeice) ListExecutorDayInviteAssess(param *query.ListExec |
|
@@ -308,9 +308,7 @@ func (srv StaffAssessServeice) ListExecutorDayInviteAssess(param *query.ListExec |
308
|
assessRepo := factory.CreateStaffAssessRepository(map[string]interface{}{
|
308
|
assessRepo := factory.CreateStaffAssessRepository(map[string]interface{}{
|
309
|
"transactionContext": transactionContext,
|
309
|
"transactionContext": transactionContext,
|
310
|
})
|
310
|
})
|
311
|
- assessTaskRepo := factory.CreateStaffAssessTaskRepository(map[string]interface{}{
|
|
|
312
|
- "transactionContext": transactionContext,
|
|
|
313
|
- })
|
311
|
+
|
314
|
//获取 executorId 对应的360评估任务 用户
|
312
|
//获取 executorId 对应的360评估任务 用户
|
315
|
condition := map[string]interface{}{
|
313
|
condition := map[string]interface{}{
|
316
|
"beginDay": param.BeginDay,
|
314
|
"beginDay": param.BeginDay,
|
|
@@ -400,15 +398,6 @@ func (srv StaffAssessServeice) ListExecutorDayInviteAssess(param *query.ListExec |
|
@@ -400,15 +398,6 @@ func (srv StaffAssessServeice) ListExecutorDayInviteAssess(param *query.ListExec |
400
|
return nil, application.ThrowError(application.TRANSACTION_ERROR, "获取个人的评估环节"+err.Error())
|
398
|
return nil, application.ThrowError(application.TRANSACTION_ERROR, "获取个人的评估环节"+err.Error())
|
401
|
}
|
399
|
}
|
402
|
|
400
|
|
403
|
- _, myAssessTaskData, err := assessTaskRepo.Find(map[string]interface{}{
|
|
|
404
|
- "beginDay": param.BeginDay,
|
|
|
405
|
- "cycleId": param.CycleId,
|
|
|
406
|
- "executorId": param.ExecutorId,
|
|
|
407
|
- "limit": 1,
|
|
|
408
|
- })
|
|
|
409
|
- if err != nil {
|
|
|
410
|
- return nil, application.ThrowError(application.TRANSACTION_ERROR, "获取评估任务"+err.Error())
|
|
|
411
|
- }
|
|
|
412
|
if err := transactionContext.CommitTransaction(); err != nil {
|
401
|
if err := transactionContext.CommitTransaction(); err != nil {
|
413
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
402
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
414
|
}
|
403
|
}
|
|
@@ -459,15 +448,13 @@ func (srv StaffAssessServeice) ListExecutorDayInviteAssess(param *query.ListExec |
|
@@ -459,15 +448,13 @@ func (srv StaffAssessServeice) ListExecutorDayInviteAssess(param *query.ListExec |
459
|
List: listData,
|
448
|
List: listData,
|
460
|
Total: cnt,
|
449
|
Total: cnt,
|
461
|
}
|
450
|
}
|
462
|
- if len(myAssessTaskData) > 0 {
|
|
|
463
|
- for _, v := range myAssessTaskData[0].StepList {
|
|
|
464
|
- if v.LinkNodeType == domain.LinkNodeAllAssessment {
|
|
|
465
|
- result.LinkNodeId = v.LinkNodeId
|
|
|
466
|
- result.LinkNodeName = v.LinkNodeName
|
|
|
467
|
- result.LintNodeDesc = fmt.Sprintf("截止时间 %s 待评估%d人", v.EndTime.Local().Format("2006-01-02 15:04:05"), cnnt)
|
|
|
468
|
- }
|
|
|
469
|
- }
|
451
|
+
|
|
|
452
|
+ if len(assessList) > 0 {
|
|
|
453
|
+ result.BeginDay = assessList[0].BeginTime.Local().Format("2006-01-02")
|
|
|
454
|
+ result.CycleId = int(assessList[0].CycleId)
|
|
|
455
|
+ result.LintNodeDesc = fmt.Sprintf("截止时间 %s 待评估%d人", assessList[0].EndTime.Local().Format("2006-01-02 15:04:05"), cnnt)
|
470
|
}
|
456
|
}
|
|
|
457
|
+
|
471
|
return &result, nil
|
458
|
return &result, nil
|
472
|
}
|
459
|
}
|
473
|
|
460
|
|
|
@@ -612,6 +599,8 @@ func (srv StaffAssessServeice) ListExecutorDaySupperAssess(param *query.ListExec |
|
@@ -612,6 +599,8 @@ func (srv StaffAssessServeice) ListExecutorDaySupperAssess(param *query.ListExec |
612
|
result := tool_funs.SimpleWrapGridMap(int64(cnt), resultList)
|
599
|
result := tool_funs.SimpleWrapGridMap(int64(cnt), resultList)
|
613
|
result["lintNodeDesc"] = ""
|
600
|
result["lintNodeDesc"] = ""
|
614
|
if len(assessList) > 0 {
|
601
|
if len(assessList) > 0 {
|
|
|
602
|
+ result["cycleId"] = assessList[0].CycleId
|
|
|
603
|
+ result["beginDay"] = assessList[0].BeginTime.Local().Format("2006-01-02")
|
615
|
result["lintNodeDesc"] = fmt.Sprintf("截止时间 %s 待评估 %d 人", assessList[0].EndTime.Local().Format("2006-01-02 15:04:05"), cnnt)
|
604
|
result["lintNodeDesc"] = fmt.Sprintf("截止时间 %s 待评估 %d 人", assessList[0].EndTime.Local().Format("2006-01-02 15:04:05"), cnnt)
|
616
|
}
|
605
|
}
|
617
|
return result, nil
|
606
|
return result, nil
|