|
@@ -73,8 +73,12 @@ func sendSummaryEvaluation(project *domain.EvaluationProject, |
|
@@ -73,8 +73,12 @@ func sendSummaryEvaluation(project *domain.EvaluationProject, |
73
|
}
|
73
|
}
|
74
|
nodeId := 0
|
74
|
nodeId := 0
|
75
|
executor360Map := map[int64]*domain.User{}
|
75
|
executor360Map := map[int64]*domain.User{}
|
|
|
76
|
+ hrbpExist := false
|
76
|
for _, v := range itemList {
|
77
|
for _, v := range itemList {
|
77
|
nodeId = v.NodeId
|
78
|
nodeId = v.NodeId
|
|
|
79
|
+ if v.EvaluatorId < 0 {
|
|
|
80
|
+ hrbpExist = true
|
|
|
81
|
+ }
|
78
|
if v.EvaluatorId <= 0 {
|
82
|
if v.EvaluatorId <= 0 {
|
79
|
continue
|
83
|
continue
|
80
|
}
|
84
|
}
|
|
@@ -106,8 +110,8 @@ func sendSummaryEvaluation(project *domain.EvaluationProject, |
|
@@ -106,8 +110,8 @@ func sendSummaryEvaluation(project *domain.EvaluationProject, |
106
|
DeletedAt: nil,
|
110
|
DeletedAt: nil,
|
107
|
}
|
111
|
}
|
108
|
|
112
|
|
109
|
- //确定自评
|
|
|
110
|
- //确定 被评估人的 上级评估
|
113
|
+ //确定周期评估
|
|
|
114
|
+
|
111
|
for _, v := range targetUserMap {
|
115
|
for _, v := range targetUserMap {
|
112
|
//处理自评
|
116
|
//处理自评
|
113
|
evaluationTemp.TargetUser = domain.StaffDesc{
|
117
|
evaluationTemp.TargetUser = domain.StaffDesc{
|
|
@@ -136,6 +140,7 @@ func sendSummaryEvaluation(project *domain.EvaluationProject, |
|
@@ -136,6 +140,7 @@ func sendSummaryEvaluation(project *domain.EvaluationProject, |
136
|
}
|
140
|
}
|
137
|
//确定自评
|
141
|
//确定自评
|
138
|
newEvaluationList = append(newEvaluationList, evaluationTemp)
|
142
|
newEvaluationList = append(newEvaluationList, evaluationTemp)
|
|
|
143
|
+ if hrbpExist {
|
139
|
//处理人资评估
|
144
|
//处理人资评估
|
140
|
evaluationTemp.BeginTime = beginTime360
|
145
|
evaluationTemp.BeginTime = beginTime360
|
141
|
evaluationTemp.EndTime = endTime360
|
146
|
evaluationTemp.EndTime = endTime360
|
|
@@ -143,6 +148,7 @@ func sendSummaryEvaluation(project *domain.EvaluationProject, |
|
@@ -143,6 +148,7 @@ func sendSummaryEvaluation(project *domain.EvaluationProject, |
143
|
evaluationTemp.Types = domain.EvaluationHrbp
|
148
|
evaluationTemp.Types = domain.EvaluationHrbp
|
144
|
//确定人资评估
|
149
|
//确定人资评估
|
145
|
newEvaluationList = append(newEvaluationList, evaluationTemp)
|
150
|
newEvaluationList = append(newEvaluationList, evaluationTemp)
|
|
|
151
|
+ }
|
146
|
//处理360 评估
|
152
|
//处理360 评估
|
147
|
for _, v2 := range executor360Map {
|
153
|
for _, v2 := range executor360Map {
|
148
|
evaluationTemp.BeginTime = beginTime360
|
154
|
evaluationTemp.BeginTime = beginTime360
|