|
@@ -27,6 +27,7 @@
|
|
|
<result column="payment_pattern_" property="paymentPattern"/>
|
|
|
<result column="payment_type_" property="paymentType" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/>
|
|
|
<result column="batch_no_" property="batchNo"/>
|
|
|
+ <result column="payment_amount_" property="paymentAmount"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
@@ -44,24 +45,24 @@
|
|
|
keyColumn="id_" keyProperty="id">
|
|
|
INSERT INTO music_group_payment_calender
|
|
|
(music_group_id_,music_group_organization_course_settings_id_,pay_user_type_,reject_reason_,start_payment_date_,deadline_payment_date_,status_,expect_num_,
|
|
|
- actual_num_,memo_,is_give_music_network_,create_time_,update_time_,payment_valid_start_date_,payment_valid_end_date_,payment_pattern_,payment_type_,batch_no_,audit_memo_)
|
|
|
+ actual_num_,memo_,is_give_music_network_,create_time_,update_time_,payment_valid_start_date_,payment_valid_end_date_,payment_pattern_,payment_type_,payment_amount_,batch_no_,audit_memo_)
|
|
|
VALUES(#{musicGroupId},#{musicGroupOrganizationCourseSettingId},#{payUserType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
#{rejectReason},#{startPaymentDate},#{deadlinePaymentDate},#{status,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
#{expectNum},#{actualNum},#{memo},#{isGiveMusicNetwork},now(),now(),
|
|
|
- #{paymentValidStartDate},#{paymentValidEndDate},#{paymentPattern},#{paymentType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{batchNo},#{auditMemo})
|
|
|
+ #{paymentValidStartDate},#{paymentValidEndDate},#{paymentPattern},#{paymentType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{paymentAmount},#{batchNo},#{auditMemo})
|
|
|
</insert>
|
|
|
|
|
|
<insert id="batchInsert" parameterType="com.ym.mec.biz.dal.entity.MusicGroupPaymentCalender" useGeneratedKeys="true"
|
|
|
keyColumn="id_" keyProperty="id">
|
|
|
INSERT INTO music_group_payment_calender
|
|
|
(music_group_id_,music_group_organization_course_settings_id_,pay_user_type_,reject_reason_,start_payment_date_,deadline_payment_date_,status_,expect_num_,
|
|
|
- actual_num_,memo_,is_give_music_network_,create_time_,update_time_,payment_valid_start_date_,payment_valid_end_date_,payment_pattern_,
|
|
|
+ actual_num_,memo_,is_give_music_network_,create_time_,update_time_,payment_valid_start_date_,payment_valid_end_date_,payment_pattern_,payment_amount_,
|
|
|
payment_type_,batch_no_,audit_memo_)
|
|
|
VALUES
|
|
|
<foreach collection="list" item="item" index="index" separator=",">
|
|
|
(#{item.musicGroupId},#{item.musicGroupOrganizationCourseSettingId},#{item.payUserType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{item.rejectReason},#{item.startPaymentDate},#{item.deadlinePaymentDate},#{item.status,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
#{item.expectNum},#{item.actualNum},#{item.memo},#{item.isGiveMusicNetwork},now(),now(),
|
|
|
- #{item.paymentValidStartDate},#{item.paymentValidEndDate},#{item.paymentPattern},#{item.paymentType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
+ #{item.paymentValidStartDate},#{item.paymentValidEndDate},#{item.paymentPattern},#{item.paymentAmount},#{item.paymentType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
#{item.batchNo},#{item.auditMemo})
|
|
|
</foreach>
|
|
|
</insert>
|
|
@@ -122,6 +123,9 @@
|
|
|
<if test="batchNo != null">
|
|
|
batch_no_ = #{batchNo},
|
|
|
</if>
|
|
|
+ <if test="paymentAmount != null">
|
|
|
+ payment_amount_ = #{paymentAmount},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
WHERE id_ = #{id}
|
|
|
</update>
|
|
@@ -175,6 +179,9 @@
|
|
|
<if test="item.batchNo != null">
|
|
|
batch_no_ = #{item.batchNo},
|
|
|
</if>
|
|
|
+ <if test="item.paymentAmount != null">
|
|
|
+ payment_amount_ = #{item.paymentAmount},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
WHERE id_ = #{item.id}
|
|
|
</foreach>
|