...
|
...
|
@@ -500,10 +500,12 @@ func (srv StaffAssessServeice) buildTaskRecord(staffAssess *domain.StaffAssess) |
|
|
}
|
|
|
}
|
|
|
|
|
|
// if newTaskRecord.TaskStageCheck.Id > 0 { ,
|
|
|
// 没有里程碑也下发任务
|
|
|
taskRecordList = append(taskRecordList, &newTaskRecord)
|
|
|
// }
|
|
|
if len(newTaskRecord.TaskStages) > 0 && newTaskRecord.TaskStageCheck.Id == 0 {
|
|
|
// 里程碑已全部完成,不发任务
|
|
|
} else {
|
|
|
taskRecordList = append(taskRecordList, &newTaskRecord)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if err := transactionContext.CommitTransaction(); err != nil {
|
...
|
...
|
|