소스 검색

首页右上角统计修改

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>