|
@@ -4,7 +4,7 @@
|
|
|
<resultMap id="BaseResultMap" type="com.idea.paymentManagement.model.RefundDetail">
|
|
|
<id column="id" jdbcType="VARCHAR" property="id" />
|
|
|
<result column="refund_manage_id" jdbcType="VARCHAR" property="refundManageId" />
|
|
|
- <result column="content_type" jdbcType="INTEGER" property="contentType" />
|
|
|
+ <result column="type" jdbcType="VARCHAR" property="type" />
|
|
|
<result column="received_amount" jdbcType="DECIMAL" property="receivedAmount" />
|
|
|
<result column="deductible" jdbcType="DECIMAL" property="deductible" />
|
|
|
<result column="actual_refund_amount" jdbcType="DECIMAL" property="actualRefundAmount" />
|
|
@@ -72,8 +72,8 @@
|
|
|
</where>
|
|
|
</sql>
|
|
|
<sql id="Base_Column_List">
|
|
|
- id, refund_manage_id, content_type, received_amount, deductible, actual_refund_amount,
|
|
|
- created_id, created_at, updated_at, updated_id
|
|
|
+ id, refund_manage_id, type, received_amount, deductible, actual_refund_amount, created_id,
|
|
|
+ created_at, updated_at, updated_id
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.idea.paymentManagement.model.RefundDetailExample" resultMap="BaseResultMap">
|
|
|
select
|
|
@@ -106,11 +106,11 @@
|
|
|
</if>
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.idea.paymentManagement.model.RefundDetail">
|
|
|
- insert into refund_detail (id, refund_manage_id, content_type,
|
|
|
+ insert into refund_detail (id, refund_manage_id, type,
|
|
|
received_amount, deductible, actual_refund_amount,
|
|
|
created_id, created_at, updated_at,
|
|
|
updated_id)
|
|
|
- values (#{id,jdbcType=VARCHAR}, #{refundManageId,jdbcType=VARCHAR}, #{contentType,jdbcType=INTEGER},
|
|
|
+ values (#{id,jdbcType=VARCHAR}, #{refundManageId,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR},
|
|
|
#{receivedAmount,jdbcType=DECIMAL}, #{deductible,jdbcType=DECIMAL}, #{actualRefundAmount,jdbcType=DECIMAL},
|
|
|
#{createdId,jdbcType=VARCHAR}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP},
|
|
|
#{updatedId,jdbcType=VARCHAR})
|
|
@@ -124,8 +124,8 @@
|
|
|
<if test="refundManageId != null">
|
|
|
refund_manage_id,
|
|
|
</if>
|
|
|
- <if test="contentType != null">
|
|
|
- content_type,
|
|
|
+ <if test="type != null">
|
|
|
+ type,
|
|
|
</if>
|
|
|
<if test="receivedAmount != null">
|
|
|
received_amount,
|
|
@@ -156,8 +156,8 @@
|
|
|
<if test="refundManageId != null">
|
|
|
#{refundManageId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="contentType != null">
|
|
|
- #{contentType,jdbcType=INTEGER},
|
|
|
+ <if test="type != null">
|
|
|
+ #{type,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="receivedAmount != null">
|
|
|
#{receivedAmount,jdbcType=DECIMAL},
|
|
@@ -197,8 +197,8 @@
|
|
|
<if test="record.refundManageId != null">
|
|
|
refund_manage_id = #{record.refundManageId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="record.contentType != null">
|
|
|
- content_type = #{record.contentType,jdbcType=INTEGER},
|
|
|
+ <if test="record.type != null">
|
|
|
+ type = #{record.type,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="record.receivedAmount != null">
|
|
|
received_amount = #{record.receivedAmount,jdbcType=DECIMAL},
|
|
@@ -230,7 +230,7 @@
|
|
|
update refund_detail
|
|
|
set id = #{record.id,jdbcType=VARCHAR},
|
|
|
refund_manage_id = #{record.refundManageId,jdbcType=VARCHAR},
|
|
|
- content_type = #{record.contentType,jdbcType=INTEGER},
|
|
|
+ type = #{record.type,jdbcType=VARCHAR},
|
|
|
received_amount = #{record.receivedAmount,jdbcType=DECIMAL},
|
|
|
deductible = #{record.deductible,jdbcType=DECIMAL},
|
|
|
actual_refund_amount = #{record.actualRefundAmount,jdbcType=DECIMAL},
|
|
@@ -248,8 +248,8 @@
|
|
|
<if test="refundManageId != null">
|
|
|
refund_manage_id = #{refundManageId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="contentType != null">
|
|
|
- content_type = #{contentType,jdbcType=INTEGER},
|
|
|
+ <if test="type != null">
|
|
|
+ type = #{type,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="receivedAmount != null">
|
|
|
received_amount = #{receivedAmount,jdbcType=DECIMAL},
|
|
@@ -278,7 +278,7 @@
|
|
|
<update id="updateByPrimaryKey" parameterType="com.idea.paymentManagement.model.RefundDetail">
|
|
|
update refund_detail
|
|
|
set refund_manage_id = #{refundManageId,jdbcType=VARCHAR},
|
|
|
- content_type = #{contentType,jdbcType=INTEGER},
|
|
|
+ type = #{type,jdbcType=VARCHAR},
|
|
|
received_amount = #{receivedAmount,jdbcType=DECIMAL},
|
|
|
deductible = #{deductible,jdbcType=DECIMAL},
|
|
|
actual_refund_amount = #{actualRefundAmount,jdbcType=DECIMAL},
|