|
@@ -197,14 +197,11 @@ class StatisticService extends StatisticCommonService
|
|
|
foreach ($word_keys as $k=>$v){
|
|
foreach ($word_keys as $k=>$v){
|
|
|
$counts[$k] = $employee_count;
|
|
$counts[$k] = $employee_count;
|
|
|
}
|
|
}
|
|
|
-// var_dump($sums['allocated_salary']);
|
|
|
|
|
-// var_dump($item_month_list);
|
|
|
|
|
-// $sums($item_month_list);
|
|
|
|
|
$item_month_list = collect($item_month_list)->transform(function ($item) use ($item_title_key_list, $item_code_key_list, $employee_key_list, &$sums, &$counts,$word_keys) {
|
|
$item_month_list = collect($item_month_list)->transform(function ($item) use ($item_title_key_list, $item_code_key_list, $employee_key_list, &$sums, &$counts,$word_keys) {
|
|
|
$item['item_title'] = $item_title_key_list[$item['item_id']] ?? "未知项目({$item['item_id']})";
|
|
$item['item_title'] = $item_title_key_list[$item['item_id']] ?? "未知项目({$item['item_id']})";
|
|
|
$item['item_code'] = $item_code_key_list[$item['item_id']] ?? "未知项目({$item['item_id']})";
|
|
$item['item_code'] = $item_code_key_list[$item['item_id']] ?? "未知项目({$item['item_id']})";
|
|
|
$item['employee_title'] = $employee_key_list[$item['employee_id']] ?? "未知人员({$item['employee_id']})";
|
|
$item['employee_title'] = $employee_key_list[$item['employee_id']] ?? "未知人员({$item['employee_id']})";
|
|
|
- $item['total_hours'] = round($item['work_minutes'] / 60,2);
|
|
|
|
|
|
|
+// $item['total_hours'] = round($item['work_minutes'] / 60,2);
|
|
|
$item['total_salary'] = round($item['total_salary'] / 100,2);
|
|
$item['total_salary'] = round($item['total_salary'] / 100,2);
|
|
|
$key = $item['employee_id'] . '_' . $item['month'];
|
|
$key = $item['employee_id'] . '_' . $item['month'];
|
|
|
// // 如果不是最后一条
|
|
// // 如果不是最后一条
|