|
@@ -5,6 +5,7 @@
|
|
|
<!--@mbg.generated-->
|
|
|
<!--@Table user_order_refund-->
|
|
|
<id column="id_" jdbcType="BIGINT" property="id" />
|
|
|
+ <result column="return_id_" jdbcType="VARCHAR" property="returnId" />
|
|
|
<result column="order_no_" jdbcType="VARCHAR" property="orderNo" />
|
|
|
<result column="trans_no_" jdbcType="VARCHAR" property="transNo" />
|
|
|
<result column="pay_trans_no_" jdbcType="VARCHAR" property="payTransNo" />
|
|
@@ -79,7 +80,7 @@
|
|
|
<sql id="Base_Column_List">
|
|
|
<!--@mbg.generated-->
|
|
|
id_, order_no_, trans_no_, pay_trans_no_, refund_amt_, fee_amt_, status_, pay_fail_msg_,
|
|
|
- arrival_time_, create_time_, update_time_
|
|
|
+ arrival_time_, create_time_, update_time_,return_id_
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.yonge.cooleshow.mbg.model.UserOrderRefundExample" resultMap="BaseResultMap">
|
|
|
<!--@mbg.generated-->
|
|
@@ -120,11 +121,11 @@
|
|
|
insert into user_order_refund (order_no_, trans_no_, pay_trans_no_,
|
|
|
refund_amt_, fee_amt_, status_,
|
|
|
pay_fail_msg_, arrival_time_, create_time_,
|
|
|
- update_time_)
|
|
|
+ update_time_,return_id_)
|
|
|
values (#{orderNo,jdbcType=VARCHAR}, #{transNo,jdbcType=VARCHAR}, #{payTransNo,jdbcType=VARCHAR},
|
|
|
#{refundAmt,jdbcType=DECIMAL}, #{feeAmt,jdbcType=DECIMAL}, #{status,jdbcType=VARCHAR},
|
|
|
#{payFailMsg,jdbcType=VARCHAR}, #{arrivalTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
- #{updateTime,jdbcType=TIMESTAMP})
|
|
|
+ #{updateTime,jdbcType=TIMESTAMP},#{returnId})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" keyColumn="id_" keyProperty="id" parameterType="com.yonge.cooleshow.mbg.model.UserOrderRefund" useGeneratedKeys="true">
|
|
|
<!--@mbg.generated-->
|
|
@@ -160,6 +161,9 @@
|
|
|
<if test="updateTime != null">
|
|
|
update_time_,
|
|
|
</if>
|
|
|
+ <if test="returnId != null">
|
|
|
+ return_id_,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="orderNo != null">
|
|
@@ -192,6 +196,9 @@
|
|
|
<if test="updateTime != null">
|
|
|
#{updateTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
+ <if test="returnId != null">
|
|
|
+ #{returnId},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<select id="countByExample" parameterType="com.yonge.cooleshow.mbg.model.UserOrderRefundExample" resultType="java.lang.Long">
|
|
@@ -238,6 +245,9 @@
|
|
|
<if test="record.updateTime != null">
|
|
|
update_time_ = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
+ <if test="record.returnId != null">
|
|
|
+ return_id_ = #{record.returnId,jdbcType=BIGINT},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
@@ -256,6 +266,7 @@
|
|
|
pay_fail_msg_ = #{record.payFailMsg,jdbcType=VARCHAR},
|
|
|
arrival_time_ = #{record.arrivalTime,jdbcType=TIMESTAMP},
|
|
|
create_time_ = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
+ return_id_ = #{record.returnId,jdbcType=BIGINT},
|
|
|
update_time_ = #{record.updateTime,jdbcType=TIMESTAMP}
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
@@ -295,6 +306,9 @@
|
|
|
<if test="updateTime != null">
|
|
|
update_time_ = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
+ <if test="returnId != null">
|
|
|
+ return_id_ = #{returnId,jdbcType=BIGINT},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id_ = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
@@ -310,6 +324,7 @@
|
|
|
pay_fail_msg_ = #{payFailMsg,jdbcType=VARCHAR},
|
|
|
arrival_time_ = #{arrivalTime,jdbcType=TIMESTAMP},
|
|
|
create_time_ = #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ return_id_ = #{returnId,jdbcType=BIGINT},
|
|
|
update_time_ = #{updateTime,jdbcType=TIMESTAMP}
|
|
|
where id_ = #{id,jdbcType=BIGINT}
|
|
|
</update>
|