| | |
| | | <!-- 查询小区房屋数量 add by wuxw 2018-07-03 --> |
| | | <select id="queryRoomsByCommunityIdCount" parameterType="Map" resultType="Map"> |
| | | select count(1) count |
| | | FROM building_room t,s_community c,s_community_member cm,building_unit u,f_floor f |
| | | FROM building_room t,building_unit u,f_floor f |
| | | WHERE 1 =1 |
| | | AND t.`unit_id` = u.`unit_id` |
| | | AND u.`floor_id` = f.`floor_id` |
| | | AND f.`floor_id` = cm.`member_id` |
| | | AND cm.`community_id` = c.`community_id` |
| | | AND cm.`member_type_cd` = '390001200004' |
| | | AND c.`status_cd` = '0' |
| | | AND cm.`status_cd` = '0' |
| | | AND f.`community_id` = t.`community_id` |
| | | AND u.`status_cd` = '0' |
| | | AND f.`status_cd` = '0' |
| | | AND c.`community_id` = #{communityId} |
| | | AND t.`community_id` = #{communityId} |
| | | <if test="floorId !=null and floorId != ''"> |
| | | and f.`floor_id`= #{floorId} |
| | | </if> |
| | |
| | | count(1) count |
| | | FROM |
| | | building_room t, |
| | | s_community c, |
| | | s_community_member cm, |
| | | building_unit u, |
| | | f_floor f |
| | | WHERE 1 =1 |
| | | AND t.`unit_id` = u.`unit_id` |
| | | AND u.`floor_id` = f.`floor_id` |
| | | AND f.`floor_id` = cm.`member_id` |
| | | AND cm.`community_id` = c.`community_id` |
| | | AND cm.`member_type_cd` = '390001200004' |
| | | AND c.`status_cd` = '0' |
| | | AND cm.`status_cd` = '0' |
| | | AND f.`community_id` = t.`community_id` |
| | | AND u.`status_cd` = '0' |
| | | AND f.`status_cd` = '0' |
| | | AND c.`community_id` = #{communityId} |
| | | AND t.`community_id` = #{communityId} |
| | | <if test="floorId !=null and floorId != ''"> |
| | | and f.`floor_id`= #{floorId} |
| | | </if> |
| | |
| | | count(1) count |
| | | FROM |
| | | building_room t, |
| | | s_community c, |
| | | s_community_member cm, |
| | | building_unit u, |
| | | f_floor f |
| | | WHERE 1 =1 |
| | | AND t.`unit_id` = u.`unit_id` |
| | | AND u.`floor_id` = f.`floor_id` |
| | | AND f.`floor_id` = cm.`member_id` |
| | | AND cm.`community_id` = c.`community_id` |
| | | AND cm.`member_type_cd` = '390001200004' |
| | | AND c.`status_cd` = '0' |
| | | AND cm.`status_cd` = '0' |
| | | AND f.`community_id` = t.`community_id` |
| | | AND u.`status_cd` = '0' |
| | | AND f.`status_cd` = '0' |
| | | AND c.`community_id` = #{communityId} |
| | | AND t.`community_id` = #{communityId} |
| | | <if test="floorId !=null and floorId != ''"> |
| | | and f.`floor_id`= #{floorId} |
| | | </if> |
| | |
| | | SELECT t.unit_price,t.unit_price unitPrice,t.section,t.status_cd,t.status_cd statusCd,t.remark,t.user_id, |
| | | t.user_id userId,t.room_id,t.room_id roomId,t.layer,t.built_up_area,t.built_up_area builtUpArea,t.room_num, |
| | | t.room_num roomNum,t.unit_id,t.unit_id unitId,t.b_id,t.b_id bId,t.apartment,t.state,u.`unit_num` unitNum |
| | | FROM building_room t,s_community c,s_community_member cm,building_unit u,f_floor f |
| | | FROM building_room t,building_unit u,f_floor f |
| | | WHERE 1 =1 |
| | | AND t.`unit_id` = u.`unit_id` |
| | | AND u.`floor_id` = f.`floor_id` |
| | | AND f.`floor_id` = cm.`member_id` |
| | | AND cm.`community_id` = c.`community_id` |
| | | AND cm.`member_type_cd` = '390001200004' |
| | | AND c.`status_cd` = '0' |
| | | AND cm.`status_cd` = '0' |
| | | AND f.`community_id` = t.`community_id` |
| | | AND u.`status_cd` = '0' |
| | | AND f.`status_cd` = '0' |
| | | AND c.`community_id` = #{communityId} |
| | | AND t.`community_id` = #{communityId} |
| | | <if test="floorId !=null and floorId != ''"> |
| | | and f.`floor_id`= #{floorId} |
| | | </if> |
| | |
| | | SELECT t.unit_price,t.unit_price unitPrice,t.section,t.status_cd,t.status_cd statusCd,t.remark,t.user_id, |
| | | t.user_id userId,t.room_id,t.room_id roomId,t.layer,t.built_up_area,t.built_up_area builtUpArea,t.room_num, |
| | | t.room_num roomNum,t.unit_id,t.unit_id unitId,t.b_id,t.b_id bId,t.apartment,t.state,u.`unit_num` unitNum |
| | | FROM building_room t,s_community c,s_community_member cm,building_unit u,f_floor f |
| | | FROM building_room t,building_unit u,f_floor f |
| | | WHERE 1 =1 |
| | | AND t.`unit_id` = u.`unit_id` |
| | | AND u.`floor_id` = f.`floor_id` |
| | | AND f.`floor_id` = cm.`member_id` |
| | | AND cm.`community_id` = c.`community_id` |
| | | AND cm.`member_type_cd` = '390001200004' |
| | | AND c.`status_cd` = '0' |
| | | AND cm.`status_cd` = '0' |
| | | AND f.`community_id` = t.`community_id` |
| | | AND u.`status_cd` = '0' |
| | | AND f.`status_cd` = '0' |
| | | AND c.`community_id` = #{communityId} |
| | | AND t.`community_id` = #{communityId} |
| | | <if test="floorId !=null and floorId != ''"> |
| | | and f.`floor_id`= #{floorId} |
| | | </if> |
| | |
| | | t.user_id userId,t.room_id,t.room_id roomId,t.layer,t.built_up_area,t.built_up_area builtUpArea,t.room_num, |
| | | t.room_num roomNum,t.unit_id,t.unit_id unitId,t.b_id,t.b_id bId,t.apartment,t.state,u.`unit_num` unitNum, |
| | | u.unit_id unitId,f.floor_id floorId,f.floor_num floorNum |
| | | FROM building_room t,s_community c,s_community_member cm,building_unit u,f_floor f |
| | | FROM building_room t,building_unit u,f_floor f |
| | | WHERE 1 =1 |
| | | AND t.`unit_id` = u.`unit_id` |
| | | AND u.`floor_id` = f.`floor_id` |
| | | AND f.`floor_id` = cm.`member_id` |
| | | AND cm.`community_id` = c.`community_id` |
| | | AND cm.`member_type_cd` = '390001200004' |
| | | AND c.`status_cd` = '0' |
| | | AND cm.`status_cd` = '0' |
| | | AND f.`community_id` = t.`community_id` |
| | | AND u.`status_cd` = '0' |
| | | AND f.`status_cd` = '0' |
| | | AND c.`community_id` = #{communityId} |
| | | AND t.`community_id` = #{communityId} |
| | | <if test="floorId !=null and floorId != ''"> |
| | | and f.`floor_id`= #{floorId} |
| | | </if> |