|
@@ -0,0 +1,235 @@
|
|
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.TpTransactionMapper" >
|
|
4
|
+ <resultMap id="BaseResultMap" type="com.community.huiju.model.TpTransaction" >
|
|
5
|
+ <id column="id" property="id" jdbcType="INTEGER" />
|
|
6
|
+ <result column="community_id" property="communityId" jdbcType="INTEGER" />
|
|
7
|
+ <result column="ta_user_id" property="taUserId" jdbcType="INTEGER" />
|
|
8
|
+ <result column="transaction_title" property="transactionTitle" jdbcType="VARCHAR" />
|
|
9
|
+ <result column="transaction_content" property="transactionContent" jdbcType="VARCHAR" />
|
|
10
|
+ <result column="transaction_match_img1" property="transactionMatchImg1" jdbcType="VARCHAR" />
|
|
11
|
+ <result column="activity_match_img3" property="activityMatchImg3" jdbcType="VARCHAR" />
|
|
12
|
+ <result column="activity_match_img4" property="activityMatchImg4" jdbcType="VARCHAR" />
|
|
13
|
+ <result column="activity_match_img5" property="activityMatchImg5" jdbcType="VARCHAR" />
|
|
14
|
+ <result column="activity_match_img6" property="activityMatchImg6" jdbcType="VARCHAR" />
|
|
15
|
+ <result column="view_count" property="viewCount" jdbcType="INTEGER" />
|
|
16
|
+ <result column="status" property="status" jdbcType="CHAR" />
|
|
17
|
+ <result column="type" property="type" jdbcType="CHAR" />
|
|
18
|
+ <result column="create_user" property="createUser" jdbcType="INTEGER" />
|
|
19
|
+ <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
|
|
20
|
+ <result column="update_user" property="updateUser" jdbcType="INTEGER" />
|
|
21
|
+ <result column="update_date" property="updateDate" jdbcType="TIMESTAMP" />
|
|
22
|
+ </resultMap>
|
|
23
|
+ <sql id="Base_Column_List" >
|
|
24
|
+ id, community_id, ta_user_id, transaction_title, transaction_content, transaction_match_img1,
|
|
25
|
+ activity_match_img3, activity_match_img4, activity_match_img5, activity_match_img6,
|
|
26
|
+ view_count, status, type, create_user, create_date, update_user, update_date
|
|
27
|
+ </sql>
|
|
28
|
+ <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
29
|
+ select
|
|
30
|
+ <include refid="Base_Column_List" />
|
|
31
|
+ from tp_transaction
|
|
32
|
+ where id = #{id,jdbcType=INTEGER}
|
|
33
|
+ </select>
|
|
34
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
|
|
35
|
+ delete from tp_transaction
|
|
36
|
+ where id = #{id,jdbcType=INTEGER}
|
|
37
|
+ </delete>
|
|
38
|
+ <insert id="insert" parameterType="com.community.huiju.model.TpTransaction" >
|
|
39
|
+ insert into tp_transaction (id, community_id, ta_user_id,
|
|
40
|
+ transaction_title, transaction_content, transaction_match_img1,
|
|
41
|
+ activity_match_img3, activity_match_img4, activity_match_img5,
|
|
42
|
+ activity_match_img6, view_count, status,
|
|
43
|
+ type, create_user, create_date,
|
|
44
|
+ update_user, update_date)
|
|
45
|
+ values (#{id,jdbcType=INTEGER}, #{communityId,jdbcType=INTEGER}, #{taUserId,jdbcType=INTEGER},
|
|
46
|
+ #{transactionTitle,jdbcType=VARCHAR}, #{transactionContent,jdbcType=VARCHAR}, #{transactionMatchImg1,jdbcType=VARCHAR},
|
|
47
|
+ #{activityMatchImg3,jdbcType=VARCHAR}, #{activityMatchImg4,jdbcType=VARCHAR}, #{activityMatchImg5,jdbcType=VARCHAR},
|
|
48
|
+ #{activityMatchImg6,jdbcType=VARCHAR}, #{viewCount,jdbcType=INTEGER}, #{status,jdbcType=CHAR},
|
|
49
|
+ #{type,jdbcType=CHAR}, #{createUser,jdbcType=INTEGER}, #{createDate,jdbcType=TIMESTAMP},
|
|
50
|
+ #{updateUser,jdbcType=INTEGER}, #{updateDate,jdbcType=TIMESTAMP})
|
|
51
|
+ </insert>
|
|
52
|
+ <insert id="insertSelective" parameterType="com.community.huiju.model.TpTransaction" >
|
|
53
|
+ insert into tp_transaction
|
|
54
|
+ <trim prefix="(" suffix=")" suffixOverrides="," >
|
|
55
|
+ <if test="id != null" >
|
|
56
|
+ id,
|
|
57
|
+ </if>
|
|
58
|
+ <if test="communityId != null" >
|
|
59
|
+ community_id,
|
|
60
|
+ </if>
|
|
61
|
+ <if test="taUserId != null" >
|
|
62
|
+ ta_user_id,
|
|
63
|
+ </if>
|
|
64
|
+ <if test="transactionTitle != null" >
|
|
65
|
+ transaction_title,
|
|
66
|
+ </if>
|
|
67
|
+ <if test="transactionContent != null" >
|
|
68
|
+ transaction_content,
|
|
69
|
+ </if>
|
|
70
|
+ <if test="transactionMatchImg1 != null" >
|
|
71
|
+ transaction_match_img1,
|
|
72
|
+ </if>
|
|
73
|
+ <if test="activityMatchImg3 != null" >
|
|
74
|
+ activity_match_img3,
|
|
75
|
+ </if>
|
|
76
|
+ <if test="activityMatchImg4 != null" >
|
|
77
|
+ activity_match_img4,
|
|
78
|
+ </if>
|
|
79
|
+ <if test="activityMatchImg5 != null" >
|
|
80
|
+ activity_match_img5,
|
|
81
|
+ </if>
|
|
82
|
+ <if test="activityMatchImg6 != null" >
|
|
83
|
+ activity_match_img6,
|
|
84
|
+ </if>
|
|
85
|
+ <if test="viewCount != null" >
|
|
86
|
+ view_count,
|
|
87
|
+ </if>
|
|
88
|
+ <if test="status != null" >
|
|
89
|
+ status,
|
|
90
|
+ </if>
|
|
91
|
+ <if test="type != null" >
|
|
92
|
+ type,
|
|
93
|
+ </if>
|
|
94
|
+ <if test="createUser != null" >
|
|
95
|
+ create_user,
|
|
96
|
+ </if>
|
|
97
|
+ <if test="createDate != null" >
|
|
98
|
+ create_date,
|
|
99
|
+ </if>
|
|
100
|
+ <if test="updateUser != null" >
|
|
101
|
+ update_user,
|
|
102
|
+ </if>
|
|
103
|
+ <if test="updateDate != null" >
|
|
104
|
+ update_date,
|
|
105
|
+ </if>
|
|
106
|
+ </trim>
|
|
107
|
+ <trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
108
|
+ <if test="id != null" >
|
|
109
|
+ #{id,jdbcType=INTEGER},
|
|
110
|
+ </if>
|
|
111
|
+ <if test="communityId != null" >
|
|
112
|
+ #{communityId,jdbcType=INTEGER},
|
|
113
|
+ </if>
|
|
114
|
+ <if test="taUserId != null" >
|
|
115
|
+ #{taUserId,jdbcType=INTEGER},
|
|
116
|
+ </if>
|
|
117
|
+ <if test="transactionTitle != null" >
|
|
118
|
+ #{transactionTitle,jdbcType=VARCHAR},
|
|
119
|
+ </if>
|
|
120
|
+ <if test="transactionContent != null" >
|
|
121
|
+ #{transactionContent,jdbcType=VARCHAR},
|
|
122
|
+ </if>
|
|
123
|
+ <if test="transactionMatchImg1 != null" >
|
|
124
|
+ #{transactionMatchImg1,jdbcType=VARCHAR},
|
|
125
|
+ </if>
|
|
126
|
+ <if test="activityMatchImg3 != null" >
|
|
127
|
+ #{activityMatchImg3,jdbcType=VARCHAR},
|
|
128
|
+ </if>
|
|
129
|
+ <if test="activityMatchImg4 != null" >
|
|
130
|
+ #{activityMatchImg4,jdbcType=VARCHAR},
|
|
131
|
+ </if>
|
|
132
|
+ <if test="activityMatchImg5 != null" >
|
|
133
|
+ #{activityMatchImg5,jdbcType=VARCHAR},
|
|
134
|
+ </if>
|
|
135
|
+ <if test="activityMatchImg6 != null" >
|
|
136
|
+ #{activityMatchImg6,jdbcType=VARCHAR},
|
|
137
|
+ </if>
|
|
138
|
+ <if test="viewCount != null" >
|
|
139
|
+ #{viewCount,jdbcType=INTEGER},
|
|
140
|
+ </if>
|
|
141
|
+ <if test="status != null" >
|
|
142
|
+ #{status,jdbcType=CHAR},
|
|
143
|
+ </if>
|
|
144
|
+ <if test="type != null" >
|
|
145
|
+ #{type,jdbcType=CHAR},
|
|
146
|
+ </if>
|
|
147
|
+ <if test="createUser != null" >
|
|
148
|
+ #{createUser,jdbcType=INTEGER},
|
|
149
|
+ </if>
|
|
150
|
+ <if test="createDate != null" >
|
|
151
|
+ #{createDate,jdbcType=TIMESTAMP},
|
|
152
|
+ </if>
|
|
153
|
+ <if test="updateUser != null" >
|
|
154
|
+ #{updateUser,jdbcType=INTEGER},
|
|
155
|
+ </if>
|
|
156
|
+ <if test="updateDate != null" >
|
|
157
|
+ #{updateDate,jdbcType=TIMESTAMP},
|
|
158
|
+ </if>
|
|
159
|
+ </trim>
|
|
160
|
+ </insert>
|
|
161
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.community.huiju.model.TpTransaction" >
|
|
162
|
+ update tp_transaction
|
|
163
|
+ <set >
|
|
164
|
+ <if test="communityId != null" >
|
|
165
|
+ community_id = #{communityId,jdbcType=INTEGER},
|
|
166
|
+ </if>
|
|
167
|
+ <if test="taUserId != null" >
|
|
168
|
+ ta_user_id = #{taUserId,jdbcType=INTEGER},
|
|
169
|
+ </if>
|
|
170
|
+ <if test="transactionTitle != null" >
|
|
171
|
+ transaction_title = #{transactionTitle,jdbcType=VARCHAR},
|
|
172
|
+ </if>
|
|
173
|
+ <if test="transactionContent != null" >
|
|
174
|
+ transaction_content = #{transactionContent,jdbcType=VARCHAR},
|
|
175
|
+ </if>
|
|
176
|
+ <if test="transactionMatchImg1 != null" >
|
|
177
|
+ transaction_match_img1 = #{transactionMatchImg1,jdbcType=VARCHAR},
|
|
178
|
+ </if>
|
|
179
|
+ <if test="activityMatchImg3 != null" >
|
|
180
|
+ activity_match_img3 = #{activityMatchImg3,jdbcType=VARCHAR},
|
|
181
|
+ </if>
|
|
182
|
+ <if test="activityMatchImg4 != null" >
|
|
183
|
+ activity_match_img4 = #{activityMatchImg4,jdbcType=VARCHAR},
|
|
184
|
+ </if>
|
|
185
|
+ <if test="activityMatchImg5 != null" >
|
|
186
|
+ activity_match_img5 = #{activityMatchImg5,jdbcType=VARCHAR},
|
|
187
|
+ </if>
|
|
188
|
+ <if test="activityMatchImg6 != null" >
|
|
189
|
+ activity_match_img6 = #{activityMatchImg6,jdbcType=VARCHAR},
|
|
190
|
+ </if>
|
|
191
|
+ <if test="viewCount != null" >
|
|
192
|
+ view_count = #{viewCount,jdbcType=INTEGER},
|
|
193
|
+ </if>
|
|
194
|
+ <if test="status != null" >
|
|
195
|
+ status = #{status,jdbcType=CHAR},
|
|
196
|
+ </if>
|
|
197
|
+ <if test="type != null" >
|
|
198
|
+ type = #{type,jdbcType=CHAR},
|
|
199
|
+ </if>
|
|
200
|
+ <if test="createUser != null" >
|
|
201
|
+ create_user = #{createUser,jdbcType=INTEGER},
|
|
202
|
+ </if>
|
|
203
|
+ <if test="createDate != null" >
|
|
204
|
+ create_date = #{createDate,jdbcType=TIMESTAMP},
|
|
205
|
+ </if>
|
|
206
|
+ <if test="updateUser != null" >
|
|
207
|
+ update_user = #{updateUser,jdbcType=INTEGER},
|
|
208
|
+ </if>
|
|
209
|
+ <if test="updateDate != null" >
|
|
210
|
+ update_date = #{updateDate,jdbcType=TIMESTAMP},
|
|
211
|
+ </if>
|
|
212
|
+ </set>
|
|
213
|
+ where id = #{id,jdbcType=INTEGER}
|
|
214
|
+ </update>
|
|
215
|
+ <update id="updateByPrimaryKey" parameterType="com.community.huiju.model.TpTransaction" >
|
|
216
|
+ update tp_transaction
|
|
217
|
+ set community_id = #{communityId,jdbcType=INTEGER},
|
|
218
|
+ ta_user_id = #{taUserId,jdbcType=INTEGER},
|
|
219
|
+ transaction_title = #{transactionTitle,jdbcType=VARCHAR},
|
|
220
|
+ transaction_content = #{transactionContent,jdbcType=VARCHAR},
|
|
221
|
+ transaction_match_img1 = #{transactionMatchImg1,jdbcType=VARCHAR},
|
|
222
|
+ activity_match_img3 = #{activityMatchImg3,jdbcType=VARCHAR},
|
|
223
|
+ activity_match_img4 = #{activityMatchImg4,jdbcType=VARCHAR},
|
|
224
|
+ activity_match_img5 = #{activityMatchImg5,jdbcType=VARCHAR},
|
|
225
|
+ activity_match_img6 = #{activityMatchImg6,jdbcType=VARCHAR},
|
|
226
|
+ view_count = #{viewCount,jdbcType=INTEGER},
|
|
227
|
+ status = #{status,jdbcType=CHAR},
|
|
228
|
+ type = #{type,jdbcType=CHAR},
|
|
229
|
+ create_user = #{createUser,jdbcType=INTEGER},
|
|
230
|
+ create_date = #{createDate,jdbcType=TIMESTAMP},
|
|
231
|
+ update_user = #{updateUser,jdbcType=INTEGER},
|
|
232
|
+ update_date = #{updateDate,jdbcType=TIMESTAMP}
|
|
233
|
+ where id = #{id,jdbcType=INTEGER}
|
|
234
|
+ </update>
|
|
235
|
+</mapper>
|