* Finish task #37015.

This commit is contained in:
holan20180123
2021-04-01 17:12:59 +08:00
parent de99085844
commit 82cc3f6ce4
2 changed files with 37 additions and 25 deletions
+4 -1
View File
@@ -258,7 +258,10 @@ class projectModel extends model
if(empty($projects)) return array();
$projectIdList = array_keys($projects);
$teams = $this->dao->select('root, count(*) as teams')->from(TABLE_TEAM)->where('root')->in($projectIdList)->groupBy('root')->fetchPairs();
$teams = $this->dao->select('root, count(*) as teams')->from(TABLE_TEAM)
->where('root')->in($projectIdList)
->andWhere('type')->in('project')
->groupBy('root')->fetchPairs();
$hours = $this->dao->select('project,
sum(consumed) as consumed,