소스 검색

统计总数

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