* adjust for count project task.

This commit is contained in:
wangyidong
2019-02-01 14:59:30 +08:00
parent 66bbff8ab1
commit 6d30d1814f
+1 -1
View File
@@ -901,7 +901,7 @@ 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')->lt(1)
->andWhere('parent')->ge(0)
->groupBy('project')
->fetchAll('project');
foreach($tasks as $projectID => $task)