...
|
...
|
@@ -7,13 +7,10 @@ |
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
-->
|
|
|
<id column="id" property="id" jdbcType="INTEGER" />
|
|
|
<result column="refund_order_code" property="refundOrderCode" jdbcType="BIGINT" />
|
|
|
<result column="order_code" property="orderCode" jdbcType="BIGINT" />
|
|
|
<result column="payment" property="payment" jdbcType="TINYINT" />
|
|
|
<result column="serial_no" property="serialNo" jdbcType="VARCHAR" />
|
|
|
<result column="amount" property="amount" jdbcType="DECIMAL" />
|
|
|
<result column="status" property="status" jdbcType="TINYINT" />
|
|
|
<result column="refund_status" property="refundStatus" jdbcType="VARCHAR" />
|
|
|
<result column="create_time" property="createTime" jdbcType="INTEGER" />
|
|
|
<result column="update_time" property="updateTime" jdbcType="INTEGER" />
|
|
|
<result column="refund_code" property="refundCode" jdbcType="VARCHAR" />
|
...
|
...
|
@@ -23,7 +20,7 @@ |
|
|
WARNING - @mbggenerated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
-->
|
|
|
id, refund_order_code, order_code, payment, serial_no, amount, status, refund_status,
|
|
|
id, order_code, serial_no, amount, status,
|
|
|
create_time, update_time
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
...
|
...
|
@@ -43,12 +40,7 @@ |
|
|
from orders_pay_refund
|
|
|
where order_code = #{orderCode}
|
|
|
</select>
|
|
|
<select id="selectByRefundOrderCode" resultMap="BaseResultMap" >
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from orders_pay_refund
|
|
|
where refund_order_code = #{refundOrderCode} limit 1
|
|
|
</select>
|
|
|
|
|
|
|
|
|
<select id="selectByRefundCode" resultMap="BaseResultMap" >
|
|
|
select
|
...
|
...
|
@@ -63,13 +55,13 @@ |
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
-->
|
|
|
insert into orders_pay_refund (id, order_code,
|
|
|
payment, serial_no, amount,
|
|
|
status, refund_status, create_time,
|
|
|
update_time, refund_code)
|
|
|
serial_no, amount,
|
|
|
status, create_time,
|
|
|
update_time, refund_code, order_type)
|
|
|
values (#{id,jdbcType=INTEGER}, #{orderCode,jdbcType=BIGINT},
|
|
|
#{payment,jdbcType=TINYINT}, #{serialNo,jdbcType=VARCHAR}, #{amount,jdbcType=DECIMAL},
|
|
|
#{status,jdbcType=TINYINT}, #{refundStatus,jdbcType=VARCHAR}, #{createTime,jdbcType=INTEGER},
|
|
|
#{updateTime,jdbcType=INTEGER}, #{refundCode,jdbcType=VARCHAR})
|
|
|
#{serialNo,jdbcType=VARCHAR}, #{amount,jdbcType=DECIMAL},
|
|
|
#{status,jdbcType=TINYINT}, #{createTime,jdbcType=INTEGER},
|
|
|
#{updateTime,jdbcType=INTEGER}, #{refundCode,jdbcType=VARCHAR}, #{orderType,jdbcType=INTEGER})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.yohoufo.dal.order.model.OrdersPayRefund" >
|
|
|
<!--
|
...
|
...
|
@@ -81,15 +73,9 @@ |
|
|
<if test="id != null" >
|
|
|
id,
|
|
|
</if>
|
|
|
<if test="refundOrderCode != null" >
|
|
|
refund_order_code,
|
|
|
</if>
|
|
|
<if test="orderCode != null" >
|
|
|
order_code,
|
|
|
</if>
|
|
|
<if test="payment != null" >
|
|
|
payment,
|
|
|
</if>
|
|
|
<if test="serialNo != null" >
|
|
|
serial_no,
|
|
|
</if>
|
...
|
...
|
@@ -99,9 +85,6 @@ |
|
|
<if test="status != null" >
|
|
|
status,
|
|
|
</if>
|
|
|
<if test="refundStatus != null" >
|
|
|
refund_status,
|
|
|
</if>
|
|
|
<if test="createTime != null" >
|
|
|
create_time,
|
|
|
</if>
|
...
|
...
|
@@ -113,15 +96,9 @@ |
|
|
<if test="id != null" >
|
|
|
#{id,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="refundOrderCode != null" >
|
|
|
#{refundOrderCode,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
<if test="orderCode != null" >
|
|
|
#{orderCode,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
<if test="payment != null" >
|
|
|
#{payment,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
<if test="serialNo != null" >
|
|
|
#{serialNo,jdbcType=VARCHAR},
|
|
|
</if>
|
...
|
...
|
@@ -131,9 +108,6 @@ |
|
|
<if test="status != null" >
|
|
|
#{status,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
<if test="refundStatus != null" >
|
|
|
#{refundStatus,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="createTime != null" >
|
|
|
#{createTime,jdbcType=INTEGER},
|
|
|
</if>
|
...
|
...
|
@@ -149,15 +123,9 @@ |
|
|
-->
|
|
|
update orders_pay_refund
|
|
|
<set >
|
|
|
<if test="refundOrderCode != null" >
|
|
|
refund_order_code = #{refundOrderCode,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
<if test="orderCode != null" >
|
|
|
order_code = #{orderCode,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
<if test="payment != null" >
|
|
|
payment = #{payment,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
<if test="serialNo != null" >
|
|
|
serial_no = #{serialNo,jdbcType=VARCHAR},
|
|
|
</if>
|
...
|
...
|
@@ -167,9 +135,6 @@ |
|
|
<if test="status != null" >
|
|
|
status = #{status,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
<if test="refundStatus != null" >
|
|
|
refund_status = #{refundStatus,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="createTime != null" >
|
|
|
create_time = #{createTime,jdbcType=INTEGER},
|
|
|
</if>
|
...
|
...
|
@@ -185,13 +150,11 @@ |
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
-->
|
|
|
update orders_pay_refund
|
|
|
set refund_order_code = #{refundOrderCode,jdbcType=BIGINT},
|
|
|
set
|
|
|
order_code = #{orderCode,jdbcType=BIGINT},
|
|
|
payment = #{payment,jdbcType=TINYINT},
|
|
|
serial_no = #{serialNo,jdbcType=VARCHAR},
|
|
|
amount = #{amount,jdbcType=DECIMAL},
|
|
|
status = #{status,jdbcType=TINYINT},
|
|
|
refund_status = #{refundStatus,jdbcType=VARCHAR},
|
|
|
create_time = #{createTime,jdbcType=INTEGER},
|
|
|
update_time = #{updateTime,jdbcType=INTEGER}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
...
|
...
|
|