|
|
|
|
267
|
<if test="consultTel != null and consultTel !=''">
|
267
|
<if test="consultTel != null and consultTel !=''">
|
268
|
and b.tel like CONCAT('%',#{consultTel}, '%')
|
268
|
and b.tel like CONCAT('%',#{consultTel}, '%')
|
269
|
</if>
|
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
|
</where>
|
271
|
</where>
|
272
|
order by b.create_date desc
|
272
|
order by b.create_date desc
|
273
|
</select>
|
273
|
</select>
|
|
|
|
|
515
|
<if test="consultTel != null and consultTel !=''">
|
515
|
<if test="consultTel != null and consultTel !=''">
|
516
|
and b.tel like CONCAT('%',#{consultTel}, '%')
|
516
|
and b.tel like CONCAT('%',#{consultTel}, '%')
|
517
|
</if>
|
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
|
</where>
|
519
|
</where>
|
520
|
order by b.create_date desc
|
520
|
order by b.create_date desc
|
521
|
</select>
|
521
|
</select>
|