...
|
...
|
@@ -449,9 +449,10 @@ func (srv StaffAssessServeice) buildTaskRecord(staffAssess *domain.StaffAssess) |
|
|
taskRecordList := []*domain.TaskRecord{}
|
|
|
for _, val := range evaluationItemList {
|
|
|
_, taskList, err := taskRepo.Find(map[string]interface{}{
|
|
|
"name": val.Name,
|
|
|
"leaderId": projectData.PrincipalId,
|
|
|
"status": domain.TaskRunning,
|
|
|
"name": val.Name,
|
|
|
"leaderId": projectData.PrincipalId,
|
|
|
"status": domain.TaskRunning,
|
|
|
"createdBy": 0,
|
|
|
})
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.ARG_ERROR, "获取评估项指标任务task信息"+err.Error())
|
...
|
...
|
@@ -508,6 +509,7 @@ func (srv StaffAssessServeice) buildTaskRecord(staffAssess *domain.StaffAssess) |
|
|
taskRecordList = append(taskRecordList, &newTaskRecord)
|
|
|
}
|
|
|
}
|
|
|
//TODO 设置手动创建的task
|
|
|
|
|
|
if err := transactionContext.CommitTransaction(); err != nil {
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
...
|
...
|
|