wuxw лет назад: 3
Родитель
Сommit
1085d3b4c3

+ 2 - 1
java110-db/src/main/resources/mapper/community/FloorServiceDaoImplMapper.xml

@@ -242,11 +242,12 @@
 
     <!-- 查询小区单元信息 add by wuxw 2018-07-03 -->
     <select id="queryFloorAndUnits" parameterType="Map" resultType="Map">
-        select bu.floor_id,bu.floor_id floorId,bu.layer_count,bu.layer_count layerCount,bu.unit_id,bu.unit_id
+        select t.floor_id,t.floor_id floorId,bu.layer_count,bu.layer_count layerCount,bu.unit_id,bu.unit_id
         unitId,bu.unit_num,bu.unit_num unitNum,bu.lift,bu.remark,bu.unit_area,bu.unit_area unitArea,t.floor_num floorNum
         from f_floor t
         left join building_unit bu on t.`floor_id` = bu.`floor_id` and bu.status_cd = '0'
         where 1 =1
+        and t.status_cd = '0'
         <if test="communityId!=null and communityId != ''">
             AND t.community_id = #{communityId}
         </if>