|
@@ -15,7 +15,7 @@ class StudentService extends CrudService {
|
|
|
|
|
|
// 查询
|
|
|
async seek({ termid, skip, limit }) {
|
|
|
- const students = await this.model.find({ termid, classid: null })
|
|
|
+ const students = await this.model.find({ termid, classid: null });
|
|
|
const data = await this.model.find({ termid, classid: null }).skip(Number(skip)).limit(Number(limit));
|
|
|
const total = await students.length;
|
|
|
const result = { total, data };
|