|
@@ -3,21 +3,21 @@
|
3
|
3
|
<mapper namespace="com.huiju.estateagents.activity.mapper.ActivityMapper">
|
4
|
4
|
|
5
|
5
|
<select id="getActivityList" resultType="com.huiju.estateagents.activity.entity.Activity">
|
6
|
|
- SELECT dynamic_id as id,img_url as main_img,title,start_date as start_date,enlist_end as end_date,weight,activity_status,'dynamic' as type
|
|
6
|
+ SELECT dynamic_id as id,list_img_url as main_img,title,start_date as start_date,enlist_end as end_date,weight,activity_status,'dynamic' as type
|
7
|
7
|
FROM ta_building_dynamic
|
8
|
8
|
WHERE org_id = #{orgId} and `status` = #{status}
|
9
|
9
|
<if test="cityId != null and cityId != ''">
|
10
|
10
|
and city_id = #{cityId}
|
11
|
11
|
</if>
|
12
|
12
|
UNION all
|
13
|
|
- SELECT group_activity_id as id,main_img,activity_name as title,start_time as start_date,end_time as end_date,weight,activity_status,'group' as type
|
|
13
|
+ SELECT group_activity_id as id,list_img as main_img,activity_name as title,start_time as start_date,end_time as end_date,weight,activity_status,'group' as type
|
14
|
14
|
from ta_share_activity
|
15
|
15
|
WHERE org_id = #{orgId} and `status` = #{status}
|
16
|
16
|
<if test="cityId != null and cityId != ''">
|
17
|
17
|
and city_id = #{cityId}
|
18
|
18
|
</if>
|
19
|
19
|
UNION all
|
20
|
|
- SELECT help_activity_id as id,img as main_img,title,start_date,end_date,weight,activity_status,'help' as type
|
|
20
|
+ SELECT help_activity_id as id,list_img as main_img,title,start_date,end_date,weight,activity_status,'help' as type
|
21
|
21
|
from ta_help_activity
|
22
|
22
|
WHERE org_id = #{orgId} and `status` = #{status}
|
23
|
23
|
<if test="cityId != null and cityId != ''">
|
|
@@ -31,7 +31,7 @@
|
31
|
31
|
t.dynamic_id AS activityId,
|
32
|
32
|
t.create_date AS createDate,
|
33
|
33
|
IF( t.is_checkin = 1, "已签到", "未签到" ) AS `status`,
|
34
|
|
- d.img_url AS mainImg,
|
|
34
|
+ d.list_img_url AS mainImg,
|
35
|
35
|
d.title,
|
36
|
36
|
d.start_date AS startDate,
|
37
|
37
|
d.enlist_end AS endDate,
|
|
@@ -59,7 +59,7 @@
|
59
|
59
|
WHEN t.STATUS = 2 THEN
|
60
|
60
|
"失败"
|
61
|
61
|
END `status`,
|
62
|
|
- d.main_img AS mainImg,
|
|
62
|
+ d.list_img AS mainImg,
|
63
|
63
|
d.activity_name AS title,
|
64
|
64
|
d.start_time AS startDate,
|
65
|
65
|
d.end_time AS endDate,
|
|
@@ -87,7 +87,7 @@
|
87
|
87
|
WHEN t.STATUS = 2 THEN
|
88
|
88
|
"失败"
|
89
|
89
|
END `status`,
|
90
|
|
- d.img AS mainImg,
|
|
90
|
+ d.list_img AS mainImg,
|
91
|
91
|
d.title,
|
92
|
92
|
d.start_date AS startDate,
|
93
|
93
|
d.end_date AS endDate,
|