Browse Source

(*)已确认告警 State>2

dev
wuqun 2 years ago
parent
commit
1c87bdb106
  1. 2
      api/app/lib/controllers/control/data.js
  2. 2
      api/app/lib/schedule/alarms_handle_statistics.js

2
api/app/lib/controllers/control/data.js

@ -61,7 +61,7 @@ async function queryAlarm(ctx, alarmQueryOptionStr, type) {
alarms.State AS State,
StartTime,
AlarmGroup
${alarmQueryOptionStr} and alarms.AlarmGroup in [${type}] and alarms.State > 3) group by days)
${alarmQueryOptionStr} and alarms.AlarmGroup in [${type}] and alarms.State > 2) group by days)
) group by days ORDER BY days
`).toPromise();

2
api/app/lib/schedule/alarms_handle_statistics.js

@ -171,7 +171,7 @@ module.exports = function (app, opts) {
alarms.State AS State,
alarms.StructureId AS StructureId,
StartTime, EndTime
${alarmQueryOptionStr}) where State>3 and ${paramStr}`
${alarmQueryOptionStr}) where State>2 and ${paramStr}`
}
async function getDataAlarms(anxinStruc) {

Loading…
Cancel
Save