liuyu %!s(int64=4) %!d(string=hai) anos
pai
achega
e84ba1dcb3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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] !== '--') {