|
@@ -21,12 +21,14 @@
|
21
|
21
|
<result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
|
22
|
22
|
<result column="update_user" property="updateUser" jdbcType="INTEGER" />
|
23
|
23
|
<result column="update_date" property="updateDate" jdbcType="TIMESTAMP" />
|
|
24
|
+ <result column="sign_in_code" property="signInCode" jdbcType="VARCHAR" />
|
|
25
|
+
|
24
|
26
|
</resultMap>
|
25
|
27
|
<sql id="Base_Column_List" >
|
26
|
28
|
id, community_id, activity_title, activity_carousel_img, activity_content, sort,
|
27
|
29
|
sign_up_count, sign_up_max, view_count, registration_start_time, registration_end_time,
|
28
|
30
|
activity_start_time, activity_end_time, status, create_user, create_date, update_user,
|
29
|
|
- update_date
|
|
31
|
+ update_date,sign_in_code
|
30
|
32
|
</sql>
|
31
|
33
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap">
|
32
|
34
|
select
|
|
@@ -45,14 +47,14 @@
|
45
|
47
|
registration_start_time, registration_end_time,
|
46
|
48
|
activity_start_time, activity_end_time,
|
47
|
49
|
status, create_user, create_date,
|
48
|
|
- update_user, update_date)
|
|
50
|
+ update_user, update_date,sign_in_code,sign_in_code,sign_in_code)
|
49
|
51
|
values (#{id,jdbcType=INTEGER}, #{communityId,jdbcType=INTEGER}, #{activityTitle,jdbcType=VARCHAR},
|
50
|
52
|
#{activityCarouselImg,jdbcType=VARCHAR}, #{activityContent,jdbcType=LONGVARCHAR}, #{sort,jdbcType=INTEGER},
|
51
|
53
|
#{signUpCount,jdbcType=INTEGER}, #{signUpMax,jdbcType=INTEGER}, #{viewCount,jdbcType=INTEGER},
|
52
|
54
|
#{registrationStartTime,jdbcType=TIMESTAMP}, #{registrationEndTime,jdbcType=TIMESTAMP},
|
53
|
55
|
#{activityStartTime,jdbcType=TIMESTAMP}, #{activityEndTime,jdbcType=TIMESTAMP},
|
54
|
56
|
#{status,jdbcType=CHAR}, #{createUser,jdbcType=INTEGER}, #{createDate,jdbcType=TIMESTAMP},
|
55
|
|
- #{updateUser,jdbcType=INTEGER}, #{updateDate,jdbcType=TIMESTAMP})
|
|
57
|
+ #{updateUser,jdbcType=INTEGER}, #{updateDate,jdbcType=TIMESTAMP},#{signInCode,jdbcType=TIMESTAMP})
|
56
|
58
|
</insert>
|
57
|
59
|
<insert id="insertSelective" parameterType="com.community.huiju.model.TpActivity" >
|
58
|
60
|
insert into tp_activity
|
|
@@ -111,6 +113,9 @@
|
111
|
113
|
<if test="updateDate != null" >
|
112
|
114
|
update_date,
|
113
|
115
|
</if>
|
|
116
|
+ <if test="signInCode != null" >
|
|
117
|
+ sign_in_code
|
|
118
|
+ </if>
|
114
|
119
|
</trim>
|
115
|
120
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
116
|
121
|
<if test="id != null" >
|
|
@@ -167,6 +172,9 @@
|
167
|
172
|
<if test="updateDate != null" >
|
168
|
173
|
#{updateDate,jdbcType=TIMESTAMP},
|
169
|
174
|
</if>
|
|
175
|
+ <if test="signInCode != null" >
|
|
176
|
+ #{signInCode,jdbcType=VARCHAR},
|
|
177
|
+ </if>
|
170
|
178
|
</trim>
|
171
|
179
|
</insert>
|
172
|
180
|
<update id="updateByPrimaryKeySelective" parameterType="com.community.huiju.model.TpActivity" >
|
|
@@ -223,6 +231,9 @@
|
223
|
231
|
<if test="updateDate != null" >
|
224
|
232
|
update_date = #{updateDate,jdbcType=TIMESTAMP},
|
225
|
233
|
</if>
|
|
234
|
+ <if test="signInCode != null" >
|
|
235
|
+ sign_in_code = #{signInCode,jdbcType=VARCHAR}
|
|
236
|
+ </if>
|
226
|
237
|
</set>
|
227
|
238
|
where id = #{id,jdbcType=INTEGER}
|
228
|
239
|
</update>
|
|
@@ -244,7 +255,8 @@
|
244
|
255
|
create_user = #{createUser,jdbcType=INTEGER},
|
245
|
256
|
create_date = #{createDate,jdbcType=TIMESTAMP},
|
246
|
257
|
update_user = #{updateUser,jdbcType=INTEGER},
|
247
|
|
- update_date = #{updateDate,jdbcType=TIMESTAMP}
|
|
258
|
+ update_date = #{updateDate,jdbcType=TIMESTAMP},
|
|
259
|
+ sign_in_code = #{signInCode,jdbcType=VARCHAR}
|
248
|
260
|
where id = #{id,jdbcType=INTEGER}
|
249
|
261
|
</update>
|
250
|
262
|
|
|
@@ -290,4 +302,7 @@
|
290
|
302
|
AND tr.community_id =#{communityId}
|
291
|
303
|
order by a.create_date desc
|
292
|
304
|
</select>
|
|
305
|
+ <select id="selectActivity" resultMap="BaseResultMap">
|
|
306
|
+ select * from tp_activity where id = #{activityId}
|
|
307
|
+ </select>
|
293
|
308
|
</mapper>
|