浏览代码

小高薪

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);