From 745d27feae34022ccb708aba034123e08e4e9e14 Mon Sep 17 00:00:00 2001
From: 1098226878@qq.com <1098226878@qq.com>
Date: 星期二, 28 十二月 2021 22:21:16 +0800
Subject: [PATCH] Merge branch 'master' of http://git.homecommunity.cn/supervip/MicroCommunity

---
 java110-db/src/main/resources/mapper/community/FloorV1ServiceDaoImplMapper.xml |   17 +++++++++++------
 1 files changed, 11 insertions(+), 6 deletions(-)

diff --git a/java110-db/src/main/resources/mapper/community/FloorV1ServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/community/FloorV1ServiceDaoImplMapper.xml
index a8f5d4e..dd4aeb3 100644
--- a/java110-db/src/main/resources/mapper/community/FloorV1ServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/community/FloorV1ServiceDaoImplMapper.xml
@@ -21,9 +21,12 @@
 
     <!-- 鏌ヨ妤兼爧淇℃伅 add by wuxw 2018-07-03 -->
     <select id="getFloorInfo" parameterType="Map" resultType="Map">
-        select  t.floor_id,t.floor_id floorId,t.name,t.remark,t.b_id,t.b_id bId,t.community_id,t.community_id communityId,t.user_id,t.user_id userId,t.floor_num,t.floor_num floorNum,t.floor_area,t.floor_area floorArea 
-from f_floor t 
-where 1 =1 
+        select  t.floor_id,t.floor_id floorId,t.name floorName,t.remark,t.b_id,t.b_id bId,t.community_id,t.community_id communityId,t.user_id,t.user_id userId,t3.name userName,
+        t.floor_num,t.floor_num floorNum,t.floor_area,t.floor_area floorArea
+        from f_floor t
+        LEFT JOIN f_floor_attr t2 on t.floor_id = t2.floor_id
+        LEFT JOIN u_user t3 on t.user_id = t3.user_id and t3.status_cd = 0
+        where t2.spec_cd='100201912001' and t2.value='8008' and t.status_cd=0
 <if test="floorId !=null and floorId != ''">
    and t.floor_id= #{floorId}
 </if> 
@@ -93,9 +96,11 @@
 
     <!-- 鏌ヨ妤兼爧鏁伴噺 add by wuxw 2018-07-03 -->
      <select id="queryFloorsCount" parameterType="Map" resultType="Map">
-        select  count(1) count 
-from f_floor t 
-where 1 =1 
+        select  count(1) count
+         from f_floor t
+         LEFT JOIN f_floor_attr t2 on t.floor_id = t2.floor_id
+         LEFT JOIN u_user t3 on t.user_id = t3.user_id and t3.status_cd = 0
+         where t2.spec_cd='100201912001' and t2.value='8008' and t.status_cd=0
 <if test="floorId !=null and floorId != ''">
    and t.floor_id= #{floorId}
 </if> 

--
Gitblit v1.8.0