|
@@ -76,7 +76,7 @@ class BedroomService extends CrudService {
|
|
|
console.log(bedroom.code);
|
|
|
// 判断当前寝室号是否已有
|
|
|
// 根据期id查找所有当期学生列表
|
|
|
- const _stu = await this.getbedroomstudents(termid, batchid, bedroom.code);
|
|
|
+ const _stu = _.filter(studentList, { bedroom: bedroom.code });
|
|
|
console.log(_stu.length);
|
|
|
if (bedroom.number !== _stu.length) {
|
|
|
let i = 0;
|