forked from integrated_whb/integrated_whb
运单登记列表sql优化
parent
c93b8b8801
commit
29dee5bfd2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue