* code for task #72276.

This commit is contained in:
wangyidong
2022-10-17 14:27:45 +08:00
parent 3dc2ee8dd0
commit 45f2d070c5
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -214,11 +214,11 @@ class projectModel extends model
->groupBy('t1.root')
->fetchAll('root');
$condition = 't2.parent as project';
$condition = 't2.project as project';
$estimates = $this->dao->select("$condition, sum(estimate) as estimate")->from(TABLE_TASK)->alias('t1')
->leftJoin(TABLE_PROJECT)->alias('t2')->on('t1.execution = t2.id')
->where('t1.parent')->lt(1)
->andWhere('t2.parent')->in($projectIdList)
->andWhere('t2.project')->in($projectIdList)
->andWhere('t1.deleted')->eq(0)
->andWhere('t2.deleted')->eq(0)
->groupBy('project')