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