|
@@ -166,15 +166,15 @@ class ClassService extends CrudService {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
+ const ckeys = Object.keys(result);
|
|
-
|
|
+ for (const classid of ckeys) {
|
|
-
|
|
+ await this.stumodel.updateMany({ _id: result[classid] }, { classid });
|
|
-
|
|
+ }
|
|
-
|
|
+
|
|
-
|
|
+ const claList = await this.model.find({ termid });
|
|
-
|
|
+ for (const cla of claList) {
|
|
-
|
|
+ await this.ctx.service.student.arrangeNumber({ classid: cla._id });
|
|
-
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|