cqp 3 месяцев назад
Родитель
Сommit
55320d2b3d
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      app/Service/PersonWorkService.php

+ 1 - 2
app/Service/PersonWorkService.php

@@ -98,7 +98,6 @@ class PersonWorkService extends Service
         $map = Employee::whereIn('id', $id)->select('title','id','number')->get()->toArray();
         $map = array_column($map,null,'id');
 
-        $unit = [];
         foreach ($data as $key => $value){
             $tmp = $map[$value['employee_id']] ?? [];
             $merge = [];
@@ -110,7 +109,7 @@ class PersonWorkService extends Service
         }
 
         $detail = [
-            'details' => $unit,
+            'details' => $data,
         ];
 
         foreach ($detail as $key => $value) {