Commit 794b4838 authored by jiaorz's avatar jiaorz

租车天数统计问题

parent 2312e958
......@@ -325,7 +325,7 @@
select b.*
from base_order b
LEFT JOIN order_rent_vehicle_detail r on r.order_id = b.id
where b.type = 2 and b.status >= 4
where b.type = 1 and (b.status >= 4 or b.status = -1)
<if test="startTime != null and status == 1">
and r.start_time between #{startTime} and #{endTime}
</if>
......
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