|
@@ -710,10 +710,10 @@
|
|
WHERE
|
|
WHERE
|
|
mg.status_ = 'PROGRESS'
|
|
mg.status_ = 'PROGRESS'
|
|
<if test="noPaymentType==null or noPaymentType==0">
|
|
<if test="noPaymentType==null or noPaymentType==0">
|
|
- AND DATE_FORMAT(NOW(),'%Y-%m-%d') > mgpc.payment_valid_end_date_
|
|
|
|
|
|
+ AND DATE_FORMAT(NOW(),'%Y-%m-%d') > mgpc.deadline_payment_date_
|
|
</if>
|
|
</if>
|
|
<if test="noPaymentType!=null and noPaymentType==1">
|
|
<if test="noPaymentType!=null and noPaymentType==1">
|
|
- AND DATE_FORMAT(NOW(),'%Y-%m-%d') BETWEEN mgpc.payment_valid_start_date_ AND mgpc.payment_valid_end_date_
|
|
|
|
|
|
+ AND DATE_FORMAT(NOW(),'%Y-%m-%d') BETWEEN mgpc.start_payment_date_ AND mgpc.deadline_payment_date_
|
|
</if>
|
|
</if>
|
|
AND mgpcd.payment_status_ = 'NON_PAYMENT' AND mgpcd.expect_amount_ > 0 AND mgpc.batch_no_ IS NOT NULL AND mgpc.pay_user_type_ = 'STUDENT'
|
|
AND mgpcd.payment_status_ = 'NON_PAYMENT' AND mgpcd.expect_amount_ > 0 AND mgpc.batch_no_ IS NOT NULL AND mgpc.pay_user_type_ = 'STUDENT'
|
|
<if test="educationUserId != null">
|
|
<if test="educationUserId != null">
|
|
@@ -737,7 +737,7 @@
|
|
LEFT JOIN music_group mg ON mgpc.music_group_id_ = mg.id_
|
|
LEFT JOIN music_group mg ON mgpc.music_group_id_ = mg.id_
|
|
WHERE
|
|
WHERE
|
|
mg.status_ = 'PROGRESS'
|
|
mg.status_ = 'PROGRESS'
|
|
- AND DATE_FORMAT(NOW(),'%Y-%m-%d') > mgpc.payment_valid_end_date_
|
|
|
|
|
|
+ AND DATE_FORMAT(NOW(),'%Y-%m-%d') > mgpc.deadline_payment_date_
|
|
AND mgpcd.payment_status_ = 'NON_PAYMENT' AND mgpcd.expect_amount_ > 0 AND mgpc.batch_no_ IS NOT NULL AND mgpc.pay_user_type_ = 'STUDENT'
|
|
AND mgpcd.payment_status_ = 'NON_PAYMENT' AND mgpcd.expect_amount_ > 0 AND mgpc.batch_no_ IS NOT NULL AND mgpc.pay_user_type_ = 'STUDENT'
|
|
<if test="educationUserId != null">
|
|
<if test="educationUserId != null">
|
|
AND mg.educational_teacher_id_ = #{educationUserId}
|
|
AND mg.educational_teacher_id_ = #{educationUserId}
|