* Refactor executionKanban method.

This commit is contained in:
tianshujie
2023-08-30 11:01:32 +08:00
parent e330569747
commit e7a4e5ff42
3 changed files with 94 additions and 64 deletions
+6 -5
View File
@@ -3506,20 +3506,21 @@ class executionModel extends model
}
/**
* Get members by execution id list.
* 获取给定执行的团队成员信息。
* Get team members information for the execution id list.
*
* @param array $executionIdList
* @param array $executionIdList
* @access public
* @return void
* @return array
*/
public function getMembersByIdList($executionIdList)
public function getMembersByIdList(array $executionIdList): array
{
return $this->dao->select("t1.root, t1.account, t2.realname")->from(TABLE_TEAM)->alias('t1')
->leftJoin(TABLE_USER)->alias('t2')->on('t1.account = t2.account')
->where('t1.root')->in($executionIdList)
->andWhere('t1.type')->eq('execution')
->andWhere('t2.deleted')->eq('0')
->fetchGroup('root');
->fetchGroup('root', 'account');
}
/**