|
@@ -31,7 +31,7 @@ class BedroomService extends CrudService {
|
|
|
|
|
|
const _batch = term.batchnum.find(p => p.id === batchid);
|
|
|
|
|
|
- const bedroomList = await this.model.find({ batch: _batch.batch }).sort({ floor: -1 });
|
|
|
+ const bedroomList = await this.model.find({ batch: _batch.batch, status: '0' }).sort({ floor: -1 });
|
|
|
|
|
|
const studentList = await this.getstudents(termid, batchid);
|
|
|
console.log('stulen-->' + studentList.length);
|