|
@ -27,7 +27,7 @@ async function alarmList (ctx) { |
|
|
const { clickHouse } = ctx.app.fs |
|
|
const { clickHouse } = ctx.app.fs |
|
|
const { utils: { judgeSuper, anxinStrucIdRange } } = ctx.app.fs |
|
|
const { utils: { judgeSuper, anxinStrucIdRange } } = ctx.app.fs |
|
|
const { database: anxinyun } = clickHouse.anxinyun.opts.config |
|
|
const { database: anxinyun } = clickHouse.anxinyun.opts.config |
|
|
const { pepProjectId, keywordTarget, keyword, state, kindId, sustainTimeStart, sustainTimeEnd, limit, page, } = ctx.query |
|
|
const { pepProjectId, keywordTarget, keyword, state, kindId, sustainTimeStart, sustainTimeEnd, limit, page, statusId} = ctx.query |
|
|
|
|
|
|
|
|
let anxinStruc = await anxinStrucIdRange({ |
|
|
let anxinStruc = await anxinStrucIdRange({ |
|
|
ctx, pepProjectId, keywordTarget, keyword |
|
|
ctx, pepProjectId, keywordTarget, keyword |
|
@ -71,6 +71,9 @@ async function alarmList (ctx) { |
|
|
) |
|
|
) |
|
|
`)
|
|
|
`)
|
|
|
} |
|
|
} |
|
|
|
|
|
if(statusId){ |
|
|
|
|
|
statusAlarmWhereOption.push(`camera_status_alarm.status_id = ${statusId}`) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
const queryStr = ` |
|
|
const queryStr = ` |
|
|
SELECT |
|
|
SELECT |
|
|