From 1be481c194be82f54a7fa4da4c0c7136faa05ab8 Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期三, 06 七月 2022 01:42:15 +0800
Subject: [PATCH] 增加首页功能

---
 java110-db/src/main/resources/mapper/user/OwnerV1ServiceDaoImplMapper.xml |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/java110-db/src/main/resources/mapper/user/OwnerV1ServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/user/OwnerV1ServiceDaoImplMapper.xml
index d93f3b5..26e55a0 100644
--- a/java110-db/src/main/resources/mapper/user/OwnerV1ServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/user/OwnerV1ServiceDaoImplMapper.xml
@@ -163,4 +163,23 @@
 
     </select>
 
+
+
+    <select id="queryOwnersBindCount" parameterType="Map" resultType="Map">
+        select count(DISTINCT t.member_id) from building_owner t
+        left join owner_app_user oau  on t.community_id = oau.community_id and t.member_id = oau.member_id and oau.status_cd = '0'
+        where t.status_cd = '0'
+        <if test="isBind == 'N'">
+        and oau.member_id is null
+        </if>
+        <if test="isBind == 'Y'">
+        and oau.member_id is not null
+        </if>
+        <if test="communityId !=null and communityId != ''">
+            and t.community_id= #{communityId}
+        </if>
+
+
+    </select>
+
 </mapper>

--
Gitblit v1.8.0