|
@@ -1389,16 +1389,12 @@
|
|
|
from music_group_payment_student_course_detail mgpscd
|
|
|
left join (select cgsm.user_id_,cg.type_,cg.music_group_id_,cgsm.class_group_id_ from class_group_student_mapper cgsm
|
|
|
left join class_group cg ON cg.id_ = cgsm.class_group_id_
|
|
|
- left join music_group mg ON mg.id_ = cg.music_group_id_
|
|
|
where cg.group_type_ = 'MUSIC' AND cgsm.status_ = 'NORMAL') cgsm ON cgsm.music_group_id_ = mgpscd.music_group_id_ and cgsm.user_id_ = mgpscd.user_id_
|
|
|
AND (cgsm.type_ = mgpscd.course_type_ OR
|
|
|
(cgsm.type_ = 'NORMAL' AND mgpscd.course_type_ IN ('SINGLE','TRAINING_SINGLE')) OR
|
|
|
(cgsm.type_ = 'MIX' AND mgpscd.course_type_ IN ('MIX','TRAINING_MIX')) OR cgsm.type_ = 'SNAP')
|
|
|
where mgpscd.sub_course_current_price_ > 0 AND mgpscd.sub_course_minutes_ > 0
|
|
|
AND mgpscd.create_time_ <= #{month} AND cgsm.class_group_id_ IS NULL
|
|
|
- <if test="organIds != null and organIds != ''">
|
|
|
- AND FIND_IN_SET(mg.organ_id_,#{organIds})
|
|
|
- </if>
|
|
|
</select>
|
|
|
<select id="exportBalancedRelationshipMusicCourseSum"
|
|
|
resultType="com.ym.mec.biz.dal.dto.ExportWrapper$ExportBalancedRelationshipMusicCourseSum">
|