Commit d20f7865 by 杨林龙

统计设备离线时间

1 parent 3e533afb
......@@ -854,7 +854,10 @@
left join t_vehicle_device tvd on tvd.vehicle_id = tv.id
left join t_device_location tdl on tdl.sn = tvd.sn
left join t_device td on td.sn = tvd.sn
where 1= 1 and tvd.created_date > '2013-01-01 00:00:00.0'
where tv.del_flag = 0
and tvd.bind_status = 1
and tvd.del_flag = 0
and tvd.created_date > '2013-01-01 00:00:00.0'
<!--离线时间-->
<if test="lostBegin != null">
and ((tdl.last_gps_time &lt; #{lostBegin} and tdl.last_bs_time &lt; #{lostBegin} and td.source = 1)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!