Browse Source

小程序-巡查养护列表建议按照上报时间降序展示

dev
巴林闲侠 2 years ago
parent
commit
a1dbd74f50
  1. 1
      api/app/lib/controllers/report/index.js

1
api/app/lib/controllers/report/index.js

@ -14,6 +14,7 @@ async function reportList(ctx) {
model: models.User, model: models.User,
attributes: ['name'] attributes: ['name']
}], }],
order: [['time', 'DESC']],
} }
if (limit) { if (limit) {
findOption.limit = limit findOption.limit = limit

Loading…
Cancel
Save