diff --git a/api/app/lib/controllers/report/index.js b/api/app/lib/controllers/report/index.js index 5bb931bd..c79b692d 100644 --- a/api/app/lib/controllers/report/index.js +++ b/api/app/lib/controllers/report/index.js @@ -408,11 +408,11 @@ async function spotCheck (ctx) { where: { reportType: 'conserve', userId: { $in: findUsers }, - include: [{ - model: models.User, - attributes: ['name'] - }] }, + include: [{ + model: models.User, + attributes: ['name'] + }], order: sequelize.random(), // 随机排序 limit: checkCount, // 限制返回的记录数 }) : []