feat: refs #7296 expeditionTruck to roadmapStop #2386
|
@ -17,7 +17,7 @@ FROM (
|
||||||
(
|
(
|
||||||
(
|
(
|
||||||
(
|
(
|
||||||
`vn`.`roadmapStop` `et`
|
`vn`.`roadmapStop` `rs`
|
||||||
LEFT JOIN `vn`.`routesMonitor` `r` ON(`rs`.`id` = `r`.`expeditionTruckFk`)
|
LEFT JOIN `vn`.`routesMonitor` `r` ON(`rs`.`id` = `r`.`expeditionTruckFk`)
|
||||||
)
|
)
|
||||||
LEFT JOIN `vn`.`ticket` `t` ON(`r`.`routeFk` = `t`.`routeFk`)
|
LEFT JOIN `vn`.`ticket` `t` ON(`r`.`routeFk` = `t`.`routeFk`)
|
||||||
|
|
|
@ -20,7 +20,7 @@ FROM (
|
||||||
(
|
(
|
||||||
(
|
(
|
||||||
(
|
(
|
||||||
`vn`.`roadmapStop` `et`
|
`vn`.`roadmapStop` `rs`
|
||||||
JOIN `vn`.`expeditionPallet` `ep` ON(`ep`.`truckFk` = `rs`.`id`)
|
JOIN `vn`.`expeditionPallet` `ep` ON(`ep`.`truckFk` = `rs`.`id`)
|
||||||
)
|
)
|
||||||
JOIN `vn`.`expeditionScan` `es` ON(`es`.`palletFk` = `ep`.`id`)
|
JOIN `vn`.`expeditionScan` `es` ON(`es`.`palletFk` = `ep`.`id`)
|
||||||
|
|
|
@ -12,7 +12,7 @@ AS SELECT `rs`.`id` AS `truckFk`,
|
||||||
`es`.`scanned` AS `scanned`
|
`es`.`scanned` AS `scanned`
|
||||||
FROM (
|
FROM (
|
||||||
(
|
(
|
||||||
`vn`.`roadmapStop` `et`
|
`vn`.`roadmapStop` `rs`
|
||||||
LEFT JOIN `vn`.`expeditionPallet` `ep` ON(`ep`.`truckFk` = `rs`.`id`)
|
LEFT JOIN `vn`.`expeditionPallet` `ep` ON(`ep`.`truckFk` = `rs`.`id`)
|
||||||
)
|
)
|
||||||
LEFT JOIN `vn`.`expeditionScan` `es` ON(`es`.`palletFk` = `ep`.`id`)
|
LEFT JOIN `vn`.`expeditionScan` `es` ON(`es`.`palletFk` = `ep`.`id`)
|
||||||
|
|
Loading…
Reference in New Issue