|
@@ -547,7 +547,7 @@ FROM
|
547
|
547
|
<if test="consultTel != null and consultTel !=''">
|
548
|
548
|
and b.tel like CONCAT('%',#{consultTel}, '%')
|
549
|
549
|
</if>
|
550
|
|
- and NOT EXISTS ( select * from ta_recommend_customer a where a.recommend_person = b.person_id)
|
|
550
|
+ and NOT EXISTS ( select * from ta_recommend_customer a where a.org_id = #{orgId} and a.recommend_person = b.person_id)
|
551
|
551
|
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 != '' )
|
552
|
552
|
</where>
|
553
|
553
|
order by b.create_date desc
|