lrf402788946 4 år sedan
förälder
incheckning
6632080bc6
1 ändrade filer med 3 tillägg och 4 borttagningar
  1. 3 4
      app/service/apply.js

+ 3 - 4
app/service/apply.js

@@ -81,14 +81,13 @@ class ApplyService extends CrudService {
           continue;
         }
       }
-      // 重置教师
-      l.teaid = null;
-      l.teaname = null;
-
       if (status && `${status}` === '1') {
         afterList.push(l);
         continue;
       }
+      // 重置教师
+      l.teaid = null;
+      l.teaname = null;
       const subject = subjectList.find(f => ObjectId(subid).equals(f._id));
       if (subject.need_teacher !== '0') {
         afterList.push(l);