|
|
@@ -264,7 +264,7 @@ class EmployeeService extends Service
|
|
|
|
|
|
public function employeeDetail($data, $user){
|
|
|
if(empty($data['id'])) return [false,'人员id不能为空'];
|
|
|
- list($status, $return) = $this->employeeList(['id' => $data['id']], $user);
|
|
|
+ list($status, $return) = $this->employeeList(['id' => [$data['id']]], $user);
|
|
|
$user = $return['data'][0] ?? [];
|
|
|
$details = EmployeeDetails::where('del_time',0)
|
|
|
->where('employee_id',$data['id'])
|