张延森 il y a 5 ans
Parent
révision
9bc5057322
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2
    2
      src/main/resources/mapper/TaRecommendCustomerMapper.xml

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

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