|
@@ -70,7 +70,7 @@ class EmployeeService extends Service
|
|
|
public function employeeList($data,$user){
|
|
|
$model = Employee::where('del_time',0)
|
|
|
->where('id','<>',Employee::SPECIAL_ADMIN)
|
|
|
- ->select('account','upd_time','id','crt_time','emp_name')
|
|
|
+ ->select('account','upd_time','id','crt_time','emp_name','is_admin')
|
|
|
->orderBy('id','desc');
|
|
|
if(! empty($data['account'])) $model->where('account', 'LIKE', '%'.$data['account'].'%');
|
|
|
if(! empty($data['mark'])) $model->where('mark', 'LIKE', '%'.$data['mark'].'%');
|