|
|
<?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.yoho.order.dal.AppraiseOrderMapper">
|
|
|
<resultMap id="BaseResultMap" type="com.yoho.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>
|
|
|
|
|
|
|
|
|
<update id="updateByPrimaryKey" parameterType="com.yoho.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 |
...
|
...
|
|