Commit cd9c6bbd authored by jiaorz's avatar jiaorz

订单列表优化

parent 8776b813
...@@ -241,15 +241,15 @@ ...@@ -241,15 +241,15 @@
SELECT bc1.`name` as startCompanyName, bc2.name as endCompanyName, v1.number_plate as vehicleNumberPlat, a1.name as realName,a2.username as telephone, b1.* from base_order b1 SELECT bc1.`name` as startCompanyName, bc2.name as endCompanyName, v1.number_plate as vehicleNumberPlat, a1.name as realName,a2.username as telephone, b1.* from base_order b1
LEFT JOIN order_rent_vehicle_detail o1 on b1.detail_id = o1.id LEFT JOIN order_rent_vehicle_detail o1 on b1.detail_id = o1.id
<!--开始公司--> <!--开始公司-->
LEFT JOIN vehicle.branch_company bc1 on bc1.id = o1.start_company_id LEFT JOIN xxfc_vehicle.branch_company bc1 on bc1.id = o1.start_company_id
<!--结束公司--> <!--结束公司-->
LEFT JOIN vehicle.branch_company bc2 ON bc2.id = o1.end_company_id LEFT JOIN xxfc_vehicle.branch_company bc2 ON bc2.id = o1.end_company_id
<!--车辆信息--> <!--车辆信息-->
LEFT JOIN vehicle.vehicle v1 on v1.id = o1.vehicle_id LEFT JOIN xxfc_vehicle.vehicle v1 on v1.id = o1.vehicle_id
<!--获取用户真实姓名--> <!--获取用户真实姓名-->
LEFT JOIN xxfc_third_platform.id_information a1 on b1.user_id = a1.user_login_id LEFT JOIN xxfc_third_platform.id_information a1 on b1.user_id = a1.user_login_id
<!--获取用户手机号--> <!--获取用户手机号-->
LEFT JOIN ag_admin_v1.app_user_login a2 on a2.id = b1.user_id LEFT JOIN ag_admin_v2.app_user_login a2 on a2.id = b1.user_id
<where> <where>
<if test="userIds != null and userIds.size() > 0"> <if test="userIds != null and userIds.size() > 0">
and b1.user_id in and b1.user_id in
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment