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