* Refactor restoreStages method of the action module.

This commit is contained in:
wangxuepeng
2023-09-11 08:45:24 +00:00
parent 323086e4f8
commit bf13fbe98e
4 changed files with 125 additions and 29 deletions
+13
View File
@@ -5067,4 +5067,17 @@ class executionModel extends model
$this->dao->update($table)->set('deleted')->eq(1)->where('id')->eq($executionID)->exec();
$this->loadModel('action')->create('execution', $executionID, 'deleted');
}
/*
* 通过父级id获取同级的所有执行类型。
* Get all execution types of the same level through the parent id.
*
* @param int $parentID
* @access public
* @return void
*/
public function getSiblingsTypeByParentID($parentID)
{
return $this->dao->select('DISTINCT type')->from(TABLE_EXECUTION)->where('deleted')->eq(0)->andWhere('parent')->eq($parentID)->fetchPairs('type');
}
}