瀏覽代碼

日历房态计数统计脏房数量

wanxl 1 年之前
父節點
當前提交
a47542ea43
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/main/resources/mapper/template/HouseNumberMapper.xml

+ 2 - 1
src/main/resources/mapper/template/HouseNumberMapper.xml

@@ -146,9 +146,10 @@
             </if>
             <if test="flag==0">
                 AND hns.id is null
+                AND hn.house_status = 1
             </if>
             <if test="flag==1">
-                AND hns.id is not null
+                AND (hns.id is not null or hn.house_status = 2)
             </if>
 
             <if test="keyWord != null and keyWord != ''">