|
|
@ -163,12 +163,13 @@ class CampusPersonRoleService extends BaseAdminService |
|
|
return $campusModel->select()->toArray(); |
|
|
return $campusModel->select()->toArray(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public function getPersonnelAll(){ |
|
|
public function getPersonnelAll($campus_id){ |
|
|
$person_ids = $this->model->column("person_id"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$personnelModel = new Personnel(); |
|
|
$personnelModel = new Personnel(); |
|
|
return $personnelModel->where([['id','not in',$person_ids]])->select()->toArray(); |
|
|
return $personnelModel->when($campus_id, function ($query) use ($campus_id) { |
|
|
|
|
|
$query->where('campus_id', $campus_id); |
|
|
|
|
|
})->where('status',2) |
|
|
|
|
|
->select() |
|
|
|
|
|
->toArray(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public function getSysRoleAll($data){ |
|
|
public function getSysRoleAll($data){ |
|
|
|