|
@@ -8,6 +8,7 @@
|
|
|
|
|
|
<resultMap type="com.ym.mec.biz.dal.entity.StudentPaymentOrder" id="StudentPaymentOrder">
|
|
|
<result column="id_" property="id"/>
|
|
|
+ <result column="payer_name_" property="payerName"/>
|
|
|
<result column="group_type_" property="groupType" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/>
|
|
|
<result column="user_id_" property="userId"/>
|
|
|
<result column="organ_id_" property="organId"/>
|
|
@@ -105,13 +106,13 @@
|
|
|
<insert id="insert" parameterType="com.ym.mec.biz.dal.entity.StudentPaymentOrder" useGeneratedKeys="true"
|
|
|
keyColumn="id" keyProperty="id">
|
|
|
INSERT INTO student_payment_order
|
|
|
- (group_type_, user_id_, organ_id_, routing_organ_id_, type_, expect_amount_, actual_amount_, com_amount_,
|
|
|
+ (payer_name_, group_type_, user_id_, organ_id_, routing_organ_id_, type_, expect_amount_, actual_amount_, com_amount_,
|
|
|
per_amount_,
|
|
|
balance_payment_amount_, remit_fee_, course_remit_fee_, trans_no_,
|
|
|
status_, memo_, create_time_, update_time_, payment_channel_, payment_business_channel_,
|
|
|
payment_account_no_, mer_nos_, order_no_, music_group_id_, class_group_id_, pay_time_,batch_no_,coupon_code_id_,
|
|
|
coupon_remit_fee_,activity_id_,activity_buy_num_,tenant_id_,calender_id_)
|
|
|
- VALUES (#{groupType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
+ VALUES (#{payerName}, #{groupType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
#{userId}, #{organId}, #{routingOrganId},
|
|
|
#{type,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
#{expectAmount}, #{actualAmount}, #{comAmount}, #{perAmount}, #{balancePaymentAmount},
|
|
@@ -127,6 +128,9 @@
|
|
|
<update id="update" parameterType="com.ym.mec.biz.dal.entity.StudentPaymentOrder">
|
|
|
UPDATE student_payment_order
|
|
|
<set>
|
|
|
+ <if test="payerName != null">
|
|
|
+ payer_name_ = #{payerName},
|
|
|
+ </if>
|
|
|
<if test="activityBuyNum != null">
|
|
|
activity_buy_num_ = #{activityBuyNum},
|
|
|
</if>
|
|
@@ -220,6 +224,9 @@
|
|
|
<foreach collection="studentPaymentOrderList" item="studentPaymentOrder" separator=";">
|
|
|
UPDATE student_payment_order
|
|
|
<set>
|
|
|
+ <if test="studentPaymentOrder.payerName != null">
|
|
|
+ payer_name_ = #{studentPaymentOrder.payerName},
|
|
|
+ </if>
|
|
|
<if test="studentPaymentOrder.activityBuyNum != null">
|
|
|
activity_buy_num_ = #{studentPaymentOrder.activityBuyNum},
|
|
|
</if>
|
|
@@ -446,6 +453,9 @@
|
|
|
<if test="paymentStatus != null">
|
|
|
AND spo.status_ = #{paymentStatus}
|
|
|
</if>
|
|
|
+ <if test="payerName != null">
|
|
|
+ AND spo.payer_name_ = #{payerName}
|
|
|
+ </if>
|
|
|
<if test="paymentChannel != null">
|
|
|
AND spo.payment_channel_ NOT IN (#{paymentChannel})
|
|
|
</if>
|