bug修复

This commit is contained in:
guo 2024-03-24 14:09:35 +08:00
parent d3704fd091
commit 32f90c2e23

View File

@ -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) &lt;= 30
when round((UNIX_TIMESTAMP(now()) - UNIX_TIMESTAMP(heartbeat_time)) / 60) &lt;= 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) &lt;= 30
when round((UNIX_TIMESTAMP(now()) - UNIX_TIMESTAMP(heartbeat_time)) / 60) &lt;= 60
then 1
else 0 end)), 0)),0) onlineCount
from mechanical_equipment_position_dev