reloaded %!s(int64=5) %!d(string=hai) anos
pai
achega
36b49c927e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/service/student.js

+ 1 - 1
app/service/student.js

@@ -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 };