Feature/nominatim function adjustment
This commit is contained in:
@@ -581,7 +581,7 @@ class CoridorsController extends Controller
|
||||
$data = RoadItemsProject::with('files')->find($request->id);
|
||||
break;
|
||||
case "2":
|
||||
$data = RoadPatrolProject::find($request->id);
|
||||
$data = RoadPatrol::find($request->id);
|
||||
break;
|
||||
case "3":
|
||||
$collection = \App\Models\ContractSubItems::whereId($request->id)->get();
|
||||
@@ -725,13 +725,13 @@ class CoridorsController extends Controller
|
||||
}
|
||||
|
||||
if ( in_array(2, $typeArrays) ) {
|
||||
$roadPatrolProject = RoadPatrolProject::whereIn('start_way_id', $idArrays)
|
||||
$roadPatrolProject = RoadPatrol::whereIn('start_way_id', $idArrays)
|
||||
->orWhereIn('end_way_id', $idArrays)
|
||||
// ->when($date_to , function ($query) use ($date_to, $date_from) {
|
||||
->whereBetween('created_at', [$date_from . ' 00:00:00', $date_to . ' 23:59:59'])
|
||||
// })
|
||||
->whereNotNull('start_lat')
|
||||
->select('start_lat', 'start_lng', 'id')
|
||||
->select('start_lat', 'start_lon', 'id')
|
||||
->get();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user