|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.yohoufo.dal.order.AppraiseOrderMapper">
|
|
|
<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="order_code" jdbcType="BIGINT" property="orderCode" />
|
|
|
<result column="client_type" jdbcType="TINYINT" property="clientType" />
|
|
|
<result column="payment" jdbcType="TINYINT" property="payment" />
|
|
|
<result column="amount" jdbcType="DECIMAL" property="amount" />
|
|
|
<result column="ship_fee" jdbcType="DECIMAL" property="shipFee" />
|
|
|
<result column="status" jdbcType="TINYINT" property="status" />
|
|
|
<result column="create_time" jdbcType="INTEGER" property="createTime" />
|
|
|
<result column="update_time" jdbcType="INTEGER" property="updateTime" />
|
|
|
<result column="is_del" jdbcType="TINYINT" property="isDel" />
|
|
|
<result column="channel_no" jdbcType="VARCHAR" property="channelNo" />
|
|
|
</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
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from appraise_order
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</select>
|
|
|
|
|
|
|
|
|
<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>
|
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.yohoufo.dal.order.model.AppraiseOrder" useGeneratedKeys="true">
|
|
|
insert into appraise_order
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="uid != null">
|
|
|
uid,
|
|
|
</if>
|
|
|
<if test="orderCode != null">
|
|
|
order_code,
|
|
|
</if>
|
|
|
<if test="clientType != null">
|
|
|
client_type,
|
|
|
</if>
|
|
|
<if test="payment != null">
|
|
|
payment,
|
|
|
</if>
|
|
|
<if test="amount != null">
|
|
|
amount,
|
|
|
</if>
|
|
|
<if test="shipFee != null">
|
|
|
ship_fee,
|
|
|
</if>
|
|
|
<if test="status != null">
|
|
|
status,
|
|
|
</if>
|
|
|
<if test="createTime != null">
|
|
|
create_time,
|
|
|
</if>
|
|
|
<if test="updateTime != null">
|
|
|
update_time,
|
|
|
</if>
|
|
|
<if test="isDel != null">
|
|
|
is_del,
|
|
|
</if>
|
|
|
<if test="channelNo != null">
|
|
|
channel_no,
|
|
|
</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="uid != null">
|
|
|
#{uid,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="orderCode != null">
|
|
|
#{orderCode,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
<if test="clientType != null">
|
|
|
#{clientType,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
<if test="payment != null">
|
|
|
#{payment,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
<if test="amount != null">
|
|
|
#{amount,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="shipFee != null">
|
|
|
#{shipFee,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="status != null">
|
|
|
#{status,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
<if test="createTime != null">
|
|
|
#{createTime,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="updateTime != null">
|
|
|
#{updateTime,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="isDel != null">
|
|
|
#{isDel,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
<if test="channelNo != null">
|
|
|
#{channelNo,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.yohoufo.dal.order.model.AppraiseOrder">
|
|
|
update appraise_order
|
|
|
<set>
|
|
|
<if test="uid != null">
|
|
|
uid = #{uid,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="orderCode != null">
|
|
|
order_code = #{orderCode,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
<if test="clientType != null">
|
|
|
client_type = #{clientType,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
<if test="payment != null">
|
|
|
payment = #{payment,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
<if test="amount != null">
|
|
|
amount = #{amount,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="shipFee != null">
|
|
|
ship_fee = #{shipFee,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="status != null">
|
|
|
status = #{status,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
<if test="createTime != null">
|
|
|
create_time = #{createTime,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="updateTime != null">
|
|
|
update_time = #{updateTime,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="isDel != null">
|
|
|
is_del = #{isDel,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
<if test="channelNo != null">
|
|
|
channel_no = #{channelNo,jdbcType=VARCHAR},
|
|
|
</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},
|
|
|
order_code = #{orderCode,jdbcType=BIGINT},
|
|
|
client_type = #{clientType,jdbcType=TINYINT},
|
|
|
payment = #{payment,jdbcType=TINYINT},
|
|
|
amount = #{amount,jdbcType=DECIMAL},
|
|
|
ship_fee = #{shipFee,jdbcType=DECIMAL},
|
|
|
status = #{status,jdbcType=TINYINT},
|
|
|
create_time = #{createTime,jdbcType=INTEGER},
|
|
|
update_time = #{updateTime,jdbcType=INTEGER},
|
|
|
is_del = #{isDel,jdbcType=TINYINT},
|
|
|
channel_no = #{channelNo,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
</mapper> |
|
|
\ No newline at end of file |
...
|
...
|
|