|
|
@ -41,10 +41,10 @@ async function list (ctx) { |
|
|
|
}) |
|
|
|
let whereOption = [] |
|
|
|
// TODO: 1 开发临时增加
|
|
|
|
if (anxinStruc.length) { |
|
|
|
if (anxinStruc.length || 1) { |
|
|
|
const anxinStrucIds = anxinStruc.map(a => a.strucId) |
|
|
|
// TODO: 开发临时注释
|
|
|
|
whereOption.push(`alarms.StructureId IN (${anxinStrucIds.join(",")})`) |
|
|
|
// whereOption.push(`alarms.StructureId IN (${anxinStrucIds.join(",")})`)
|
|
|
|
|
|
|
|
if (groupId) { |
|
|
|
whereOption.push(`alarms.AlarmGroup IN (${groupId})`) |
|
|
|