Quellcode durchsuchen

走班添加学生

24753255@qq.com vor 6 Monaten
Ursprung
Commit
79b7033a23
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      protected/models/SchoolManager.php

+ 1 - 1
protected/models/SchoolManager.php

@@ -6792,7 +6792,7 @@ select t.*,tr.class_id from teacher as t LEFT JOIN teacher_class_relation tr on
             $classRelation=$this->sConn->createCommand("select class_id from student_class_relation where student_id='{$student_id}' and status=0 and class_type=2")->queryAll();
             if($classRelation){
                 foreach ($classRelation as $class_id){
-                    $classSubject=$this->getSubjectByClass($class_id,'ID');
+                    $classSubject=$this->getSubjectByClass($class_id['class_id'],'ID');
                     if(array_intersect($classSubject,$subjects)){
                         //已经有相关科目的走班记录
                         return -1;