소스 검색

小高薪

cqp 3 달 전
부모
커밋
e14e1d45b3
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      app/Service/EmployeeService.php

+ 2 - 0
app/Service/EmployeeService.php

@@ -82,6 +82,7 @@ class EmployeeService extends Service
                     $insert[] = [
                         'employee_id' => $model->id,
                         'depart_id' => $value,
+                        'top_depart_id' => $user['top_depart_id'],
                     ];
                 }
                 EmployeeDepartPermission::insert($insert);
@@ -141,6 +142,7 @@ class EmployeeService extends Service
                     $insert[] = [
                         'employee_id' => $model->id,
                         'depart_id' => $value,
+                        'top_depart_id' => $user['top_depart_id'],
                     ];
                 }
                 EmployeeDepartPermission::insert($insert);