瀏覽代碼

修改sql

魏超 5 年之前
父節點
當前提交
315842280a
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      src/main/resources/mapper/TaRecommendCustomerMapper.xml

+ 1
- 1
src/main/resources/mapper/TaRecommendCustomerMapper.xml 查看文件

230
             b.status > 0
230
             b.status > 0
231
             and b.org_id = #{orgId}
231
             and b.org_id = #{orgId}
232
             AND IFNULL(b.person_type, '') in ('estate agent', 'customer')
232
             AND IFNULL(b.person_type, '') in ('estate agent', 'customer')
233
-            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 = ''  )
233
+            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 != ''  )
234
             <if test="name != null and name !=''">
234
             <if test="name != null and name !=''">
235
                 and b.nickname like CONCAT('%',#{name}, '%')
235
                 and b.nickname like CONCAT('%',#{name}, '%')
236
             </if>
236
             </if>