...
|
...
|
@@ -4,6 +4,7 @@ |
|
|
<resultMap id="BaseResultMap" type="com.yohoufo.dal.order.model.AppraiseOrder">
|
|
|
<id column="id" jdbcType="INTEGER" property="id" />
|
|
|
<result column="uid" jdbcType="INTEGER" property="uid" />
|
|
|
<result column="parent_order_code" jdbcType="BIGINT" property="parentOrderCode" />
|
|
|
<result column="order_code" jdbcType="BIGINT" property="orderCode" />
|
|
|
<result column="client_type" jdbcType="TINYINT" property="clientType" />
|
|
|
<result column="payment" jdbcType="TINYINT" property="payment" />
|
...
|
...
|
@@ -14,10 +15,12 @@ |
|
|
<result column="update_time" jdbcType="INTEGER" property="updateTime" />
|
|
|
<result column="is_del" jdbcType="TINYINT" property="isDel" />
|
|
|
<result column="channel_no" jdbcType="VARCHAR" property="channelNo" />
|
|
|
<result column="attributes" jdbcType="INTEGER" property="attributes" />
|
|
|
<result column="platform_delivery_status" jdbcType="TINYINT" property="platformDeliveryStatus" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
id, uid, order_code, client_type, payment, amount, ship_fee, status, create_time,
|
|
|
update_time, is_del, channel_no
|
|
|
id, uid, parent_order_code, order_code, client_type, payment, amount, ship_fee, status,
|
|
|
create_time, update_time, is_del, channel_no, attributes, platform_delivery_status
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
select
|
...
|
...
|
@@ -28,14 +31,16 @@ |
|
|
|
|
|
|
|
|
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.yohoufo.dal.order.model.AppraiseOrder" useGeneratedKeys="true">
|
|
|
insert into appraise_order (uid, order_code, client_type,
|
|
|
payment, amount, ship_fee,
|
|
|
status, create_time, update_time,
|
|
|
is_del, channel_no)
|
|
|
values (#{uid,jdbcType=INTEGER}, #{orderCode,jdbcType=BIGINT}, #{clientType,jdbcType=TINYINT},
|
|
|
#{payment,jdbcType=TINYINT}, #{amount,jdbcType=DECIMAL}, #{shipFee,jdbcType=DECIMAL},
|
|
|
#{status,jdbcType=TINYINT}, #{createTime,jdbcType=INTEGER}, #{updateTime,jdbcType=INTEGER},
|
|
|
#{isDel,jdbcType=TINYINT}, #{channelNo,jdbcType=VARCHAR})
|
|
|
insert into appraise_order (uid, parent_order_code, order_code,
|
|
|
client_type, payment, amount,
|
|
|
ship_fee, status, create_time,
|
|
|
update_time, is_del, channel_no,
|
|
|
attributes, platform_delivery_status)
|
|
|
values (#{uid,jdbcType=INTEGER}, #{parentOrderCode,jdbcType=BIGINT}, #{orderCode,jdbcType=BIGINT},
|
|
|
#{clientType,jdbcType=TINYINT}, #{payment,jdbcType=TINYINT}, #{amount,jdbcType=DECIMAL},
|
|
|
#{shipFee,jdbcType=DECIMAL}, #{status,jdbcType=TINYINT}, #{createTime,jdbcType=INTEGER},
|
|
|
#{updateTime,jdbcType=INTEGER}, #{isDel,jdbcType=TINYINT}, #{channelNo,jdbcType=VARCHAR},
|
|
|
#{attributes,jdbcType=INTEGER}, #{platformDeliveryStatus,jdbcType=TINYINT})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.yohoufo.dal.order.model.AppraiseOrder" useGeneratedKeys="true">
|
|
|
insert into appraise_order
|
...
|
...
|
@@ -43,6 +48,9 @@ |
|
|
<if test="uid != null">
|
|
|
uid,
|
|
|
</if>
|
|
|
<if test="parentOrderCode != null">
|
|
|
parent_order_code,
|
|
|
</if>
|
|
|
<if test="orderCode != null">
|
|
|
order_code,
|
|
|
</if>
|
...
|
...
|
@@ -73,11 +81,20 @@ |
|
|
<if test="channelNo != null">
|
|
|
channel_no,
|
|
|
</if>
|
|
|
<if test="attributes != null">
|
|
|
attributes,
|
|
|
</if>
|
|
|
<if test="platformDeliveryStatus != null">
|
|
|
platform_delivery_status,
|
|
|
</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="uid != null">
|
|
|
#{uid,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="parentOrderCode != null">
|
|
|
#{parentOrderCode,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
<if test="orderCode != null">
|
|
|
#{orderCode,jdbcType=BIGINT},
|
|
|
</if>
|
...
|
...
|
@@ -108,6 +125,12 @@ |
|
|
<if test="channelNo != null">
|
|
|
#{channelNo,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="attributes != null">
|
|
|
#{attributes,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="platformDeliveryStatus != null">
|
|
|
#{platformDeliveryStatus,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.yohoufo.dal.order.model.AppraiseOrder">
|
...
|
...
|
@@ -116,6 +139,9 @@ |
|
|
<if test="uid != null">
|
|
|
uid = #{uid,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="parentOrderCode != null">
|
|
|
parent_order_code = #{parentOrderCode,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
<if test="orderCode != null">
|
|
|
order_code = #{orderCode,jdbcType=BIGINT},
|
|
|
</if>
|
...
|
...
|
@@ -146,12 +172,19 @@ |
|
|
<if test="channelNo != null">
|
|
|
channel_no = #{channelNo,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="attributes != null">
|
|
|
attributes = #{attributes,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="platformDeliveryStatus != null">
|
|
|
platform_delivery_status = #{platformDeliveryStatus,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.yohoufo.dal.order.model.AppraiseOrder">
|
|
|
update appraise_order
|
|
|
set uid = #{uid,jdbcType=INTEGER},
|
|
|
parent_order_code = #{parentOrderCode,jdbcType=BIGINT},
|
|
|
order_code = #{orderCode,jdbcType=BIGINT},
|
|
|
client_type = #{clientType,jdbcType=TINYINT},
|
|
|
payment = #{payment,jdbcType=TINYINT},
|
...
|
...
|
@@ -161,7 +194,9 @@ |
|
|
create_time = #{createTime,jdbcType=INTEGER},
|
|
|
update_time = #{updateTime,jdbcType=INTEGER},
|
|
|
is_del = #{isDel,jdbcType=TINYINT},
|
|
|
channel_no = #{channelNo,jdbcType=VARCHAR}
|
|
|
channel_no = #{channelNo,jdbcType=VARCHAR},
|
|
|
attributes = #{attributes,jdbcType=INTEGER},
|
|
|
platform_delivery_status = #{platformDeliveryStatus,jdbcType=TINYINT}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
</mapper> |
|
|
\ No newline at end of file |
...
|
...
|
|