|
@@ -230,7 +230,7 @@ FROM
|
230
|
230
|
b.status > 0
|
231
|
231
|
and b.org_id = #{orgId}
|
232
|
232
|
AND IFNULL(b.person_type, '') in ('estate agent', 'customer')
|
233
|
|
- AND b.person_id not IN ( SELECT c.person_id FROM ta_recommend_customer c WHERE c.org_id = #{orgId} AND person_id is not null AND person_id != '' )
|
|
233
|
+ AND b.person_id not IN ( SELECT c.person_id FROM ta_recommend_customer c WHERE c.org_id = #{orgId} AND person_id is not null AND person_id != '' )
|
234
|
234
|
<if test="name != null and name !=''">
|
235
|
235
|
and b.nickname like CONCAT('%',#{name}, '%')
|
236
|
236
|
</if>
|