- fix bug in UpdateStore(GetRows)

This commit is contained in:
gazebo
2018-10-26 20:09:56 +08:00
parent f12cfafe23
commit 0397729aa0
6 changed files with 29 additions and 19 deletions

View File

@@ -211,6 +211,13 @@ func (t *BaseTask) SetParent(parentTask ITask) {
t.parent = parentTask
}
func AddChild(parentTask ITask, task ITask) ITask {
if parentTask != nil {
return parentTask.AddChild(task)
}
return task
}
/////////
func (t *BaseTask) MarshalJSON() ([]byte, error) {