Browse Source

alarm not exist

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

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

@ -90,7 +90,9 @@ async function list (ctx) {
let alarmQueryOptionStr = `
FROM
alarms
LEFT JOIN (SELECT DeviceId, any(Status) AS Status,max(Time) FROM alarm.DeviceStatus GROUP BY DeviceId ) AS DeviceStatus
LEFT JOIN (
SELECT DeviceId, any(Status) AS Status,max(Time) FROM DeviceStatus GROUP BY DeviceId
) AS DeviceStatus
ON DeviceStatus.DeviceId = alarms.SourceId
LEFT JOIN ${anxinyun}.t_structure
ON ${anxinyun}.t_structure.id = alarms.StructureId

Loading…
Cancel
Save