|
@@ -22,7 +22,8 @@
|
22
|
22
|
<result column="update_user" property="updateUser" jdbcType="INTEGER" />
|
23
|
23
|
<result column="update_date" property="updateDate" jdbcType="TIMESTAMP" />
|
24
|
24
|
<result column="sign_in_code" property="signInCode" jdbcType="VARCHAR" />
|
25
|
|
-
|
|
25
|
+ <result column="userRole" property="userRole"/>
|
|
26
|
+ <result column="userName" property="userName"/>
|
26
|
27
|
</resultMap>
|
27
|
28
|
<sql id="Base_Column_List" >
|
28
|
29
|
id, community_id, activity_title, activity_carousel_img, activity_content, sort,
|
|
@@ -295,9 +296,13 @@
|
295
|
296
|
</select>
|
296
|
297
|
|
297
|
298
|
<select id="selecttpActivity" resultMap="BaseResultMap">
|
298
|
|
- SELECT * FROM
|
|
299
|
+ SELECT
|
|
300
|
+ a.*,
|
|
301
|
+ tu.user_name as userName
|
|
302
|
+ FROM
|
299
|
303
|
tp_activity a
|
300
|
304
|
LEFT JOIN tp_activity_sign_up tr ON tr.activity_id = a.id
|
|
305
|
+ LEFT JOIN tp_user tu ON a.create_user = tu.id
|
301
|
306
|
WHERE tr.ta_user_id = #{id}
|
302
|
307
|
AND tr.community_id =#{communityId}
|
303
|
308
|
order by a.create_date desc
|