소스 검색

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

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 != ''">