@@ -121,7 +121,7 @@
<select id="count" resultType="java.util.Map">
select count(case when id.status = 1 then 1 end) online,
- count(case when id.status = 0 then 1 end) offline
+ count(1) offline
from iot_device id
<where>
<if test="productId != null">