浏览代码

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
             <if test="consultTel != null and consultTel !=''">
267
             <if test="consultTel != null and consultTel !=''">
268
                 and b.tel like CONCAT('%',#{consultTel}, '%')
268
                 and b.tel like CONCAT('%',#{consultTel}, '%')
269
             </if>
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
         </where>
271
         </where>
272
         order by b.create_date desc
272
         order by b.create_date desc
273
     </select>
273
     </select>
515
             <if test="consultTel != null and consultTel !=''">
515
             <if test="consultTel != null and consultTel !=''">
516
                 and b.tel like CONCAT('%',#{consultTel}, '%')
516
                 and b.tel like CONCAT('%',#{consultTel}, '%')
517
             </if>
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
         </where>
519
         </where>
520
         order by b.create_date desc
520
         order by b.create_date desc
521
     </select>
521
     </select>