|
@@ -301,13 +301,12 @@ class EmployeeService extends Service
|
|
|
}else{
|
|
}else{
|
|
|
$new[] = $data['img_url'];
|
|
$new[] = $data['img_url'];
|
|
|
}
|
|
}
|
|
|
- $insert[] = [
|
|
|
|
|
|
|
+ EmployeeFile::insert([
|
|
|
'employee_id' => $model->id,
|
|
'employee_id' => $model->id,
|
|
|
'file' => $data['img_url'],
|
|
'file' => $data['img_url'],
|
|
|
'crt_time' => $time,
|
|
'crt_time' => $time,
|
|
|
'top_depart_id' => $user['top_depart_id'],
|
|
'top_depart_id' => $user['top_depart_id'],
|
|
|
- ];
|
|
|
|
|
- EmployeeFile::insert($insert);
|
|
|
|
|
|
|
+ ]);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
DB::commit();
|
|
DB::commit();
|