update vehicles history maintenance

This commit is contained in:
wayanrivan
2026-07-13 11:52:15 +07:00
parent a0ce09cdda
commit 583ea3b9a0
4 changed files with 365 additions and 11 deletions

View File

@ -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) {