From 05683f2b2bdbdbe21cf17ad523c21ab338bd1c54 Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期二, 19 七月 2022 21:49:55 +0800
Subject: [PATCH] 优化添加设备 功能
---
java110-db/src/main/resources/mapper/user/OwnerV1ServiceDaoImplMapper.xml | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/user/OwnerV1ServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/user/OwnerV1ServiceDaoImplMapper.xml
index 26e55a0..13b3c23 100644
--- a/java110-db/src/main/resources/mapper/user/OwnerV1ServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/user/OwnerV1ServiceDaoImplMapper.xml
@@ -166,13 +166,13 @@
<select id="queryOwnersBindCount" parameterType="Map" resultType="Map">
- select count(DISTINCT t.member_id) from building_owner t
+ select count(DISTINCT t.member_id) count 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'">
+ <if test='isBind == "N"'>
and oau.member_id is null
</if>
- <if test="isBind == 'Y'">
+ <if test='isBind == "Y"'>
and oau.member_id is not null
</if>
<if test="communityId !=null and communityId != ''">
--
Gitblit v1.8.0