xucaiqin преди 1 година
родител
ревизия
5d37448204
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      iot-module/iot-module-manage/iot-module-manage-biz/src/main/resources/mapper/IotDeviceMapper.xml

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