|
|
@ -567,6 +567,7 @@ module.exports = function (app, opts) { |
|
|
|
AND alarms.SourceTypeId = 2 |
|
|
|
WHERE |
|
|
|
${`State NOT IN (3, 4) AND `} |
|
|
|
|
|
|
|
PlatformStructureId IN (${searchStrucIds.join(',')}) |
|
|
|
${dataAlarmOption.length ? ' AND ' + dataAlarmOption.join(' AND ') : ''} |
|
|
|
AND Project IS NOT null |
|
|
@ -1297,10 +1298,10 @@ module.exports = function (app, opts) { |
|
|
|
alarms.StructureId In (${[...dataAlarmG1StructureId, ...dataAlarmStructureId, -1].join(',') |
|
|
|
// 3025
|
|
|
|
}) |
|
|
|
AND |
|
|
|
alarms.AlarmGroup IN (1,4,5) |
|
|
|
|
|
|
|
AND |
|
|
|
alarms.State < 3 |
|
|
|
${dataAlarmOption.length ? ' AND ' + dataAlarmOption.join(' AND ') : ''} |
|
|
|
` |
|
|
|
|
|
|
|
).toPromise() || [] |
|
|
|