diff --git a/api/app/lib/schedule/alarms_push.js b/api/app/lib/schedule/alarms_push.js index 0421161..4924a6c 100644 --- a/api/app/lib/schedule/alarms_push.js +++ b/api/app/lib/schedule/alarms_push.js @@ -546,7 +546,7 @@ module.exports = function (app, opts) { SELECT * FROM alarms LEFT JOIN sensors AS anxinStation - ON toString(anxinStation.SensorId)= alarms.SourceId + ON anxinStation.ID= alarms.SourceId AND alarms.SourceTypeId = 2 WHERE ${`State NOT IN (3, 4) AND `}