gogs 1 месяц назад
Родитель
Сommit
7958fb523a
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/Service/StatisticService.php

+ 1 - 1
app/Service/StatisticService.php

@@ -863,7 +863,7 @@ class StatisticService extends StatisticCommonService
             $total_min = $employee_monthly_total_min[$key] ?? 0;
             // B. 计算工资分摊:(项目工时 / 月总工时) * 月工资
             if ($total_min > 0) {
-                $ratio = round($item['total_work'] / $total_min, 4);
+                $ratio = round((round($item['total_work']/60,2) / round($total_min/60,2)), 4);
             } else {
                 $ratio = 0;
             }