update vehicles history maintenance
This commit is contained in:
@ -72,7 +72,7 @@ class VehiclesController extends Controller
|
||||
$filter["company"] = $req->cptid;
|
||||
}
|
||||
$list = DB::select("SELECT
|
||||
v.id, v.name, v.device_id, nopol1, nopol2, nopol3, v.sum_milleage,
|
||||
v.id, v.name, v.device_id, nopol1, nopol2, nopol3, v.sum_milleage,
|
||||
fvhc_img, vyear, t.`desc` type_name, c_name company_name, rltm.crt_d, rltm.crt crt_rltm,
|
||||
dvc.crt, dvc.simcard, fuel_curr, dvc.protocol, v.cat_id, vc.name cat_name
|
||||
FROM t_vehicles as v
|
||||
@ -84,7 +84,7 @@ class VehiclesController extends Controller
|
||||
left join t_gps_tracks_rltm rltm on rltm.vhc_id = v.id
|
||||
LEFT JOIN t_vehicles_cats AS vc ON v.cat_id = vc.id
|
||||
WHERE v.dlt is null
|
||||
ORDER BY v.id ASC
|
||||
ORDER BY v.id ASC
|
||||
");
|
||||
|
||||
foreach ($list as $key => $row) {
|
||||
|
||||
Reference in New Issue
Block a user