Merge branch 'sprint/231_dongli_64973' into 'master'

* Finish task #64972,64973,64969.

See merge request easycorp/zentaopms!5076
This commit is contained in:
王怡栋
2022-08-24 01:14:44 +00:00
9 changed files with 84 additions and 12 deletions
+6 -2
View File
@@ -1315,12 +1315,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)->andWhere('deleted')->eq(0)->fetchAll('id');
return $this->dao->select('*')->from(TABLE_EXECUTION)
->where('id')->in($executionIdList)
->beginIF($mode != 'all')->andWhere('deleted')->eq(0)->fi()
->fetchAll('id');
}
/**