liumiao
2021-01-26 742bf4cc55ad4b1eb3e7b1c3d4302a8ae1c4c151
根据学员获取课次
1 files modified
4 ■■■■ changed files
app/Http/Controllers/Api/v1/ClassScheduleController.php 4 ●●●● patch | view | raw | blame | history
app/Http/Controllers/Api/v1/ClassScheduleController.php
@@ -421,9 +421,9 @@
            }
            $val["teacherName"] = !empty($teacherName[$val["classCode"]]) ? implode(",", array_values(array_unique($teacherName[$val["classCode"]]))) : '';//教师名字
            $val["homeBakers"] = !empty($homeTeacherList[$val["hometeacherId"]]) ? $homeTeacherList[$val["hometeacherId"]] : ''; //家培师名字
            $val["notNum"] = $classStudentsNum ? $classStudentsNum - count($recordList) : 0; //未签到
            $val["notNum"] = $classStudentsNum ? $classStudentsNum - $signIn : 0; //未签到
            $val["checkedInNum"] = count($recordList);//签到
            $val["numTypes"] = $actualNum . "/" . $leaveNum . "/" . $signIn . "/" . $classStudentsNum;//已到、请假、实到、总数
            $val["numTypes"] = $actualNum . "/" . $leaveNum . "/" . $signIn . "/" . $classStudentsNum;//出勤/请假/人脸/应到
            $val["remind"] = 0;//代办提醒
            $val["courseName"] = !empty($courseMap[$val["classCode"]]) ? $courseMap[$val["classCode"]] : '';//课程名字
            $dayTime = explode('-', $val["startTime"]);