Commit f876d1b7 authored by jiaorz's avatar jiaorz

添加

parent 52677956
...@@ -591,18 +591,16 @@ ...@@ -591,18 +591,16 @@
</select> </select>
<!--导出分公司停靠所有车辆--> <!--导出分公司停靠所有车辆-->
<select id="getAllVehicleInfo" resultType="com.xxfc.platform.vehicle.pojo.BranchCompanyVehicleCountVo"> <select id="getAllVehicleInfo" resultType="com.xxfc.platform.vehicle.pojo.BranchCompanyVehicleCountVo" parameterType="Map">
SELECT select tmp.name as parkBranchCompanyName, COUNT(0) as count from (
b1. NAME AS parkBranchCompanyName, select v1.number_plate, b.name from vehicle_book_record v
count(v1.id) as count LEFT JOIN branch_company b on b.id = v.lift_company
FROM LEFT JOIN vehicle v1 on v1.id = v.vehicle_id
branch_company b1 where v.`status` != 4 and v.`status` != 6
LEFT JOIN vehicle v1 ON v1.park_branch_company_id = b1.id and v.book_start_date &gt; #{startTime} and v.book_start_date &lt; #{endTime}
WHERE ORDER BY v.vehicle_id, v.book_start_date DESC
b1.is_del = 0 ) tmp
AND v1.is_del = 0 GROUP BY name
GROUP BY b1.`name`
order by b1.`name`
</select> </select>
<select id="lockByCode" resultType="com.xxfc.platform.vehicle.entity.Vehicle" <select id="lockByCode" resultType="com.xxfc.platform.vehicle.entity.Vehicle"
......
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