|
@@ -242,11 +242,12 @@
|
|
|
|
|
|
|
|
<!-- 查询小区单元信息 add by wuxw 2018-07-03 -->
|
|
<!-- 查询小区单元信息 add by wuxw 2018-07-03 -->
|
|
|
<select id="queryFloorAndUnits" parameterType="Map" resultType="Map">
|
|
<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
|
|
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
|
|
from f_floor t
|
|
|
left join building_unit bu on t.`floor_id` = bu.`floor_id` and bu.status_cd = '0'
|
|
left join building_unit bu on t.`floor_id` = bu.`floor_id` and bu.status_cd = '0'
|
|
|
where 1 =1
|
|
where 1 =1
|
|
|
|
|
+ and t.status_cd = '0'
|
|
|
<if test="communityId!=null and communityId != ''">
|
|
<if test="communityId!=null and communityId != ''">
|
|
|
AND t.community_id = #{communityId}
|
|
AND t.community_id = #{communityId}
|
|
|
</if>
|
|
</if>
|