傅行帆 il y a 5 ans
Parent
révision
6c8465d2f4
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      src/main/resources/mapper/TaRecommendCustomerMapper.xml

+ 1
- 1
src/main/resources/mapper/TaRecommendCustomerMapper.xml Voir le fichier

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