Commit 82adf814 authored by 李秀明's avatar 李秀明

未消除告警部件数未去重

parent 6572a966
......@@ -7245,7 +7245,7 @@
`fs`.`name` AS `name`,
fs.system_type_code,
fs.biz_org_name AS bizOrgName,
( SELECT count( 1 ) FROM wl_equipment_specific_alarm_log t WHERE 0 <![CDATA[<>]]> find_in_set( `fs`.`id`, t.system_ids ) AND t.clean_time IS NULL) AS `value`,
(SELECT count(DISTINCT t.equipment_specific_id) FROM wl_equipment_specific_alarm_log t WHERE 0 <![CDATA[<>]]> find_in_set( `fs`.`id`, t.system_ids ) AND t.clean_time IS NULL) AS `value`,
(SELECT COUNT(DISTINCT wesal.equipment_specific_id) FROM wl_equipment_specific_alarm_log wesal WHERE 0 <![CDATA[<>]]> find_in_set(`fs`.`id`, wesal.`system_ids`)) AS equips
FROM
`f_fire_fighting_system` `fs`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment