|
@@ -240,7 +240,7 @@
|
|
|
FROM music_group_payment_calender_detail mgpcd
|
|
|
WHERE mgpcd.music_group_payment_calender_id_ IN
|
|
|
(SELECT id_ FROM music_group_payment_calender WHERE payment_status_ != 0
|
|
|
- AND DATEDIFF(start_payment_date_,#{format}) = #{configValue})
|
|
|
+ AND DATEDIFF(#{format},start_payment_date_) = #{configValue})
|
|
|
AND mgpcd.payment_status_ = 'NON_PAYMENT'
|
|
|
GROUP BY mgpcd.music_group_payment_calender_id_
|
|
|
</select>
|
|
@@ -252,7 +252,7 @@
|
|
|
</select>
|
|
|
<select id="queryEndIds" resultType="java.lang.Long">
|
|
|
SELECT DISTINCT mgpc.id_ FROM music_group_payment_calender mgpc
|
|
|
- WHERE mgpc.payment_status_ = 2 AND DATEDIFF(#{format},DATE_FORMAT(mgpc.payment_valid_end_date_,'%Y-%m-%d')) = #{configValue1};
|
|
|
+ WHERE mgpc.payment_valid_end_date_ IS NOT NULL AND DATEDIFF(mgpc.payment_valid_end_date_,#{format}) = #{configValue};
|
|
|
</select>
|
|
|
<resultMap id="CalenderPushDto" type="com.ym.mec.biz.dal.dto.CalenderPushDto">
|
|
|
<result property="paymentValidEndDate" column="payment_valid_end_date_"/>
|