Browse Source

feat:fix bugs

dev
zhaobing’ 1 year ago
parent
commit
b6542f14d0
  1. 4
      api/app/lib/schedule/alarms_push.js

4
api/app/lib/schedule/alarms_push.js

@ -1198,7 +1198,7 @@ module.exports = function (app, opts) {
let factorIdLocal=factorDataLocal.map(f => f.id)
pLog('安心云+本地监测因素', factorData.length)
//查询结构物对应的测点(安心云)
let equipment = await clickHouse.dataAlarm.query(
let equipment = await clickHouse.anxinyun.query(
`
SELECT
t_sensor.name AS name,
@ -1216,7 +1216,7 @@ module.exports = function (app, opts) {
`
).toPromise() || []
//查询结构物对应的测点(本地化)
let equipmentLocal = await clickHouse.anxinyun.query(
let equipmentLocal = await clickHouse.dataAlarm.query(
` SELECT
SensorLocationDescription AS name,
StructId AS structureId,

Loading…
Cancel
Save