|
@@ -994,18 +994,11 @@
|
|
SELECT count(if(working_status = 0, true, null)) online,
|
|
SELECT count(if(working_status = 0, true, null)) online,
|
|
count(if(working_status = 1, true, null)) offline,
|
|
count(if(working_status = 1, true, null)) offline,
|
|
CONCAT(count(if(type = 'camera' and working_status = 0, true, null)), "/",
|
|
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,
|
|
FROM (SELECT id,
|
|
"camera" type,
|
|
"camera" type,
|
|
working_status
|
|
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>
|
|
</select>
|
|
|
|
|
|
|
|
|