Преглед на файлове

首页右上角统计修改

lchao преди 1 ден
родител
ревизия
b2bd9213a0
променени са 1 файла, в които са добавени 2 реда и са изтрити 9 реда
  1. 2 9
      src/main/resources/mapper/monitor/camera/CentermonitorTCameraMapper.xml

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