|
@@ -131,6 +131,7 @@
|
131
|
131
|
b.drainage_id
|
132
|
132
|
from ta_person_visit_record t
|
133
|
133
|
left join ta_drainage b on t.target_id = b.drainage_id
|
|
134
|
+ left join ta_person c on t.share_person_id = c.person_id
|
134
|
135
|
where
|
135
|
136
|
t.event_type = 'h5'
|
136
|
137
|
and t.share_person_id is not null
|
|
@@ -144,10 +145,10 @@
|
144
|
145
|
and b.name like concat('%',#{activityName},'%')
|
145
|
146
|
</if>
|
146
|
147
|
<if test="shareName !=null and shareName != ''">
|
147
|
|
- and t.data like concat('%',#{shareName},'%')
|
|
148
|
+ and c.nickname like concat('%',#{shareName},'%')
|
148
|
149
|
</if>
|
149
|
150
|
<if test="shareTel !=null and shareTel != ''">
|
150
|
|
- and t.data like concat('%',#{shareTel},'%')
|
|
151
|
+ and c.phone = #{shareTel}
|
151
|
152
|
</if>
|
152
|
153
|
group by t.person_id, t.share_person_id
|
153
|
154
|
order by t.visit_time desc
|