소스 검색

小高薪

cqp 3 달 전
부모
커밋
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) {