fy the remaining working hours of the project card and the project overview.

This commit is contained in:
tianshujie98
2021-07-29 10:29:27 +08:00
parent c27a19e7f0
commit be6f9a010b
+2
View File
@@ -363,6 +363,7 @@ class projectModel extends model
ROUND(SUM(`left`), 2) AS totalLeft')
->from(TABLE_TASK)
->where('execution')->in(array_keys($executions))
->andWhere('project')->eq($projectID)
->andWhere('deleted')->eq(0)
->andWhere('parent')->lt(1)
->fetch();
@@ -376,6 +377,7 @@ class projectModel extends model
$closedTotalLeft = $this->dao->select('ROUND(SUM(`left`), 2) AS totalLeft')->from(TABLE_TASK)
->where('execution')->in(array_keys($executions))
->andWhere('project')->eq($projectID)
->andWhere('deleted')->eq(0)
->andWhere('parent')->lt(1)
->andWhere('status')->in('closed,cancel')