From ad6b2756b6d6eab767063db646f45309c8a6f946 Mon Sep 17 00:00:00 2001 From: wenlele Date: Fri, 17 Mar 2023 18:47:34 +0800 Subject: [PATCH] 111111111 --- api/app/lib/schedule/alarms_push.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/app/lib/schedule/alarms_push.js b/api/app/lib/schedule/alarms_push.js index 8f4dd77..8f847f6 100644 --- a/api/app/lib/schedule/alarms_push.js +++ b/api/app/lib/schedule/alarms_push.js @@ -571,7 +571,7 @@ module.exports = function (app, opts) { f: (d) => { // d.factor.join('') // console.log(21211231131,d.factor); - let data=[] + let data = [] d.factor.map(f => data.push(f.name + '(' + f.breakData + '/' + f.sum + ')')) return data.join('
') } @@ -843,6 +843,8 @@ module.exports = function (app, opts) { t_sensor.structure = (${d.StructureId}) AND t_sensor.factor IN (${factorId.join(',')}) + AND + ${dataAlarm}.alarms.AlarmGroup is (${1}) ` ).toPromise() || []