瀏覽代碼

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

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

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

@@ -309,6 +309,9 @@ FROM
309 309
             <if test="belongStatus == 0">
310 310
                 and (t.building_id = ''  OR t.building_id is null )
311 311
             </if>
312
+            <if test="belongStatus == 1">
313
+                and t.building_id is not null
314
+            </if>
312 315
         </where>
313 316
         order by t.create_date desc
314 317
     </select>
@@ -581,7 +584,7 @@ FROM
581 584
         t.create_date,
582 585
         concat( t.country, t.province ) AS province,
583 586
         t.intention,
584
-        IF(t.building_id = null or t.building_id = '','否','是') AS belongStatus,
587
+        IF(t.building_id is null or t.building_id = '','否','是') AS belongStatus,
585 588
         IFNULL( t2.building_name, '暂无' ) AS buildingName,
586 589
         t5.scene_alias as sceneType,
587 590
         ifnull( t3.nickname, t3.NAME ) AS sharePersonName ,
@@ -631,6 +634,9 @@ FROM
631 634
         <if test="belongStatus == 0">
632 635
             and (t.building_id = ''  OR t.building_id is null )
633 636
         </if>
637
+        <if test="belongStatus == 1">
638
+            and t.building_id is not null
639
+        </if>
634 640
         order by t.create_date desc
635 641
     </select>
636 642
     <!--    limit #{pageCode}, #{pageSize}-->