作者 tangxvhui

调整任务描述数据输出

... ... @@ -227,6 +227,27 @@ func (srv StaffAssessServeice) AssessTaskDescV2(param *query.AssessTaskDescV2Que
stepItem.Desc = fmt.Sprintf("截止日期:%s 待评估%d人", stepItem.EndTime, uncompletedNum)
}
}
case domain.LinkNodeViewResult:
//我被上级评估
_, assessSuperList, err := staffAssessRepo.Find(map[string]interface{}{
"cycleId": assessTaskDataAny.CycleId,
"beginDay": assessTaskDataAny.BeginDay,
"targetUserId": param.UserId,
"typesList": []string{string(domain.AssessSuper)},
"status": domain.StaffAssessUncompleted,
"limit": 1,
})
if err != nil {
return nil, application.ThrowError(application.TRANSACTION_ERROR, "获取未完成的评估环节"+err.Error())
}
if len(assessSuperList) > 0 {
stepItem.Status = string(assessSuperList[0].Status)
stepItem.Desc = fmt.Sprintf("截止日期:%s", stepItem.EndTime)
if assessSuperList[0].Status == domain.StaffAssessUncompleted {
stepItem.Status = string(domain.StaffAssessUncompleted)
break
}
}
}
result.StepList = append(result.StepList, stepItem)
}
... ...