From 36645fc49669c5d42793a45765aa6662e27f89a6 Mon Sep 17 00:00:00 2001 From: wenlele Date: Wed, 16 Aug 2023 10:47:09 +0800 Subject: [PATCH] api debug --- api/app/lib/schedule/alarms_push.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/api/app/lib/schedule/alarms_push.js b/api/app/lib/schedule/alarms_push.js index e87bcea..0c7baf9 100644 --- a/api/app/lib/schedule/alarms_push.js +++ b/api/app/lib/schedule/alarms_push.js @@ -94,6 +94,8 @@ module.exports = function (app, opts) { return title } + console.log('EM推送列表', configListRes); + for (let { dataValues: c } of configListRes) { if (c.tacticsParams && c.tactics) { @@ -136,6 +138,11 @@ module.exports = function (app, opts) { } } + console.log('corPomsProject', corPomsProject); + console.log('pepProjectName_', pepProjectName_); + console.log('pepProject_name', pepProject_name); + + const anxinProjectId = [...curAnxinProjectId] // 查当前 poms 下的结构物 并把不包含的去掉 // 可能有结构物已解绑 @@ -189,6 +196,8 @@ module.exports = function (app, opts) { }) }) + console.log('strucListRes', strucListRes); + let strucThingId = [] let strucMap = {} let searchStrucIds = strucListRes.map(s => { @@ -499,6 +508,10 @@ module.exports = function (app, opts) { if (c.alarmSubType) dataAlarmSubType = dataAlarmSubType.concat(c.alarmSubType['device_exception']) } + + console.log('dataAlarmGroupOption', dataAlarmGroupOption); + console.log('searchStrucIds', searchStrucIds); + // 查数据告警 三警合一 if (dataAlarmGroupOption.length && searchStrucIds.length) { dataAlarmGroupOption.push(-1) @@ -507,6 +520,7 @@ module.exports = function (app, opts) { dataAlarmSubType.push(-1) dataAlarmOption.push(`AlarmGroupUnit IN (${dataAlarmSubType.join(',')})`) } + dataAlarms = !c.alarmSubType || dataAlarmSubType.length ? await clickHouse.dataAlarm.query(`