Explorar el Código

Merge branch 'master' of http://git.cc-lotus.info/new_train/service-center

reloaded hace 4 años
padre
commit
0859e4bc65
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      app/service/lesson.js

+ 2 - 2
app/service/lesson.js

@@ -43,10 +43,10 @@ class LessonService extends CrudService {
         const sedays = await this.getAllDays(batch.startdate, batch.enddate);
         // 根据批次取得当前批次下所有班级
         const _classs = await this.clamodel.find({ planid: id, termid: elm.id, batchid: batch.id });
-        // 记录天数
-        let i = 1;
         // 循环班级
         for (const cla of _classs) {
+          // 记录天数
+          let i = 1;
           // 循环天数
           const newlesson = [];
           for (const day of sedays) {