|
@@ -67,7 +67,8 @@ class GroupService extends CrudService {
|
|
|
|
|
|
async findbystuid(data) {
|
|
|
const { stuid } = data;
|
|
|
- const groups = await this.model.find();
|
|
|
+ const _student = await this.smodel.findById(stuid);
|
|
|
+ const groups = await this.model.find({ classid: _student.classid });
|
|
|
let result;
|
|
|
for (const group of groups) {
|
|
|
const students = group.students;
|