|
@@ -30,6 +30,7 @@ func (srv *SummaryEvaluationService) ListEvaluationShow1(param command.QueryEval |
|
@@ -30,6 +30,7 @@ func (srv *SummaryEvaluationService) ListEvaluationShow1(param command.QueryEval |
30
|
staffAssessDaoRepo := dao.NewStaffAssessDao(map[string]interface{}{"transactionContext": transactionContext})
|
30
|
staffAssessDaoRepo := dao.NewStaffAssessDao(map[string]interface{}{"transactionContext": transactionContext})
|
31
|
userRepo := factory.CreateUserRepository(map[string]interface{}{"transactionContext": transactionContext})
|
31
|
userRepo := factory.CreateUserRepository(map[string]interface{}{"transactionContext": transactionContext})
|
32
|
positionRepo := factory.CreatePositionRepository(map[string]interface{}{"transactionContext": transactionContext})
|
32
|
positionRepo := factory.CreatePositionRepository(map[string]interface{}{"transactionContext": transactionContext})
|
|
|
33
|
+ staffAssessRepo := factory.CreateStaffAssessRepository(map[string]interface{}{"transactionContext": transactionContext})
|
33
|
|
34
|
|
34
|
limit := param.PageSize
|
35
|
limit := param.PageSize
|
35
|
offset := limit * (param.PageNumber - 1)
|
36
|
offset := limit * (param.PageNumber - 1)
|
|
@@ -98,14 +99,18 @@ func (srv *SummaryEvaluationService) ListEvaluationShow1(param command.QueryEval |
|
@@ -98,14 +99,18 @@ func (srv *SummaryEvaluationService) ListEvaluationShow1(param command.QueryEval |
98
|
for i := range list {
|
99
|
for i := range list {
|
99
|
v := list[i]
|
100
|
v := list[i]
|
100
|
endTime := v.EndTime.Local()
|
101
|
endTime := v.EndTime.Local()
|
101
|
- // 状态
|
|
|
102
|
- statusVal := ""
|
|
|
103
|
- if v.HrCheckResult == domain.EvaluationCheckCompleted {
|
102
|
+ // 检查15日自评 完成情况状态
|
|
|
103
|
+ statusVal := "未完成"
|
|
|
104
|
+ _, assessList, err := staffAssessRepo.Find(map[string]interface{}{
|
|
|
105
|
+ "cycleId": v.CycleId,
|
|
|
106
|
+ "targetUserId": v.TargetUser.UserId,
|
|
|
107
|
+ "beginDayNumber": 15,
|
|
|
108
|
+ })
|
|
|
109
|
+ if err == nil && len(assessList) > 0 {
|
|
|
110
|
+ if assessList[0].Status == domain.StaffAssessCompleted {
|
104
|
statusVal = "已完成"
|
111
|
statusVal = "已完成"
|
105
|
- } else {
|
|
|
106
|
- statusVal = "待完成"
|
|
|
107
|
}
|
112
|
}
|
108
|
-
|
113
|
+ }
|
109
|
// 部门拼接
|
114
|
// 部门拼接
|
110
|
var departmentBuild strings.Builder
|
115
|
var departmentBuild strings.Builder
|
111
|
departmentBuild.WriteString("")
|
116
|
departmentBuild.WriteString("")
|