3965-fix(diver-route): supplierAgencyTerm #960

Merged
joan merged 1 commits from 3965-driver-route_sql into master 2022-05-02 13:01:06 +00:00
1 changed files with 2 additions and 1 deletions

View File

@ -14,5 +14,6 @@ FROM route r
LEFT JOIN account.user u ON u.id = w.userFk
LEFT JOIN agencyMode am ON am.id = r.agencyModeFk
LEFT JOIN agency a ON a.id = am.agencyFk
LEFT JOIN supplier s ON s.id = a.supplierFk
LEFT JOIN supplierAgencyTerm sa ON sa.agencyFk = a.id
LEFT JOIN supplier s ON s.id = sa.supplierFk
WHERE r.id IN(?)