Ver Fonte

统计总数

xucaiqin há 1 ano atrás
pai
commit
5d37448204

+ 1 - 1
iot-module/iot-module-manage/iot-module-manage-biz/src/main/resources/mapper/IotDeviceMapper.xml

@@ -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">