Browse Source

小高薪

cqp 3 tháng trước cách đây
mục cha
commit
e14e1d45b3
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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);