bug修复
This commit is contained in:
parent
d3704fd091
commit
32f90c2e23
@ -4,7 +4,7 @@
|
||||
<select id="queryList"
|
||||
resultType="com.zhgd.xmgl.modules.mechanicalequipmentposition.entity.MechanicalEquipmentPositionDev">
|
||||
select mepd.*,wi.worker_name driver_name,IFNULL(((case
|
||||
when round((UNIX_TIMESTAMP(now()) - UNIX_TIMESTAMP(heartbeat_time)) / 60) <= 30
|
||||
when round((UNIX_TIMESTAMP(now()) - UNIX_TIMESTAMP(heartbeat_time)) / 60) <= 60
|
||||
then 1
|
||||
else 0 end)),0) online
|
||||
from mechanical_equipment_position_dev mepd
|
||||
@ -15,7 +15,7 @@
|
||||
<select id="countDev" resultType="com.zhgd.xmgl.modules.vehicleposition.entity.vo.CountVehiclePositionDevVo">
|
||||
select t.*,t.count-t.onlineCount as offlineCount from (select count(*) count,
|
||||
IFNULL(sum(IFNULL(((case
|
||||
when round((UNIX_TIMESTAMP(now()) - UNIX_TIMESTAMP(heartbeat_time)) / 60) <= 30
|
||||
when round((UNIX_TIMESTAMP(now()) - UNIX_TIMESTAMP(heartbeat_time)) / 60) <= 60
|
||||
then 1
|
||||
else 0 end)), 0)),0) onlineCount
|
||||
from mechanical_equipment_position_dev
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user