From 73887da1c95e54971951a40421980eb15296caab Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Wed, 20 Dec 2023 15:28:53 +0800
Subject: [PATCH] 统计接口优化

---
 src/main/java/org/springblade/modules/house/mapper/HouseMapper.xml |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/main/java/org/springblade/modules/house/mapper/HouseMapper.xml b/src/main/java/org/springblade/modules/house/mapper/HouseMapper.xml
index 7687b4a..4bd2647 100644
--- a/src/main/java/org/springblade/modules/house/mapper/HouseMapper.xml
+++ b/src/main/java/org/springblade/modules/house/mapper/HouseMapper.xml
@@ -305,12 +305,14 @@
         WHERE
         jda.nei_code = #{code}
         AND jh.is_deleted = 0
+
         <if test="buildingCode != null  and buildingCode != ''">
             and jda.building_code=#{buildingCode}
         </if>
 
         <if test="uniCode != null  and uniCode != ''">
             and jda.unit_code=#{uniCode}
+            AND jda.unit_code is not null
         </if>
 
         <if test="aoiCode != null  and aoiCode != ''">
@@ -349,6 +351,7 @@
 
         <if test="uniCode != null  and uniCode != ''">
             and jda.unit_code=#{uniCode}
+            AND jda.unit_code is not null
         </if>
 
         <if test="aoiCode != null  and aoiCode != ''">

--
Gitblit v1.9.3