|
@@ -60,7 +60,7 @@
|
|
|
sum(if(a.end_time_ <= now(),1,0)) as expTime,
|
|
|
sum(if(a.end_time_ > now(),1,0)) as unExpTime
|
|
|
from course_schedule a
|
|
|
- where a.lock_ = 0 and a.type_ in ('PRACTICE','PIANO_ROOM_CLASS')
|
|
|
+ where a.lock_ = 0 and a.type_ in ('PRACTICE','PIANO_ROOM_CLASS','VIP','LIVE')
|
|
|
<if test="userId != null and userId != ''">
|
|
|
and a.teacher_id_ = #{userId}
|
|
|
</if>
|
|
@@ -73,7 +73,7 @@
|
|
|
avg (b.score_) as starGrade
|
|
|
from course_schedule a
|
|
|
join course_schedule_replied b on a.id_ = b.course_schedule_id_
|
|
|
- where a.lock_ = 0 and a.type_ in ('PRACTICE','PIANO_ROOM_CLASS') and b.score_ is not null
|
|
|
+ where a.lock_ = 0 and a.type_ in ('PRACTICE','PIANO_ROOM_CLASS','VIP','LIVE') and b.score_ is not null
|
|
|
<if test="userId != null and userId != ''">
|
|
|
and a.teacher_id_ = #{userId}
|
|
|
</if>
|