From b6542f14d0174f063d432fd25c5ec325805a7a7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?zhaobing=E2=80=99?= Date: Tue, 17 Oct 2023 16:17:02 +0800 Subject: [PATCH] feat:fix bugs --- api/app/lib/schedule/alarms_push.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/app/lib/schedule/alarms_push.js b/api/app/lib/schedule/alarms_push.js index 032e7ee..35d6a71 100644 --- a/api/app/lib/schedule/alarms_push.js +++ b/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,