|
|
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.yoho.unions.dal.UnionShareUserApplyMapper" >
|
|
|
4
|
+ <resultMap id="BaseResultMap" type="com.yoho.unions.dal.model.UnionShareUserApply" >
|
|
|
5
|
+ <id column="id" property="id" jdbcType="INTEGER" />
|
|
|
6
|
+ <result column="uid" property="uid" jdbcType="INTEGER" />
|
|
|
7
|
+ <result column="name" property="name" jdbcType="VARCHAR" />
|
|
|
8
|
+ <result column="social_media_type" property="socialMediaType" jdbcType="TINYINT" />
|
|
|
9
|
+ <result column="social_media_account" property="socialMediaAccount" jdbcType="VARCHAR" />
|
|
|
10
|
+ <result column="social_media_fans" property="socialMediaFans" jdbcType="INTEGER" />
|
|
|
11
|
+ <result column="status" property="status" jdbcType="TINYINT" />
|
|
|
12
|
+ <result column="del_flag" property="delFlag" jdbcType="TINYINT" />
|
|
|
13
|
+ <result column="create_time" property="createTime" jdbcType="INTEGER" />
|
|
|
14
|
+ <result column="check_time" property="checkTime" jdbcType="INTEGER" />
|
|
|
15
|
+ </resultMap>
|
|
|
16
|
+ <sql id="Base_Column_List" >
|
|
|
17
|
+ id, uid, name, social_media_type, social_media_account, social_media_fans, status,
|
|
|
18
|
+ del_flag, create_time, check_time
|
|
|
19
|
+ </sql>
|
|
|
20
|
+ <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
|
21
|
+ select
|
|
|
22
|
+ <include refid="Base_Column_List" />
|
|
|
23
|
+ from union_share_user_apply
|
|
|
24
|
+ where id = #{id,jdbcType=INTEGER}
|
|
|
25
|
+ </select>
|
|
|
26
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
|
|
|
27
|
+ delete from union_share_user_apply
|
|
|
28
|
+ where id = #{id,jdbcType=INTEGER}
|
|
|
29
|
+ </delete>
|
|
|
30
|
+ <insert id="insert" parameterType="com.yoho.unions.dal.model.UnionShareUserApply" >
|
|
|
31
|
+ insert into union_share_user_apply (id, uid, name,
|
|
|
32
|
+ social_media_type, social_media_account, social_media_fans,
|
|
|
33
|
+ status, del_flag, create_time,
|
|
|
34
|
+ check_time)
|
|
|
35
|
+ values (#{id,jdbcType=INTEGER}, #{uid,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR},
|
|
|
36
|
+ #{socialMediaType,jdbcType=TINYINT}, #{socialMediaAccount,jdbcType=VARCHAR}, #{socialMediaFans,jdbcType=INTEGER},
|
|
|
37
|
+ #{status,jdbcType=TINYINT}, #{delFlag,jdbcType=TINYINT}, #{createTime,jdbcType=INTEGER},
|
|
|
38
|
+ #{checkTime,jdbcType=INTEGER})
|
|
|
39
|
+ </insert>
|
|
|
40
|
+ <insert id="insertSelective" parameterType="com.yoho.unions.dal.model.UnionShareUserApply" >
|
|
|
41
|
+ insert into union_share_user_apply
|
|
|
42
|
+ <trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
43
|
+ <if test="id != null" >
|
|
|
44
|
+ id,
|
|
|
45
|
+ </if>
|
|
|
46
|
+ <if test="uid != null" >
|
|
|
47
|
+ uid,
|
|
|
48
|
+ </if>
|
|
|
49
|
+ <if test="name != null" >
|
|
|
50
|
+ name,
|
|
|
51
|
+ </if>
|
|
|
52
|
+ <if test="socialMediaType != null" >
|
|
|
53
|
+ social_media_type,
|
|
|
54
|
+ </if>
|
|
|
55
|
+ <if test="socialMediaAccount != null" >
|
|
|
56
|
+ social_media_account,
|
|
|
57
|
+ </if>
|
|
|
58
|
+ <if test="socialMediaFans != null" >
|
|
|
59
|
+ social_media_fans,
|
|
|
60
|
+ </if>
|
|
|
61
|
+ <if test="status != null" >
|
|
|
62
|
+ status,
|
|
|
63
|
+ </if>
|
|
|
64
|
+ <if test="delFlag != null" >
|
|
|
65
|
+ del_flag,
|
|
|
66
|
+ </if>
|
|
|
67
|
+ <if test="createTime != null" >
|
|
|
68
|
+ create_time,
|
|
|
69
|
+ </if>
|
|
|
70
|
+ <if test="checkTime != null" >
|
|
|
71
|
+ check_time,
|
|
|
72
|
+ </if>
|
|
|
73
|
+ </trim>
|
|
|
74
|
+ <trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
75
|
+ <if test="id != null" >
|
|
|
76
|
+ #{id,jdbcType=INTEGER},
|
|
|
77
|
+ </if>
|
|
|
78
|
+ <if test="uid != null" >
|
|
|
79
|
+ #{uid,jdbcType=INTEGER},
|
|
|
80
|
+ </if>
|
|
|
81
|
+ <if test="name != null" >
|
|
|
82
|
+ #{name,jdbcType=VARCHAR},
|
|
|
83
|
+ </if>
|
|
|
84
|
+ <if test="socialMediaType != null" >
|
|
|
85
|
+ #{socialMediaType,jdbcType=TINYINT},
|
|
|
86
|
+ </if>
|
|
|
87
|
+ <if test="socialMediaAccount != null" >
|
|
|
88
|
+ #{socialMediaAccount,jdbcType=VARCHAR},
|
|
|
89
|
+ </if>
|
|
|
90
|
+ <if test="socialMediaFans != null" >
|
|
|
91
|
+ #{socialMediaFans,jdbcType=INTEGER},
|
|
|
92
|
+ </if>
|
|
|
93
|
+ <if test="status != null" >
|
|
|
94
|
+ #{status,jdbcType=TINYINT},
|
|
|
95
|
+ </if>
|
|
|
96
|
+ <if test="delFlag != null" >
|
|
|
97
|
+ #{delFlag,jdbcType=TINYINT},
|
|
|
98
|
+ </if>
|
|
|
99
|
+ <if test="createTime != null" >
|
|
|
100
|
+ #{createTime,jdbcType=INTEGER},
|
|
|
101
|
+ </if>
|
|
|
102
|
+ <if test="checkTime != null" >
|
|
|
103
|
+ #{checkTime,jdbcType=INTEGER},
|
|
|
104
|
+ </if>
|
|
|
105
|
+ </trim>
|
|
|
106
|
+ </insert>
|
|
|
107
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.yoho.unions.dal.model.UnionShareUserApply" >
|
|
|
108
|
+ update union_share_user_apply
|
|
|
109
|
+ <set >
|
|
|
110
|
+ <if test="uid != null" >
|
|
|
111
|
+ uid = #{uid,jdbcType=INTEGER},
|
|
|
112
|
+ </if>
|
|
|
113
|
+ <if test="name != null" >
|
|
|
114
|
+ name = #{name,jdbcType=VARCHAR},
|
|
|
115
|
+ </if>
|
|
|
116
|
+ <if test="socialMediaType != null" >
|
|
|
117
|
+ social_media_type = #{socialMediaType,jdbcType=TINYINT},
|
|
|
118
|
+ </if>
|
|
|
119
|
+ <if test="socialMediaAccount != null" >
|
|
|
120
|
+ social_media_account = #{socialMediaAccount,jdbcType=VARCHAR},
|
|
|
121
|
+ </if>
|
|
|
122
|
+ <if test="socialMediaFans != null" >
|
|
|
123
|
+ social_media_fans = #{socialMediaFans,jdbcType=INTEGER},
|
|
|
124
|
+ </if>
|
|
|
125
|
+ <if test="status != null" >
|
|
|
126
|
+ status = #{status,jdbcType=TINYINT},
|
|
|
127
|
+ </if>
|
|
|
128
|
+ <if test="delFlag != null" >
|
|
|
129
|
+ del_flag = #{delFlag,jdbcType=TINYINT},
|
|
|
130
|
+ </if>
|
|
|
131
|
+ <if test="createTime != null" >
|
|
|
132
|
+ create_time = #{createTime,jdbcType=INTEGER},
|
|
|
133
|
+ </if>
|
|
|
134
|
+ <if test="checkTime != null" >
|
|
|
135
|
+ check_time = #{checkTime,jdbcType=INTEGER},
|
|
|
136
|
+ </if>
|
|
|
137
|
+ </set>
|
|
|
138
|
+ where id = #{id,jdbcType=INTEGER}
|
|
|
139
|
+ </update>
|
|
|
140
|
+ <update id="updateByPrimaryKey" parameterType="com.yoho.unions.dal.model.UnionShareUserApply" >
|
|
|
141
|
+ update union_share_user_apply
|
|
|
142
|
+ set uid = #{uid,jdbcType=INTEGER},
|
|
|
143
|
+ name = #{name,jdbcType=VARCHAR},
|
|
|
144
|
+ social_media_type = #{socialMediaType,jdbcType=TINYINT},
|
|
|
145
|
+ social_media_account = #{socialMediaAccount,jdbcType=VARCHAR},
|
|
|
146
|
+ social_media_fans = #{socialMediaFans,jdbcType=INTEGER},
|
|
|
147
|
+ status = #{status,jdbcType=TINYINT},
|
|
|
148
|
+ del_flag = #{delFlag,jdbcType=TINYINT},
|
|
|
149
|
+ create_time = #{createTime,jdbcType=INTEGER},
|
|
|
150
|
+ check_time = #{checkTime,jdbcType=INTEGER}
|
|
|
151
|
+ where id = #{id,jdbcType=INTEGER}
|
|
|
152
|
+ </update>
|
|
|
153
|
+</mapper> |