张延森 5 anos atrás
pai
commit
9bc5057322

+ 2
- 2
src/main/resources/mapper/TaRecommendCustomerMapper.xml Ver arquivo

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