Pārlūkot izejas kodu

首页右上角统计修改

lchao 22 stundas atpakaļ
vecāks
revīzija
b2bd9213a0

+ 2 - 9
src/main/resources/mapper/monitor/camera/CentermonitorTCameraMapper.xml

@@ -994,18 +994,11 @@
         SELECT count(if(working_status = 0, true, null))      online,
                count(if(working_status = 1, true, null))      offline,
                CONCAT(count(if(type = 'camera' and working_status = 0, true, null)), "/",
-                      count(if(type = 'camera', true, null))) camera,
-               CONCAT(count(if(type = 'device' and working_status = 0, true, null)), "/",
-                      count(if(type = 'device', true, null))) device
+                      count(if(type = 'camera', true, null))) camera
         FROM (SELECT id,
                      "camera" type,
                      working_status
-              FROM centermonitor_t_camera
-              UNION
-              SELECT id,
-                     "device" type,
-                     working_status
-              FROM centermonitor_t_monitoring_device) a
+              FROM centermonitor_t_camera) a
     </select>