大屏设备信息显示报警数
This commit is contained in:
parent
002417b764
commit
69857f25e6
@ -5,15 +5,17 @@
|
||||
<select id="equipInfoList"
|
||||
resultType="com.inspur.module.system.controller.largeScreen.vo.LargeScreenEquipInfoListVO">
|
||||
SELECT
|
||||
ici.customer_id as customerId,
|
||||
ici.customer_name as customerName,
|
||||
COUNT( iei.equip_id ) as equipNum,
|
||||
0 as equipRun,
|
||||
0 as alarmNum
|
||||
ici.customer_id AS customerId,
|
||||
ici.customer_name AS customerName,
|
||||
COUNT( DISTINCT iei.equip_id ) AS equipNum,
|
||||
0 AS equipRun,
|
||||
COUNT( iad.alarm_data_id ) AS alarmNum
|
||||
FROM
|
||||
imt_customer_info AS ici
|
||||
LEFT JOIN imt_equip_info AS iei ON ici.customer_id = iei.customer_id
|
||||
AND iei.deleted = '0'
|
||||
LEFT JOIN imt_alarm_data AS iad ON iei.equip_id = iad.equip_id
|
||||
AND iad.deleted = '0'
|
||||
WHERE
|
||||
ici.deleted = '0'
|
||||
GROUP BY
|
||||
|
Loading…
Reference in New Issue
Block a user