This commit is contained in:
holan20180123
2021-03-29 11:29:45 +08:00
parent 9a20e0d207
commit f5a667ce24
3 changed files with 10 additions and 6 deletions
+2 -1
View File
@@ -1025,10 +1025,11 @@ class userModel extends model
*/
public function getExecutions($account, $type = 'execution', $status = 'all', $orderBy = 'id_desc', $pager = null)
{
if($type == 'execution') $type = 'sprint,stage';
$projectType = $type == 'execution' ? 'sprint,stage' : $type;
$myProjectsList = $this->dao->select('t1. *,t2. *')->from(TABLE_TEAM)->alias('t1')
->leftJoin(TABLE_PROJECT)->alias('t2')->on('t1.root = t2.id')
->where('t1.type')->in($type)
->andWhere('t2.type')->in($projectType)
->beginIF(strpos('doing|wait|suspended|closed', $status) !== false)->andWhere('status')->eq($status)->fi()
->beginIF($status == 'done')->andWhere('status')->in('done,closed')->fi()
->beginIF($status == 'undone')->andWhere('status')->notin('done,closed')->fi()