lrf402788946 4 years ago
parent
commit
55ba378449
2 changed files with 3 additions and 1 deletions
  1. 2 0
      app/service/class.js
  2. 1 1
      app/service/lesson.js

+ 2 - 0
app/service/class.js

@@ -262,6 +262,8 @@ class ClassService extends CrudService {
   async autoclass(planid, termid) {
     // 删除所有计划下的班级
     await this.model.deleteMany({ planid, termid });
+    // 删除该期课表
+    await this.lessmodel.deleteMany({ termid });
     // 根据批次id取得当前批次具体信息
     const res = await this.tmodel.findById(planid);
     if (!res) {

+ 1 - 1
app/service/lesson.js

@@ -351,7 +351,7 @@ class LessonService extends CrudService {
       }
 
     }
-    // await this.toSendMsg(noticeList);
+    await this.toSendMsg(noticeList);
   }
   // 给班主任发信息
   async getHeadTeacherMsg(classInfo) {