|
@ -408,11 +408,11 @@ async function spotCheck (ctx) { |
|
|
where: { |
|
|
where: { |
|
|
reportType: 'conserve', |
|
|
reportType: 'conserve', |
|
|
userId: { $in: findUsers }, |
|
|
userId: { $in: findUsers }, |
|
|
include: [{ |
|
|
|
|
|
model: models.User, |
|
|
|
|
|
attributes: ['name'] |
|
|
|
|
|
}] |
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
include: [{ |
|
|
|
|
|
model: models.User, |
|
|
|
|
|
attributes: ['name'] |
|
|
|
|
|
}], |
|
|
order: sequelize.random(), // 随机排序
|
|
|
order: sequelize.random(), // 随机排序
|
|
|
limit: checkCount, // 限制返回的记录数
|
|
|
limit: checkCount, // 限制返回的记录数
|
|
|
}) : [] |
|
|
}) : [] |
|
|