This commit is contained in:
songchenxuan
2023-08-14 10:49:03 +08:00
parent a9cb0e982a
commit 195d68c588
2 changed files with 2 additions and 4 deletions
+1 -1
View File
@@ -1382,7 +1382,7 @@ class programModel extends model
foreach($stats as $projectID => $project)
{
$totalReal = $project['totalConsumed'] + $project['totalLeft'];
$progress = $totalReal ? round($project['totalConsumed'] / $totalReal, 2) * 100 : 0;
$progress = $totalReal ? floor($project['totalConsumed'] / $totalReal * 1000) / 1000 * 100 : 0;
$this->dao->update(TABLE_PROJECT)
->set('progress')->eq($progress)
->set('teamCount')->eq($project['teamCount'])