|
@@ -287,12 +287,9 @@
|
|
|
<select id="countStudentPayLog" resultType="java.lang.Integer">
|
|
|
SELECT COUNT(spo.id_)
|
|
|
FROM student_payment_order spo
|
|
|
- LEFT JOIN class_group cg ON cg.id_ = spo.class_group_id_
|
|
|
+ LEFT JOIN music_group mg ON spo.music_group_id_=mg.id_
|
|
|
<where>
|
|
|
- cg.del_flag_ = 0
|
|
|
- <if test="search != null and search != ''">
|
|
|
- AND cg.name_ LIKE CONCAT('%',#{search},'%')
|
|
|
- </if>
|
|
|
+ spo.status_ = 'SUCCESS'
|
|
|
<if test="date != null and date != ''">
|
|
|
AND spo.create_time_ LIKE CONCAT(#{date},'%')
|
|
|
</if>
|
|
@@ -311,14 +308,11 @@
|
|
|
<result column="type_" property="type" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/>
|
|
|
</resultMap>
|
|
|
<select id="queryStudentPayLog" resultMap="StudentPayInfoDto">
|
|
|
- SELECT spo.actual_amount_,spo.status_,spo.type_,cg.name_,spo.create_time_
|
|
|
+ SELECT spo.actual_amount_,spo.status_,spo.type_,mg.name_,spo.create_time_
|
|
|
FROM student_payment_order spo
|
|
|
- LEFT JOIN class_group cg ON cg.id_ = spo.class_group_id_
|
|
|
+ LEFT JOIN music_group mg ON spo.music_group_id_=mg.id_
|
|
|
<where>
|
|
|
- spo.status_ = 'SUCCESS' AND cg.del_flag_ = 0
|
|
|
- <if test="search != null and search != ''">
|
|
|
- AND cg.name_ LIKE CONCAT('%',#{search},'%')
|
|
|
- </if>
|
|
|
+ spo.status_ = 'SUCCESS'
|
|
|
<if test="date != null and date != ''">
|
|
|
AND spo.create_time_ LIKE CONCAT(#{date},'%')
|
|
|
</if>
|
|
@@ -662,6 +656,7 @@
|
|
|
<foreach collection="list" item="item" index="index" open="(" close=")" separator=",">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
+ AND current_class_times_ < total_class_times_
|
|
|
</update>
|
|
|
<update id="batchUpdateClassGroupCourseTimes" parameterType="map">
|
|
|
<foreach collection="classGroupCourseTimes.entrySet()" index="key" item="value" open="" close="" separator=";">
|