liumiao
2021-01-29 1bc6ae74a90c9f2aee6c09c86c249ca9fbba7ed2
根据学员获取课次
1 files modified
10 ■■■■■ changed files
app/Http/Controllers/Api/v1/ClassScheduleController.php 10 ●●●●● patch | view | raw | blame | history
app/Http/Controllers/Api/v1/ClassScheduleController.php
@@ -440,7 +440,15 @@
                        break;
                }
            }
            $val["teacherName"] = !empty($teacherName[$val["classCode"] . '-' . $val['classNumber']]) ? implode(",", array_values(array_unique($teacherName[$val["classCode"] . '-' . $val['classNumber']]))) : '';//教师名字
            if($val["classMode"] == 2)
            {
                $teacherName = !empty($teacherName[$val["classCode"] . '-' . $val['classNumber']]) ? implode(",", array_values(array_unique($teacherName[$val["classCode"] . '-' . $val['classNumber']]))) : '';
            }
            else
            {
                $teacherName = $val["teacherName"];
            }
            $val["teacherName"] = $teacherName;//教师名字
            $val["homeBakers"] = !empty($homeTeacherList[$val["hometeacherId"]]) ? $homeTeacherList[$val["hometeacherId"]] : ''; //家培师名字
            $val["notNum"] = $classStudentsNum ? ($classStudentsNum - $signIn > 0 ? $classStudentsNum - $signIn : 0) : 0; //未签到
            $val["checkedInNum"] = count($recordList);//签到