|
@@ -102,10 +102,11 @@ class EmployeeService extends Service
|
|
|
return [true,'删除成功'];
|
|
|
}
|
|
|
|
|
|
- public function employeeList($data){
|
|
|
+ public function employeeList($data,$user){
|
|
|
$model = Employee::where('del_time',0)
|
|
|
->select('crt_time','account','upd_time','id','mark')
|
|
|
->orderBy('id','desc');
|
|
|
+ if($user['id'] != Employee::SPECIAL_ACCOUNT_ID) $model->where('id','<>',Employee::SPECIAL_ACCOUNT_ID);
|
|
|
if(! empty($data['account'])) $model->where('account', 'LIKE', '%'.$data['account'].'%');
|
|
|
if(! empty($data['mark'])) $model->where('mark', 'LIKE', '%'.$data['mark'].'%');
|
|
|
|