liuyu 4 years ago
parent
commit
555462db61
1 changed files with 3 additions and 2 deletions
  1. 3 2
      app/service/student.js

+ 3 - 2
app/service/student.js

@@ -52,14 +52,15 @@ class StudentService extends CrudService {
   }
 
   // 查询
-  async seek({ termid, type, skip, limit }) {
+  async seek({ termid, type, batchid, skip, limit }) {
     const total = await this.model.count({
       termid,
       type,
+      batchid,
       $or: [{ classid: null }, { classid: '' }],
     });
     const data = await this.model
-      .find({ termid, type, $or: [{ classid: null }, { classid: '' }] })
+      .find({ termid, type, batchid, $or: [{ classid: null }, { classid: '' }] })
       .skip(Number(skip))
       .limit(Number(limit));
     const result = { total, data };