with zb as (with cb2 as ((with cb as (select city,event_time,1 as wait_nu,if(start_time is not null,start_time,end_time) end_time,-1 as leave_num /*将开始打车时间点标记为1,结束为-1,如果没有接单则以打车结束时间当作结束等待时间*/ from tb_get_car_order tgo left join tb_get_car_record tgr on tgo.order_id= tgr.order_id /*左连接,要取到所有打车信息*/ w...