...
|
...
|
@@ -928,9 +928,13 @@ func (srv StaffAssessServeice) GetAssessInfo(param *query.AssessInfoQuery) (*ada |
|
|
}
|
|
|
taskMap := map[int]*domain.Task{}
|
|
|
taskRepository := factory.CreateTaskRepository(map[string]interface{}{"transactionContext": transactionContext})
|
|
|
_, tasks, err := taskRepository.Find(map[string]interface{}{"ids": taskIdArray, "limit": len(taskIdArray)})
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "获取里程碑数据:"+err.Error())
|
|
|
|
|
|
var tasks []*domain.Task
|
|
|
if len(taskIdArray) > 0 {
|
|
|
_, tasks, err = taskRepository.Find(map[string]interface{}{"ids": taskIdArray, "limit": len(taskIdArray)})
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "获取里程碑数据:"+err.Error())
|
|
|
}
|
|
|
}
|
|
|
for i := range tasks {
|
|
|
taskMap[tasks[i].Id] = tasks[i]
|
...
|
...
|
|