|
@@ -518,14 +518,6 @@
|
|
|
AND mgpcd.music_group_payment_calender_id_ = #{calenderId} AND FIND_IN_SET(mgpcd.user_id_,#{studentIds})
|
|
|
</select>
|
|
|
|
|
|
- <select id="queryNoPaymentCanPushByCalenderId"
|
|
|
- resultMap="MusicGroupPaymentCalenderDetail">
|
|
|
- SELECT mgpcd.* FROM music_group_payment_calender_detail mgpcd
|
|
|
- LEFT JOIN music_group_payment_calender mgpc ON mgpc.id_ = mgpcd.music_group_payment_calender_id_
|
|
|
- WHERE (mgpc.status_ = 'OPEN' OR mgpcd.open_ = 1) AND mgpcd.payment_status_ = 'NON_PAYMENT' AND mgpcd.expect_amount_ != 0
|
|
|
- AND mgpcd.music_group_payment_calender_id_ = #{calenderId} AND FIND_IN_SET(mgpcd.user_id_,#{studentIds})
|
|
|
- </select>
|
|
|
-
|
|
|
<update id="updateNoPaymentAndZeroPaymentStatus">
|
|
|
UPDATE music_group_payment_calender_detail mgpcd
|
|
|
SET mgpcd.payment_status_ = 'PAID_COMPLETED',mgpcd.actual_amount_ = 0,mgpcd.update_time_ = NOW()
|