feat : driver

This commit is contained in:
2024-11-21 11:52:58 +08:00
parent 4ac7bf32eb
commit 88b731717f

View File

@@ -81,7 +81,7 @@ class DriverService extends BaseService
$query->where('name', 'like', "$name%");
})
->when($cityId > 0, function ($query) use ($cityId) {
$query->whereIn('section_id', $this->adminSectionModel->getIdsByCityId($cityId));
$query->where('city_id', $cityId);
})
->when($id = $this->request->input('query_driver_id'), function ($query) use ($id) {
$query->where('id', $id);