Browse Source

视频设备类型,无类型或未填写,则默认其他,相关筛选接口优化

dev
巴林闲侠 2 years ago
parent
commit
96b5724025
  1. 6
      api/app/lib/controllers/alarm/video.js

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

@ -46,7 +46,11 @@ async function alarmList(ctx) {
} }
} }
if (kindId) { if (kindId) {
cameraWhereOption.push(`camera.kind_id = ${kindId}`) let sql = `camera.kind_id = ${kindId}`
if (kindId == 1314) {
sql = `(camera.kind_id = ${kindId} OR camera.kind_id IS null)`
}
cameraWhereOption.push(sql)
} }
let statusAlarmWhereOption = [] let statusAlarmWhereOption = []

Loading…
Cancel
Save