|
@@ -966,7 +966,7 @@ class EmployeeService extends Service
|
|
|
->get()->toArray();
|
|
|
$childDepartments = $titleDepartments = [];
|
|
|
foreach ($depart as $value){
|
|
|
- if($value['parent_id'] == $data['parent_id']) $childDepartments[] = $value;
|
|
|
+ if($value['parentId'] == $data['parent_id']) $childDepartments[] = $value;
|
|
|
if($value['id'] == $data['parent_id']) $titleDepartments[] = $value;
|
|
|
}
|
|
|
$return['childDepartments'] = $childDepartments;
|