<?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.yeshi.fanli.dao.mybatis.jd.JDOrderMapper">
|
<resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.jd.JDOrder">
|
<id column="jo_id" property="id" jdbcType="BIGINT" />
|
<result column="jo_finish_time" property="finishTime" jdbcType="BIGINT" />
|
<result column="jo_order_emt" property="orderEmt" jdbcType="INTEGER" />
|
<result column="jo_order_id" property="orderId" jdbcType="BIGINT" />
|
<result column="jo_order_time" property="orderTime" jdbcType="BIGINT" />
|
<result column="jo_parent_id" property="parentId" jdbcType="BIGINT" />
|
<result column="jo_pay_month" property="payMonth" jdbcType="VARCHAR" />
|
<result column="jo_plus" property="plus" jdbcType="INTEGER" />
|
<result column="jo_pop_id" property="popId" jdbcType="BIGINT" />
|
<result column="jo_union_id" property="unionId" jdbcType="BIGINT" />
|
<result column="jo_ext1" property="ext1" jdbcType="VARCHAR" />
|
<result column="jo_valid_code" property="validCode" jdbcType="INTEGER" />
|
<result column="jo_create_time" property="createTime" jdbcType="TIMESTAMP" />
|
<result column="jo_update_time" property="updateTime" jdbcType="TIMESTAMP" />
|
</resultMap>
|
<sql id="Base_Column_List">jo_id,jo_finish_time,jo_order_emt,jo_order_id,jo_order_time,jo_parent_id,jo_pay_month,jo_plus,jo_pop_id,jo_union_id,jo_ext1,jo_valid_code,jo_create_time,jo_update_time
|
</sql>
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap"
|
parameterType="java.lang.Long">
|
select
|
<include refid="Base_Column_List" />
|
from yeshi_ec_jd_order where jo_id = #{id,jdbcType=BIGINT}
|
</select>
|
|
<select id="selectByOrderId" resultMap="BaseResultMap"
|
parameterType="java.lang.Long">
|
select
|
<include refid="Base_Column_List" />
|
from yeshi_ec_jd_order where jo_order_id = #{0}
|
</select>
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from
|
yeshi_ec_jd_order where jo_id = #{id,jdbcType=BIGINT}
|
</delete>
|
<insert id="insert" parameterType="com.yeshi.fanli.entity.jd.JDOrder"
|
useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_jd_order
|
(jo_id,jo_finish_time,jo_order_emt,jo_order_id,jo_order_time,jo_parent_id,jo_pay_month,jo_plus,jo_pop_id,jo_union_id,jo_ext1,jo_valid_code,jo_create_time,jo_update_time)
|
values
|
(#{id,jdbcType=BIGINT},#{finishTime,jdbcType=BIGINT},#{orderEmt,jdbcType=INTEGER},#{orderId,jdbcType=BIGINT},#{orderTime,jdbcType=BIGINT},#{parentId,jdbcType=BIGINT},#{payMonth,jdbcType=VARCHAR},#{plus,jdbcType=INTEGER},#{popId,jdbcType=BIGINT},#{unionId,jdbcType=BIGINT},#{ext1,jdbcType=VARCHAR},#{validCode,jdbcType=INTEGER},#{createTime,jdbcType=TIMESTAMP},#{updateTime,jdbcType=TIMESTAMP})
|
</insert>
|
<insert id="insertSelective" parameterType="com.yeshi.fanli.entity.jd.JDOrder"
|
useGeneratedKeys="true" keyProperty="id">
|
insert into yeshi_ec_jd_order
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<if test="id != null">jo_id,</if>
|
<if test="finishTime != null">jo_finish_time,</if>
|
<if test="orderEmt != null">jo_order_emt,</if>
|
<if test="orderId != null">jo_order_id,</if>
|
<if test="orderTime != null">jo_order_time,</if>
|
<if test="parentId != null">jo_parent_id,</if>
|
<if test="payMonth != null">jo_pay_month,</if>
|
<if test="plus != null">jo_plus,</if>
|
<if test="popId != null">jo_pop_id,</if>
|
<if test="unionId != null">jo_union_id,</if>
|
<if test="ext1 != null">jo_ext1,</if>
|
<if test="validCode != null">jo_valid_code,</if>
|
<if test="createTime != null">jo_create_time,</if>
|
<if test="updateTime != null">jo_update_time,</if>
|
</trim>
|
values
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<if test="id != null">#{id,jdbcType=BIGINT},</if>
|
<if test="finishTime != null">#{finishTime,jdbcType=BIGINT},</if>
|
<if test="orderEmt != null">#{orderEmt,jdbcType=INTEGER},</if>
|
<if test="orderId != null">#{orderId,jdbcType=BIGINT},</if>
|
<if test="orderTime != null">#{orderTime,jdbcType=BIGINT},</if>
|
<if test="parentId != null">#{parentId,jdbcType=BIGINT},</if>
|
<if test="payMonth != null">#{payMonth,jdbcType=VARCHAR},</if>
|
<if test="plus != null">#{plus,jdbcType=INTEGER},</if>
|
<if test="popId != null">#{popId,jdbcType=BIGINT},</if>
|
<if test="unionId != null">#{unionId,jdbcType=BIGINT},</if>
|
<if test="ext1 != null">#{ext1,jdbcType=VARCHAR},</if>
|
<if test="validCode != null">#{validCode,jdbcType=INTEGER},</if>
|
<if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if>
|
<if test="updateTime != null">#{updateTime,jdbcType=TIMESTAMP},</if>
|
</trim>
|
</insert>
|
<update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.jd.JDOrder">update
|
yeshi_ec_jd_order set jo_finish_time =
|
#{finishTime,jdbcType=BIGINT},jo_order_emt =
|
#{orderEmt,jdbcType=INTEGER},jo_order_id =
|
#{orderId,jdbcType=BIGINT},jo_order_time =
|
#{orderTime,jdbcType=BIGINT},jo_parent_id =
|
#{parentId,jdbcType=BIGINT},jo_pay_month =
|
#{payMonth,jdbcType=VARCHAR},jo_plus =
|
#{plus,jdbcType=INTEGER},jo_pop_id =
|
#{popId,jdbcType=BIGINT},jo_union_id =
|
#{unionId,jdbcType=BIGINT},jo_ext1 =
|
#{ext1,jdbcType=VARCHAR},jo_valid_code =
|
#{validCode,jdbcType=INTEGER},jo_create_time =
|
#{createTime,jdbcType=TIMESTAMP},jo_update_time =
|
#{updateTime,jdbcType=TIMESTAMP} where jo_id = #{id,jdbcType=BIGINT}
|
</update>
|
<update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.jd.JDOrder">
|
update yeshi_ec_jd_order
|
<set>
|
<if test="finishTime != null">jo_finish_time=#{finishTime,jdbcType=BIGINT},</if>
|
<if test="orderEmt != null">jo_order_emt=#{orderEmt,jdbcType=INTEGER},</if>
|
<if test="orderId != null">jo_order_id=#{orderId,jdbcType=BIGINT},</if>
|
<if test="orderTime != null">jo_order_time=#{orderTime,jdbcType=BIGINT},</if>
|
<if test="parentId != null">jo_parent_id=#{parentId,jdbcType=BIGINT},</if>
|
<if test="payMonth != null">jo_pay_month=#{payMonth,jdbcType=VARCHAR},</if>
|
<if test="plus != null">jo_plus=#{plus,jdbcType=INTEGER},</if>
|
<if test="popId != null">jo_pop_id=#{popId,jdbcType=BIGINT},</if>
|
<if test="unionId != null">jo_union_id=#{unionId,jdbcType=BIGINT},</if>
|
<if test="ext1 != null">jo_ext1=#{ext1,jdbcType=VARCHAR},</if>
|
<if test="validCode != null">jo_valid_code=#{validCode,jdbcType=INTEGER},</if>
|
<if test="createTime != null">jo_create_time=#{createTime,jdbcType=TIMESTAMP},</if>
|
<if test="updateTime != null">jo_update_time=#{updateTime,jdbcType=TIMESTAMP},</if>
|
</set>
|
where jo_id = #{id,jdbcType=BIGINT}
|
</update>
|
</mapper>
|