Kaynağa Gözat

体验人数,直接查student表

周箭河 5 yıl önce
ebeveyn
işleme
f4d14b8f95

+ 1 - 1
mec-biz/src/main/resources/config/mybatis/StudentMapper.xml

@@ -191,7 +191,7 @@
 		LEFT JOIN sys_user tsu ON tsu.id_ = s.teacher_id_
 		LEFT JOIN (
 		SELECT s.user_id_,
-		SUM(case when (cs.group_type_ = 'VIP') then 1 ELSE 0 END) vip_times_,
+		SUM(case when (cs.group_type_ = 'VIP' AND cs.teach_mode_='ONLINE') then 1 ELSE 0 END) vip_times_,
 		SUM(case when (pg.buy_months_ > 0) then 1 ELSE 0 END)     buy_practice_times_
 		FROM student s
 		LEFT JOIN course_schedule_student_payment cssp ON cssp.user_id_ = s.user_id_