|
@@ -3030,15 +3030,15 @@
|
|
|
|
|
|
<select id="getVipGroupExport" resultMap="com.ym.mec.biz.dal.dao.PracticeGroupDao.courseGroupExport">
|
|
|
SELECT cssp.user_id_ student_id_,
|
|
|
- su.username_ student_name_,
|
|
|
- o.name_ organ_name_,
|
|
|
- GROUP_CONCAT(DISTINCT edut.`real_name_`) edu_teacher_name_,
|
|
|
- GROUP_CONCAT(DISTINCT edut.`id_`) edu_teacher_ids_
|
|
|
+ su.username_ student_name_,
|
|
|
+ o.name_ organ_name_,
|
|
|
+ GROUP_CONCAT(DISTINCT edut.`real_name_`) edu_teacher_name_,
|
|
|
+ GROUP_CONCAT(DISTINCT edut.`id_`) edu_teacher_ids_
|
|
|
FROM `course_schedule_student_payment` cssp
|
|
|
- LEFT JOIN `vip_group` vg ON vg.`id_` = cssp.`music_group_id_` AND cssp.`group_type_` = 'VIP'
|
|
|
- LEFT JOIN `organization` o ON o.`id_` = vg.`organ_id_`
|
|
|
- LEFT JOIN `sys_user` su ON su.`id_` = cssp.`user_id_`
|
|
|
- LEFT JOIN `sys_user` edut ON edut.`id_` = vg.`educational_teacher_id_`
|
|
|
+ LEFT JOIN `vip_group` vg ON vg.`id_` = cssp.`music_group_id_` AND cssp.`group_type_` = 'VIP'
|
|
|
+ LEFT JOIN `organization` o ON o.`id_` = vg.`organ_id_`
|
|
|
+ LEFT JOIN `sys_user` su ON su.`id_` = cssp.`user_id_`
|
|
|
+ LEFT JOIN `sys_user` edut ON edut.`id_` = vg.`educational_teacher_id_`
|
|
|
WHERE cssp.`group_type_` = 'VIP'
|
|
|
AND vg.group_status_!=3
|
|
|
<if test="organIds != null and organIds != ''">
|