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