* code for task #6289.

This commit is contained in:
wangyidong
2019-09-02 09:17:07 +08:00
parent 2e8d4ae45e
commit eecb6a5020
-1
View File
@@ -898,7 +898,6 @@ class block extends control
$tasks = $this->dao->select("project, count(id) as totalTasks, count(status in ('wait','doing','pause') or null) as undoneTasks, count(finishedDate like '{$yesterday}%' or null) as yesterdayFinished, sum(if(status != 'cancel', estimate, 0)) as totalEstimate, sum(consumed) as totalConsumed, sum(if(status != 'cancel' and status != 'closed', `left`, 0)) as totalLeft")->from(TABLE_TASK)
->where('project')->in($projectIdList)
->andWhere('deleted')->eq(0)
->andWhere('parent')->ge(0)
->groupBy('project')
->fetchAll('project');
foreach($tasks as $projectID => $task)