|
@@ -263,7 +263,7 @@
|
|
|
</resultMap>
|
|
|
<select id="getCalenderPushDto" resultMap="CalenderPushDto">
|
|
|
SELECT mgpc.id_,mgpc.payment_valid_start_date_,mgpc.payment_valid_end_date_,
|
|
|
- mg.educational_teacher_id_,su.real_name_,mg.name_,su.phone_
|
|
|
+ mg.educational_teacher_id_,mg.name_,su.phone_
|
|
|
FROM music_group_payment_calender mgpc
|
|
|
LEFT JOIN music_group mg ON mgpc.music_group_id_ = mg.id_
|
|
|
LEFT JOIN sys_user su ON su.id_ = mg.educational_teacher_id_
|
|
@@ -272,4 +272,11 @@
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</select>
|
|
|
+ <select id="getMusicCalenderPushDto" resultMap="CalenderPushDto">
|
|
|
+ SELECT mg.payment_valid_start_date_,mg.payment_valid_end_date_,
|
|
|
+ mg.educational_teacher_id_,su.phone_ FROM music_group mg
|
|
|
+ LEFT JOIN sys_user su ON mg.educational_teacher_id_ = su.id_
|
|
|
+ WHERE mg.payment_valid_end_date_ IS NOT NULL AND
|
|
|
+ DATEDIFF(#{format},DATE_FORMAT(mg.payment_valid_end_date_,'%Y-%m-%d')) = #{configValue}
|
|
|
+ </select>
|
|
|
</mapper>
|