diff --git a/api/app/lib/controllers/control/data.js b/api/app/lib/controllers/control/data.js index 4b8b1a1..4b09bcd 100644 --- a/api/app/lib/controllers/control/data.js +++ b/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(); diff --git a/api/app/lib/schedule/alarms_handle_statistics.js b/api/app/lib/schedule/alarms_handle_statistics.js index 91f9ef6..c22fb65 100644 --- a/api/app/lib/schedule/alarms_handle_statistics.js +++ b/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) {