|
@@ -66,6 +66,7 @@
|
66
|
66
|
when d.`name` != null || d.name != '' then d.`name`
|
67
|
67
|
when e.building_name != null || e.building_name != '' then e.building_name
|
68
|
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
|
69
|
70
|
when a.`name` != null || a.`name` != '' then a.`name`
|
70
|
71
|
else '空'
|
71
|
72
|
end as shareTitle,
|
|
@@ -82,7 +83,7 @@
|
82
|
83
|
LEFT JOIN ta_drainage d on t.target_id = d.drainage_id and t.target_type = 'h5_share'
|
83
|
84
|
left join ta_building e on t.target_id = e.building_id and t.target_type = 'building_share'
|
84
|
85
|
LEFT JOIN ta_news f on t.target_id = f.news_id and t.target_type = 'news_share'
|
85
|
|
-
|
|
86
|
+ left join ta_sales_batch h on t.target_id = h.sales_batch_id and t.target_type = 'house_share'
|
86
|
87
|
LEFT JOIN ta_person a ON t.share_person = a.person_id
|
87
|
88
|
LEFT JOIN ta_person y on t.share_person = y.user_id
|
88
|
89
|
LEFT JOIN ta_person z ON t.person_id = z.person_id
|
|
@@ -104,6 +105,7 @@
|
104
|
105
|
e.building_name like CONCAT('%', #{shareTitle} , '%') or
|
105
|
106
|
f.news_name like CONCAT('%', #{shareTitle} , '%') or
|
106
|
107
|
a.`name` like CONCAT('%', #{shareTitle} , '%')
|
|
108
|
+ h.sales_batch_name like like CONCAT('%', #{shareTitle} , '%')
|
107
|
109
|
)
|
108
|
110
|
</if>
|
109
|
111
|
GROUP BY
|