Browse Source

feat:修改表关联条件

dev
zhaobing’ 1 year ago
parent
commit
0ba8664bf1
  1. 2
      api/app/lib/schedule/alarms_push.js

2
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 `}

Loading…
Cancel
Save