|
@@ -18,14 +18,14 @@
|
18
|
18
|
select
|
19
|
19
|
|
20
|
20
|
case
|
21
|
|
- when a.title != null || a.title != '' then a.title
|
22
|
|
- when b.title != null || b.title != '' then b.title
|
23
|
|
- when c.activity_name != null || c.activity_name != '' then c.activity_name
|
24
|
|
- when d.`name` != null || d.name != '' then d.`name`
|
25
|
|
- when e.building_name != null || e.building_name != '' then e.building_name
|
26
|
|
- when f.news_name != null || f.news_name != '' then f.news_name
|
27
|
|
- when g.`name` != null || g.`name` != '' then g.`name`
|
28
|
|
- when h.sales_batch_name != null || h.sales_batch_name != '' then h.sales_batch_name
|
|
21
|
+ when a.title != null or a.title != '' then a.title
|
|
22
|
+ when b.title != null or b.title != '' then b.title
|
|
23
|
+ when c.activity_name != null or c.activity_name != '' then c.activity_name
|
|
24
|
+ when d.`name` != null or d.name != '' then d.`name`
|
|
25
|
+ when e.building_name != null or e.building_name != '' then e.building_name
|
|
26
|
+ when f.news_name != null or f.news_name != '' then f.news_name
|
|
27
|
+ when g.`name` != null or g.`name` != '' then g.`name`
|
|
28
|
+ when h.sales_batch_name != null or h.sales_batch_name != '' then h.sales_batch_name
|
29
|
29
|
else '空'
|
30
|
30
|
end as shareTitle,t.create_date
|
31
|
31
|
from ta_share_count t
|
|
@@ -39,7 +39,7 @@
|
39
|
39
|
left JOIN ta_person g on t.be_share = g.person_id and t.tagert_type = 'consultant'
|
40
|
40
|
where t.person_id = #{personId}
|
41
|
41
|
<if test="shareType != null and shareType != ''">
|
42
|
|
- and (t.tagert_type = #{shareType} || t.tagert_type like CONCAT(#{shareType} , '%'))
|
|
42
|
+ and (t.tagert_type = #{shareType} or t.tagert_type like CONCAT(#{shareType} , '%'))
|
43
|
43
|
</if>
|
44
|
44
|
<if test="shareTitle != null and shareTitle != ''">
|
45
|
45
|
and
|
|
@@ -60,14 +60,14 @@
|
60
|
60
|
<select id="selectClickListByParams" resultType="com.yunzhi.marketing.entity.TaShareCount">
|
61
|
61
|
SELECT
|
62
|
62
|
case
|
63
|
|
- when g.title != null || g.title != '' then g.title
|
64
|
|
- when b.title != null || b.title != '' then b.title
|
65
|
|
- when c.activity_name != null || c.activity_name != '' then c.activity_name
|
66
|
|
- when d.`name` != null || d.name != '' then d.`name`
|
67
|
|
- when e.building_name != null || e.building_name != '' then e.building_name
|
68
|
|
- when f.news_name != null || f.news_name != '' then f.news_name
|
69
|
|
- when h.sales_batch_name != null || h.sales_batch_name !='' then h.sales_batch_name
|
70
|
|
- WHEN y.`name` != NULL || y.`name` != '' THEN y.`name`
|
|
63
|
+ when g.title != null or g.title != '' then g.title
|
|
64
|
+ when b.title != null or b.title != '' then b.title
|
|
65
|
+ when c.activity_name != null or c.activity_name != '' then c.activity_name
|
|
66
|
+ when d.`name` != null or d.name != '' then d.`name`
|
|
67
|
+ when e.building_name != null or e.building_name != '' then e.building_name
|
|
68
|
+ when f.news_name != null or f.news_name != '' then f.news_name
|
|
69
|
+ when h.sales_batch_name != null or h.sales_batch_name !='' then h.sales_batch_name
|
|
70
|
+ WHEN y.`name` != NULL or y.`name` != '' THEN y.`name`
|
71
|
71
|
else '空'
|
72
|
72
|
end as shareTitle,
|
73
|
73
|
z.phone as personPhone,
|