master
cody 3 months ago
parent e8d028f18d
commit 3f18fc7d83

@ -357,7 +357,7 @@ class CourseSign extends SoftDeletesModel
*/ */
public static function genban($start_date = null, $end_date = null, $course_ids = null, $retList = false) public static function genban($start_date = null, $end_date = null, $course_ids = null, $retList = false)
{ {
$courseSignsQuery = self::getStudentList($start_date, $end_date, 1, $course_ids); $courseSignsQuery = self::getStudentList($start_date, $end_date, null, $course_ids);
// 获取需要统计跟班学员的课程 // 获取需要统计跟班学员的课程
$genbanCourse = Course::whereHas('typeDetail', function ($query) { $genbanCourse = Course::whereHas('typeDetail', function ($query) {
$query->where('is_count_genban', 1); $query->where('is_count_genban', 1);

Loading…
Cancel
Save