Browse Source

视频告警kind 兼顾 结构物可见范围

dev
巴林闲侠 2 years ago
parent
commit
67f535cd09
  1. 4
      api/app/lib/controllers/alarm/data.js

4
api/app/lib/controllers/alarm/data.js

@ -15,10 +15,10 @@ async function groupList (ctx) {
for (let g of groupRes) {
g.unit = await await clickHouse.anxinyun.query(`
SELECT DISTINCT
t_alarm_group_unit.id AS id,t_alarm_group_unit.name AS name,t_alarm_group_unit.group_id AS groupId
t_alarm_group_unit.id AS id,t_alarm_group_unit.name AS name,t_alarm_group_unit.group_id AS groupId
FROM t_alarm_group_unit
INNER JOIN ${dataAlarm}.alarms
ON t_alarm_group_unit.id = ${dataAlarm}.alarms.AlarmGroupUnit
ON t_alarm_group_unit.id = ${dataAlarm}.alarms.AlarmGroupUnit
WHERE group_id = ${g.id}
`).toPromise();
}

Loading…
Cancel
Save