|
@@ -0,0 +1,142 @@
|
|
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.community.huiju.dao.TpActivitySignInMapper">
|
|
4
|
+ <resultMap id="BaseResultMap" type="com.community.huiju.model.TpActivitySignIn">
|
|
5
|
+ <id column="id" jdbcType="INTEGER" property="id" />
|
|
6
|
+ <result column="community_id" jdbcType="INTEGER" property="communityId" />
|
|
7
|
+ <result column="activity_id" jdbcType="INTEGER" property="activityId" />
|
|
8
|
+ <result column="user_name" jdbcType="VARCHAR" property="userName" />
|
|
9
|
+ <result column="user_role" jdbcType="VARCHAR" property="userRole" />
|
|
10
|
+ <result column="building_info" jdbcType="VARCHAR" property="buildingInfo" />
|
|
11
|
+ <result column="ta_user_id" jdbcType="INTEGER" property="taUserId" />
|
|
12
|
+ <result column="user_tel" jdbcType="VARCHAR" property="userTel" />
|
|
13
|
+ <result column="create_date" jdbcType="TIMESTAMP" property="createDate" />
|
|
14
|
+ </resultMap>
|
|
15
|
+ <sql id="Base_Column_List">
|
|
16
|
+ id, community_id, activity_id, user_name, user_role, building_info, ta_user_id, user_tel,
|
|
17
|
+ create_date
|
|
18
|
+ </sql>
|
|
19
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
20
|
+ select
|
|
21
|
+ <include refid="Base_Column_List" />
|
|
22
|
+ from tp_activity_sign_in
|
|
23
|
+ where id = #{id,jdbcType=INTEGER}
|
|
24
|
+ </select>
|
|
25
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
|
26
|
+ delete from tp_activity_sign_in
|
|
27
|
+ where id = #{id,jdbcType=INTEGER}
|
|
28
|
+ </delete>
|
|
29
|
+ <insert id="insert" parameterType="com.community.huiju.model.TpActivitySignIn">
|
|
30
|
+ insert into tp_activity_sign_in (id, community_id, activity_id,
|
|
31
|
+ user_name, user_role, building_info,
|
|
32
|
+ ta_user_id, user_tel, create_date
|
|
33
|
+ )
|
|
34
|
+ values (#{id,jdbcType=INTEGER}, #{communityId,jdbcType=INTEGER}, #{activityId,jdbcType=INTEGER},
|
|
35
|
+ #{userName,jdbcType=VARCHAR}, #{userRole,jdbcType=VARCHAR}, #{buildingInfo,jdbcType=VARCHAR},
|
|
36
|
+ #{taUserId,jdbcType=INTEGER}, #{userTel,jdbcType=VARCHAR}, #{createDate,jdbcType=TIMESTAMP}
|
|
37
|
+ )
|
|
38
|
+ </insert>
|
|
39
|
+ <insert id="insertSelective" parameterType="com.community.huiju.model.TpActivitySignIn">
|
|
40
|
+ insert into tp_activity_sign_in
|
|
41
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
42
|
+ <if test="id != null">
|
|
43
|
+ id,
|
|
44
|
+ </if>
|
|
45
|
+ <if test="communityId != null">
|
|
46
|
+ community_id,
|
|
47
|
+ </if>
|
|
48
|
+ <if test="activityId != null">
|
|
49
|
+ activity_id,
|
|
50
|
+ </if>
|
|
51
|
+ <if test="userName != null">
|
|
52
|
+ user_name,
|
|
53
|
+ </if>
|
|
54
|
+ <if test="userRole != null">
|
|
55
|
+ user_role,
|
|
56
|
+ </if>
|
|
57
|
+ <if test="buildingInfo != null">
|
|
58
|
+ building_info,
|
|
59
|
+ </if>
|
|
60
|
+ <if test="taUserId != null">
|
|
61
|
+ ta_user_id,
|
|
62
|
+ </if>
|
|
63
|
+ <if test="userTel != null">
|
|
64
|
+ user_tel,
|
|
65
|
+ </if>
|
|
66
|
+ <if test="createDate != null">
|
|
67
|
+ create_date,
|
|
68
|
+ </if>
|
|
69
|
+ </trim>
|
|
70
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
71
|
+ <if test="id != null">
|
|
72
|
+ #{id,jdbcType=INTEGER},
|
|
73
|
+ </if>
|
|
74
|
+ <if test="communityId != null">
|
|
75
|
+ #{communityId,jdbcType=INTEGER},
|
|
76
|
+ </if>
|
|
77
|
+ <if test="activityId != null">
|
|
78
|
+ #{activityId,jdbcType=INTEGER},
|
|
79
|
+ </if>
|
|
80
|
+ <if test="userName != null">
|
|
81
|
+ #{userName,jdbcType=VARCHAR},
|
|
82
|
+ </if>
|
|
83
|
+ <if test="userRole != null">
|
|
84
|
+ #{userRole,jdbcType=VARCHAR},
|
|
85
|
+ </if>
|
|
86
|
+ <if test="buildingInfo != null">
|
|
87
|
+ #{buildingInfo,jdbcType=VARCHAR},
|
|
88
|
+ </if>
|
|
89
|
+ <if test="taUserId != null">
|
|
90
|
+ #{taUserId,jdbcType=INTEGER},
|
|
91
|
+ </if>
|
|
92
|
+ <if test="userTel != null">
|
|
93
|
+ #{userTel,jdbcType=VARCHAR},
|
|
94
|
+ </if>
|
|
95
|
+ <if test="createDate != null">
|
|
96
|
+ #{createDate,jdbcType=TIMESTAMP},
|
|
97
|
+ </if>
|
|
98
|
+ </trim>
|
|
99
|
+ </insert>
|
|
100
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.community.huiju.model.TpActivitySignIn">
|
|
101
|
+ update tp_activity_sign_in
|
|
102
|
+ <set>
|
|
103
|
+ <if test="communityId != null">
|
|
104
|
+ community_id = #{communityId,jdbcType=INTEGER},
|
|
105
|
+ </if>
|
|
106
|
+ <if test="activityId != null">
|
|
107
|
+ activity_id = #{activityId,jdbcType=INTEGER},
|
|
108
|
+ </if>
|
|
109
|
+ <if test="userName != null">
|
|
110
|
+ user_name = #{userName,jdbcType=VARCHAR},
|
|
111
|
+ </if>
|
|
112
|
+ <if test="userRole != null">
|
|
113
|
+ user_role = #{userRole,jdbcType=VARCHAR},
|
|
114
|
+ </if>
|
|
115
|
+ <if test="buildingInfo != null">
|
|
116
|
+ building_info = #{buildingInfo,jdbcType=VARCHAR},
|
|
117
|
+ </if>
|
|
118
|
+ <if test="taUserId != null">
|
|
119
|
+ ta_user_id = #{taUserId,jdbcType=INTEGER},
|
|
120
|
+ </if>
|
|
121
|
+ <if test="userTel != null">
|
|
122
|
+ user_tel = #{userTel,jdbcType=VARCHAR},
|
|
123
|
+ </if>
|
|
124
|
+ <if test="createDate != null">
|
|
125
|
+ create_date = #{createDate,jdbcType=TIMESTAMP},
|
|
126
|
+ </if>
|
|
127
|
+ </set>
|
|
128
|
+ where id = #{id,jdbcType=INTEGER}
|
|
129
|
+ </update>
|
|
130
|
+ <update id="updateByPrimaryKey" parameterType="com.community.huiju.model.TpActivitySignIn">
|
|
131
|
+ update tp_activity_sign_in
|
|
132
|
+ set community_id = #{communityId,jdbcType=INTEGER},
|
|
133
|
+ activity_id = #{activityId,jdbcType=INTEGER},
|
|
134
|
+ user_name = #{userName,jdbcType=VARCHAR},
|
|
135
|
+ user_role = #{userRole,jdbcType=VARCHAR},
|
|
136
|
+ building_info = #{buildingInfo,jdbcType=VARCHAR},
|
|
137
|
+ ta_user_id = #{taUserId,jdbcType=INTEGER},
|
|
138
|
+ user_tel = #{userTel,jdbcType=VARCHAR},
|
|
139
|
+ create_date = #{createDate,jdbcType=TIMESTAMP}
|
|
140
|
+ where id = #{id,jdbcType=INTEGER}
|
|
141
|
+ </update>
|
|
142
|
+</mapper>
|