소스 검색

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

weichaochao 5 년 전
부모
커밋
c498b217ba
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2
    2
      src/main/resources/mapper/TaRecommendCustomerMapper.xml

+ 2
- 2
src/main/resources/mapper/TaRecommendCustomerMapper.xml 파일 보기

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