|
|
@@ -1102,7 +1102,9 @@
|
|
|
</select>
|
|
|
<select id="queryMusicGroupIds" resultType="java.lang.String">
|
|
|
SELECT DISTINCT spo.music_group_id_ FROM student_payment_order spo
|
|
|
- WHERE spo.type_ != 'OTHER' AND spo.music_group_id_ IS NOT NULL AND spo.user_id_ = #{userId} AND spo.status_='SUCCESS'
|
|
|
+ LEFT JOIN class_group_student_mapper cgsm ON spo.class_group_id_ = cgsm.class_group_id_
|
|
|
+ WHERE spo.type_ != 'OTHER' AND spo.music_group_id_ IS NOT NULL
|
|
|
+ AND spo.user_id_ = #{userId} AND spo.status_='SUCCESS' AND cgsm.status_ != 'QUIT'
|
|
|
<include refid="global.limit"/>
|
|
|
</select>
|
|
|
<select id="countExistRepeatInDateZone" resultType="int">
|