소스 검색

更新total

reloaded 5 년 전
부모
커밋
36b49c927e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 };