liuyu 4 gadi atpakaļ
vecāks
revīzija
c71384a61c
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. 3 0
      app/service/bedroom.js

+ 3 - 0
app/service/bedroom.js

@@ -142,6 +142,9 @@ class BedroomService extends CrudService {
     // 根据期id查找所有当期学生列表
     const cltype = await this.ctmodel.find({ bedroom: '0' });
     const types = _.map(cltype, 'code');
+    console.log('-----types-start--');
+    console.log(types);
+    console.log('-----types-end--');
     const studentList = await this.smodel.find({ termid, batchid, type: { $in: types } }).sort({ gender: -1 });
     return studentList;
   }