正在显示
1 个修改的文件
包含
21 行增加
和
0 行删除
@@ -227,6 +227,27 @@ func (srv StaffAssessServeice) AssessTaskDescV2(param *query.AssessTaskDescV2Que | @@ -227,6 +227,27 @@ func (srv StaffAssessServeice) AssessTaskDescV2(param *query.AssessTaskDescV2Que | ||
227 | stepItem.Desc = fmt.Sprintf("截止日期:%s 待评估%d人", stepItem.EndTime, uncompletedNum) | 227 | stepItem.Desc = fmt.Sprintf("截止日期:%s 待评估%d人", stepItem.EndTime, uncompletedNum) |
228 | } | 228 | } |
229 | } | 229 | } |
230 | + case domain.LinkNodeViewResult: | ||
231 | + //我被上级评估 | ||
232 | + _, assessSuperList, err := staffAssessRepo.Find(map[string]interface{}{ | ||
233 | + "cycleId": assessTaskDataAny.CycleId, | ||
234 | + "beginDay": assessTaskDataAny.BeginDay, | ||
235 | + "targetUserId": param.UserId, | ||
236 | + "typesList": []string{string(domain.AssessSuper)}, | ||
237 | + "status": domain.StaffAssessUncompleted, | ||
238 | + "limit": 1, | ||
239 | + }) | ||
240 | + if err != nil { | ||
241 | + return nil, application.ThrowError(application.TRANSACTION_ERROR, "获取未完成的评估环节"+err.Error()) | ||
242 | + } | ||
243 | + if len(assessSuperList) > 0 { | ||
244 | + stepItem.Status = string(assessSuperList[0].Status) | ||
245 | + stepItem.Desc = fmt.Sprintf("截止日期:%s", stepItem.EndTime) | ||
246 | + if assessSuperList[0].Status == domain.StaffAssessUncompleted { | ||
247 | + stepItem.Status = string(domain.StaffAssessUncompleted) | ||
248 | + break | ||
249 | + } | ||
250 | + } | ||
230 | } | 251 | } |
231 | result.StepList = append(result.StepList, stepItem) | 252 | result.StepList = append(result.StepList, stepItem) |
232 | } | 253 | } |
-
请 注册 或 登录 后发表评论