Browse Source

视频编号请求修改

dev_trial
wenlele 3 years ago
parent
commit
74e71e97f8
  1. 6
      code/VideoAccess-VCMP/api/app/lib/controllers/camera/index.js

6
code/VideoAccess-VCMP/api/app/lib/controllers/camera/index.js

@ -78,8 +78,10 @@ async function getCameraProject (ctx, next) {
findOption.where.externalDomain = externalDomain
}
if (serialNo) {
findOption.where.serialNo = { $in: serialNo.split(',') }
findOption.where.topSerialNo = { $in: serialNo.split(',') }
findOption.where['$or'] = {
serialNo: { $in: serialNo.split(',') },
topSerialNo: { $in: serialNo.split(',') }
}
}
if (state) {
if (state == 'DISABLED') {

Loading…
Cancel
Save