( SELECT count( 1 ) FROM `wl_equipment_specific_index` s WHERE s.equipment_index_key = 'FHS_CollectingDevice_DeviceAbnormal' AND s.`value` = 'true' ) AS sbfcjzzyc,
FROM `wl_equipment_specific_index` s
( SELECT count( 1 ) FROM `wl_equipment_specific_index` s WHERE s.equipment_index_key = 'FHS_CollectingDevice_DeviceLock' AND s.`value` = 'true' ) AS sbfcjzzbs,
where s.equipment_index_key = 'FHS_CollectingDevice_DeviceAbnormal'
(
and s.`value` = 'true') as sbfcjzzyc,
SELECT
(SELECT
count( DISTINCT equipment_specific_id )
count(1)
FROM
FROM `wl_equipment_specific_index` s
`wl_equipment_specific_index` s
where s.equipment_index_key = 'FHS_CollectingDevice_DeviceLock'
WHERE
and s.`value` = 'true') as sbfcjzzbs,
( s.`value` = 'false' OR s.`value` IS NULL )
(SELECT
AND ( s.equipment_index_key = 'FHS_CollectingDevice_DeviceAbnormal' )
count(1)
) AS sbfcjzz,
from
(
`wl_equipment_specific_index` si
SELECT
where
count( DISTINCT equipment_specific_id )
si.equipment_index_key = 'FHS_CollectingDevice_DeviceAbnormal') as sbfcjzz
FROM
) as collectingDevice
`wl_equipment_specific_index` s
WHERE
( s.`value` = 'false' OR s.`value` IS NULL )
AND s.equipment_index_key = 'FHS_CollectingDevice_DeviceAbnormal'
) AS sbfcjzzzc,
( SELECT count( DISTINCT equipment_specific_id ) FROM `wl_equipment_specific_index` s WHERE ( s.`value` = 'true' ) AND s.equipment_index_key = 'FHS_CollectingDevice_DeviceAbnormal' ) AS noZcTotal