Compare commits

..

No commits in common. "3146682bbce77c5c270431fb18e488b4ee665898" and "aa8e404b5dd82101a269fab02e0e26ddcf32b5c4" have entirely different histories.

1 changed files with 2 additions and 10 deletions

View File

@ -207,28 +207,20 @@
<select id="findById" resultType="com.zcloud.entity.PageData" parameterType="pd">
select
<include refid="Field"></include>,
s.NAME,
s.NAME as USERNAME,
s.PHONE,
t.OPERATTIME as STARTTIME,
p.OPERATTIME as STOPTIME,
c.PLATE_NUMBER,
c.APPROVED_TOTAL_MASS,
c.APPROVED_LOAD_CAPACITY,
c.VIN,
b.LOCATIONNAME AS ORIGIN_NAME,
b2.LOCATIONNAME AS DESTINATION_NAME,
m.CUSTOMERNAME AS CLIENT_NAME,
c2.CUSTOMERNAME AS CONFIRMER_NAME
c.VIN
from
<include refid="tableName"></include> f
left join sys_user s on s.USER_ID = f.PRACTITIONER
left join bus_traffic_driving_sign t on t.WAYBILLREGISTRATION_ID = f.WAYBILLREGISTRATION_ID and t.CHECKTYPE_ID = 'status001'
left join bus_traffic_driving_sign p on p.WAYBILLREGISTRATION_ID = f.WAYBILLREGISTRATION_ID and p.CHECKTYPE_ID = 'status003'
left join bus_traffic_mechanical_freighttrailer c on c.FREIGHTTRAILER_ID = f.TRUCKCART
left join bus_traffic_location_management b on f.ORIGIN = b.LOCATIONNAME_ID
left join bus_traffic_location_management b2 on f.DESTINATION = b2.LOCATIONNAME_ID
left join bus_traffic_customer_management m on f.CLIENT = m.CUSTOMERNAME_ID
left join bus_traffic_customer_management c2 on f.CONFIRMER = c2.CUSTOMERNAME_ID
where
f.WAYBILLREGISTRATION_ID = #{WAYBILLREGISTRATION_ID}
</select>