liuyu 4 rokov pred
rodič
commit
e84ba1dcb3
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      app/service/lesson.js

+ 1 - 1
app/service/lesson.js

@@ -46,6 +46,7 @@ class LessonService extends CrudService {
           batchid: batch.id,
         });
         // 循环班级
+        const teachids = [];
         for (const cla of _classs) {
           // 取得课程模板信息
           let lessonmode_ = _.find(_lessonmode, { type: cla.type });
@@ -63,7 +64,6 @@ class LessonService extends CrudService {
           const newlesson = [];
           for (const day of sedays) {
             // 循环课程模板,将模板信息排入班级课程表中
-            const teachids = [];
             for (const lessm of lessons_) {
               // 循环插入模板信息
               if (lessm['day' + i] !== '--') {