浏览代码

* bug fix

顾绍勇 5 年前
父节点
当前提交
b5c8796f3f
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. 7
    1
      src/main/resources/mapper/TaRecommendCustomerMapper.xml

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

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