|
@@ -23,6 +23,17 @@ class ConfigPickupNodeRepository {
|
|
$where[] = ['id', '=', $request['id']];
|
|
$where[] = ['id', '=', $request['id']];
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if(isset($request['name'])){
|
|
|
|
+ $where[] = ['name', '=', $request['name']];
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if(isset($request['city_id'])){
|
|
|
|
+ $where[] = ['city_id', '=', $request['city_id']];
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if(isset($request['status'])){
|
|
|
|
+ $where[] = ['status', '=', $request['status']];
|
|
|
|
+ }
|
|
return $this->configPickupNode->where($where)->paginate($perPage);
|
|
return $this->configPickupNode->where($where)->paginate($perPage);
|
|
|
|
|
|
}
|
|
}
|