|
@@ -421,10 +421,11 @@
|
|
|
SELECT id_ FROM student_payment_order WHERE calender_id_ = #{calenderId} AND status_ = 'SUCCESS')c) AND spod.id_ IS NOT NULL
|
|
|
</select>
|
|
|
|
|
|
- <select id="queryByMusicGroupIdAndOrderType" resultMap="StudentPaymentOrderDetail">
|
|
|
+ <select id="querySubjectChangeByMusicGroupId" resultMap="StudentPaymentOrderDetail">
|
|
|
SELECT spod.*,spo.user_id_ FROM student_payment_order_detail spod
|
|
|
LEFT JOIN student_payment_order spo ON spo.id_ = spod.payment_order_id_
|
|
|
- WHERE spo.music_group_id_ = #{musicGroupId}
|
|
|
- AND spo.type_ = #{orderType, typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler} and spo.status_ = 'SUCCESS'
|
|
|
+ left join subject_change sc on sc.order_id_ = spo.id_
|
|
|
+ WHERE sc.music_group_id_ = #{musicGroupId}
|
|
|
+ AND spo.type_ = 'SUBJECT_CHANGE' and spo.status_ = 'SUCCESS'
|
|
|
</select>
|
|
|
</mapper>
|