|
@@ -279,7 +279,7 @@ class Lesson extends Apic
|
|
|
$list = Db::name('lesson_slot')->alias('slot')
|
|
|
->field('slot.*,lesson.name,lesson.name_en')
|
|
|
->join('lesson','slot.lesson_id = lesson.id','LEFT')
|
|
|
- ->where('slot.status',20);
|
|
|
+ ->where($where);
|
|
|
|
|
|
$list->where('find_in_set(:coach_ids,coach_ids)', ['coach_ids' => $this->auth->id]);
|
|
|
|