Browse Source

Merge branch 'master' of http://git.ycjcjy.com/zhiyuxing/estateagents

weichaochao 5 years ago
parent
commit
c498b217ba
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/main/resources/mapper/TaRecommendCustomerMapper.xml

+ 2
- 2
src/main/resources/mapper/TaRecommendCustomerMapper.xml View File

@@ -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>