运单登记列表sql优化

dev
WenShiJun 2024-03-21 08:54:55 +08:00
parent c93b8b8801
commit 29dee5bfd2
1 changed files with 0 additions and 5 deletions

View File

@ -160,14 +160,9 @@
u.NAME,
b.LOCATIONNAME AS ORIGIN_NAME,
b2.LOCATIONNAME AS DESTINATION_NAME
o.LOCATIONNAME as ORIGIN_NAME,
d.LOCATIONNAME as DESTINATION_NAME,
i.CORP_NAME
from
<include refid="tableName"></include> f
left join bus_corp_info i on f.TRANSPORTATIONCOMPANY = i.CORPINFO_ID
left join bus_traffic_location_management o on o.LOCATIONMANAGEMENT_ID = f.ORIGIN
left join bus_traffic_location_management d on d.LOCATIONMANAGEMENT_ID = f.DESTINATION
left join sys_user u on f.PRACTITIONER = u.USER_ID
left join bus_traffic_location_management b on f.ORIGIN = b.LOCATIONMANAGEMENT_ID
left join bus_traffic_location_management b2 on f.DESTINATION = b2.LOCATIONMANAGEMENT_ID