|
@@ -267,7 +267,7 @@ FROM
|
267
|
267
|
<if test="consultTel != null and consultTel !=''">
|
268
|
268
|
and b.tel like CONCAT('%',#{consultTel}, '%')
|
269
|
269
|
</if>
|
270
|
|
- and NOT EXISTS ( select * from ta_recommend_customer a where a.recommend_person = b.person_id)
|
|
270
|
+ and NOT EXISTS ( select * from ta_recommend_customer a where a.org_id = #{orgId} and a.recommend_person = b.person_id)
|
271
|
271
|
</where>
|
272
|
272
|
order by b.create_date desc
|
273
|
273
|
</select>
|
|
@@ -515,7 +515,7 @@ FROM
|
515
|
515
|
<if test="consultTel != null and consultTel !=''">
|
516
|
516
|
and b.tel like CONCAT('%',#{consultTel}, '%')
|
517
|
517
|
</if>
|
518
|
|
- and NOT EXISTS ( select * from ta_recommend_customer a where a.recommend_person = b.person_id)
|
|
518
|
+ and NOT EXISTS ( select * from ta_recommend_customer a where a.org_id = #{orgId} and a.recommend_person = b.person_id)
|
519
|
519
|
</where>
|
520
|
520
|
order by b.create_date desc
|
521
|
521
|
</select>
|