Browse Source

备注排序x

release_0.0.2
巴林闲侠 2 years ago
parent
commit
ffc064fcb0
  1. 6
      code/VideoAccess-VCMP/api/app/lib/controllers/camera/index.js

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

@ -33,10 +33,8 @@ async function getCameraProject (ctx, next) {
attributes: ['token']
}, {
model: models.CameraRemark,
attributes: ['remark'],
order: [
['id', 'DESC']
],
attributes: ['id', 'remark'],
order: ['id']
}],
distinct: true
}

Loading…
Cancel
Save