...
|
...
|
@@ -507,8 +507,8 @@ func (srv StaffAssessServeice) CreateStaffAssessTask(transactionContext applicat |
|
|
assassessTaskList[0].UpdatedAt = time.Now()
|
|
|
assassessTaskList[0].ExecutorId = executorIds
|
|
|
//更新步骤
|
|
|
assassessTaskList[0].StepList = append(assassessTaskList[0].StepList, assessTaskData.StepList...)\
|
|
|
asassessTaskData=asassassessTaskList[0]
|
|
|
assassessTaskList[0].StepList = append(assassessTaskList[0].StepList, assessTaskData.StepList...)
|
|
|
assessTaskData = assassessTaskList[0]
|
|
|
//排序流程环节
|
|
|
stepList := domain.SortTaskStep(assessTaskData.StepList)
|
|
|
sort.Sort(stepList)
|
...
|
...
|
@@ -539,7 +539,6 @@ func (srv StaffAssessServeice) CreateStaffAssessTask(transactionContext applicat |
|
|
|
|
|
// 添加节点任务
|
|
|
func (srv StaffAssessServeice) createStaffAssess(transactionContext application.TransactionContext, param *domain.StaffAssessTask) ([]domain.StaffAssess, error) {
|
|
|
|
|
|
selfUserId := []int{} //评估的参与人
|
|
|
userIdMap := map[int]struct{}{} //过滤重复的用户
|
|
|
for _, v := range param.ExecutorId {
|
...
|
...
|
|