Browse Source

视频告警 statusId 筛选参数

dev
巴林闲侠 2 years ago
parent
commit
fc6973a79d
  1. 6
      api/.vscode/settings.json
  2. 5
      api/app/lib/controllers/alarm/video.js

6
api/.vscode/settings.json

@ -0,0 +1,6 @@
//
{
"editor.fontSize": 16,
"eslint.format.enable": true,
"editor.tabSize": 3,
}

5
api/app/lib/controllers/alarm/video.js

@ -27,7 +27,7 @@ async function alarmList (ctx) {
const { clickHouse } = ctx.app.fs
const { utils: { judgeSuper, anxinStrucIdRange } } = ctx.app.fs
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({
ctx, pepProjectId, keywordTarget, keyword
@ -71,6 +71,9 @@ async function alarmList (ctx) {
)
`)
}
if(statusId){
statusAlarmWhereOption.push(`camera_status_alarm.status_id = ${statusId}`)
}
const queryStr = `
SELECT

Loading…
Cancel
Save