|
@@ -137,6 +137,11 @@
|
|
|
WHERE id_ = #{item.id}
|
|
|
</foreach>
|
|
|
</update>
|
|
|
+ <update id="refreshUserMusicGroupPaymentStatusTask">
|
|
|
+ UPDATE music_group_payment_calender_detail mgpcd
|
|
|
+ SET mgpcd.open_ = 0,mgpcd.start_payment_date_ = NULL,mgpcd.deadline_payment_date_ = NULL
|
|
|
+ WHERE mgpcd.deadline_payment_date_ < DATE_FORMAT(NOW(),'%Y-%m-%d')
|
|
|
+ </update>
|
|
|
|
|
|
<!-- 根据主键删除一条记录 -->
|
|
|
<delete id="delete">
|
|
@@ -221,7 +226,7 @@
|
|
|
SELECT mgpcd.*,mgpc.music_group_id_ FROM music_group_payment_calender_detail mgpcd
|
|
|
LEFT JOIN music_group_payment_calender mgpc ON mgpc.id_ = mgpcd.music_group_payment_calender_id_
|
|
|
LEFT JOIN student_registration sr ON sr.music_group_id_ = mgpc.music_group_id_
|
|
|
- WHERE mgpcd.payment_status_ = 'NON_PAYMENT' AND mgpcd.open_ = 0 AND sr.music_group_status_ != 'QUIT'
|
|
|
+ WHERE mgpcd.payment_status_ = 'PROCESSING' AND mgpcd.open_ = 0 AND sr.music_group_status_ != 'QUIT' AND mgpc.payment_status_ = 'YES'
|
|
|
AND FIND_IN_SET(mgpcd.id_,#{ids})
|
|
|
</select>
|
|
|
<select id="queryIntersectionByPaymentDate" resultType="java.lang.Integer">
|