* Finish task #64972,64973.

This commit is contained in:
dongli
2022-08-23 06:59:18 +00:00
parent cedf77727b
commit 57528ecba5
4 changed files with 25 additions and 17 deletions
+6 -2
View File
@@ -1303,12 +1303,16 @@ class executionModel extends model
* Get execution by idList.
*
* @param array $executionIdList
* @param string $mode all
* @access public
* @return array
*/
public function getByIdList($executionIdList = array())
public function getByIdList($executionIdList = array(), $mode = '')
{
return $this->dao->select('*')->from(TABLE_EXECUTION)->where('id')->in($executionIdList)->fetchAll('id');
return $this->dao->select('*')->from(TABLE_EXECUTION)
->where('id')->in($executionIdList)
->beginIF($mode != 'all')->andWhere('deleted')->eq(0)->fi()
->fetchAll('id');
}
/**