Merge branch 'sprint/task_zhouxudong_48843' into 'master'

*Finish task #48843.

See merge request easycorp/zentaopms!1745
This commit is contained in:
李玉春
2022-02-10 02:54:20 +00:00
+3 -2
View File
@@ -225,7 +225,8 @@ class programModel extends model
->andWhere('deleted')->eq(0)
->fetchGroup('execution', 'id');
$hours = $this->computeProgress($tasks);
$hours = $this->computeProgress($tasks);
$projectHours = $this->getProgressList();
/* Group data by product. */
foreach($productGroup as $programID => $products)
@@ -249,7 +250,7 @@ class programModel extends model
}
$project->execution = $execution;
$project->hours = zget($hours, $project->id, array());
$project->hours['progress'] = zget($projectHours, $project->id, array());
$product->projects[$status][] = $project;
}
}