liuyu 4 سال پیش
والد
کامیت
555462db61
1فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  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 };