...
|
...
|
@@ -242,11 +242,23 @@ func (srv StaffAssessServeice) CreateStaffAssessTask(transactionContext applicat |
|
|
assassessTaskList[0].ExecutorId = executorIds
|
|
|
//更新步骤
|
|
|
assassessTaskList[0].StepList = append(assassessTaskList[0].StepList, assessTaskData.StepList...)
|
|
|
for _, val := range assessTaskData.StepList {
|
|
|
hasFound := false
|
|
|
for _, val2 := range assassessTaskList[0].StepList {
|
|
|
if val.LinkNodeType == val2.LinkNodeType {
|
|
|
hasFound = true
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
if !hasFound {
|
|
|
assassessTaskList[0].StepList = append(assassessTaskList[0].StepList, val)
|
|
|
}
|
|
|
}
|
|
|
assessTaskData = assassessTaskList[0]
|
|
|
//排序流程环节
|
|
|
stepList := domain.SortTaskStep(assessTaskData.StepList)
|
|
|
sort.Sort(stepList)
|
|
|
}
|
|
|
stepList := domain.SortTaskStep(assessTaskData.StepList)
|
|
|
sort.Sort(stepList)
|
|
|
_, err = assessTaskRepo.Save(assessTaskData)
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "保存评估任务"+err.Error())
|
...
|
...
|
|