|
|
1
|
+<?xml version="1.0" encoding="UTF-8"?>
|
|
|
2
|
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
3
|
+<mapper namespace="com.yohoufo.dal.order.SuperEntrySellerMapper">
|
|
|
4
|
+ <resultMap id="BaseResultMap" type="com.yohoufo.dal.order.model.SuperEntrySeller">
|
|
|
5
|
+ <id column="uid" jdbcType="INTEGER" property="uid" />
|
|
|
6
|
+ <result column="status" jdbcType="SMALLINT" property="status" />
|
|
|
7
|
+ <result column="update_time" jdbcType="INTEGER" property="updateTime" />
|
|
|
8
|
+ <result column="create_time" jdbcType="INTEGER" property="createTime" />
|
|
|
9
|
+ </resultMap>
|
|
|
10
|
+ <sql id="Base_Column_List">
|
|
|
11
|
+ uid, status, update_time, create_time
|
|
|
12
|
+ </sql>
|
|
|
13
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
14
|
+ select
|
|
|
15
|
+ <include refid="Base_Column_List" />
|
|
|
16
|
+ from super_entry_seller
|
|
|
17
|
+ where uid = #{uid,jdbcType=INTEGER}
|
|
|
18
|
+ </select>
|
|
|
19
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
|
|
20
|
+ delete from super_entry_seller
|
|
|
21
|
+ where uid = #{uid,jdbcType=INTEGER}
|
|
|
22
|
+ </delete>
|
|
|
23
|
+ <insert id="insert" keyColumn="uid" keyProperty="uid" parameterType="com.yohoufo.dal.order.model.SuperEntrySeller" useGeneratedKeys="true">
|
|
|
24
|
+ insert into super_entry_seller (status, update_time, create_time
|
|
|
25
|
+ )
|
|
|
26
|
+ values (#{status,jdbcType=SMALLINT}, #{updateTime,jdbcType=INTEGER}, #{createTime,jdbcType=INTEGER}
|
|
|
27
|
+ )
|
|
|
28
|
+ </insert>
|
|
|
29
|
+ <insert id="insertSelective" keyColumn="uid" keyProperty="uid" parameterType="com.yohoufo.dal.order.model.SuperEntrySeller" useGeneratedKeys="true">
|
|
|
30
|
+ insert into super_entry_seller
|
|
|
31
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
32
|
+ <if test="status != null">
|
|
|
33
|
+ status,
|
|
|
34
|
+ </if>
|
|
|
35
|
+ <if test="updateTime != null">
|
|
|
36
|
+ update_time,
|
|
|
37
|
+ </if>
|
|
|
38
|
+ <if test="createTime != null">
|
|
|
39
|
+ create_time,
|
|
|
40
|
+ </if>
|
|
|
41
|
+ </trim>
|
|
|
42
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
43
|
+ <if test="status != null">
|
|
|
44
|
+ #{status,jdbcType=SMALLINT},
|
|
|
45
|
+ </if>
|
|
|
46
|
+ <if test="updateTime != null">
|
|
|
47
|
+ #{updateTime,jdbcType=INTEGER},
|
|
|
48
|
+ </if>
|
|
|
49
|
+ <if test="createTime != null">
|
|
|
50
|
+ #{createTime,jdbcType=INTEGER},
|
|
|
51
|
+ </if>
|
|
|
52
|
+ </trim>
|
|
|
53
|
+ </insert>
|
|
|
54
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.yohoufo.dal.order.model.SuperEntrySeller">
|
|
|
55
|
+ update super_entry_seller
|
|
|
56
|
+ <set>
|
|
|
57
|
+ <if test="status != null">
|
|
|
58
|
+ status = #{status,jdbcType=SMALLINT},
|
|
|
59
|
+ </if>
|
|
|
60
|
+ <if test="updateTime != null">
|
|
|
61
|
+ update_time = #{updateTime,jdbcType=INTEGER},
|
|
|
62
|
+ </if>
|
|
|
63
|
+ <if test="createTime != null">
|
|
|
64
|
+ create_time = #{createTime,jdbcType=INTEGER},
|
|
|
65
|
+ </if>
|
|
|
66
|
+ </set>
|
|
|
67
|
+ where uid = #{uid,jdbcType=INTEGER}
|
|
|
68
|
+ </update>
|
|
|
69
|
+ <update id="updateByPrimaryKey" parameterType="com.yohoufo.dal.order.model.SuperEntrySeller">
|
|
|
70
|
+ update super_entry_seller
|
|
|
71
|
+ set status = #{status,jdbcType=SMALLINT},
|
|
|
72
|
+ update_time = #{updateTime,jdbcType=INTEGER},
|
|
|
73
|
+ create_time = #{createTime,jdbcType=INTEGER}
|
|
|
74
|
+ where uid = #{uid,jdbcType=INTEGER}
|
|
|
75
|
+ </update>
|
|
|
76
|
+</mapper> |