old mode 100644
new mode 100755
| | |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | |
| | | </select> |
| | | |
| | | |
| | |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | |
| | | |
| | | </insert> |
| | | |
| | | |
| | |
| | | <if test="page != -1 and page != null "> |
| | | limit #{page}, #{row} |
| | | </if> |
| | | |
| | | </select> |
| | | |
| | | |
| | |
| | | COUNT(1) count |
| | | FROM |
| | | f_floor f |
| | | where f.`community_id` = #{communityId} |
| | | where 1=1 |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and f.`community_id` = #{communityId} |
| | | </if> |
| | | <if test="floorId !=null and floorId != ''"> |
| | | and f.floor_id= #{floorId} |
| | | </if> |
| | |
| | | <if test="bId !=null and bId != ''"> |
| | | and f.b_id= #{bId} |
| | | </if> |
| | | <if test="userId !=null and userId != ''"> |
| | | and f.user_id= #{userId} |
| | | </if> |
| | | |
| | | <if test="floorNum !=null and floorNum != ''"> |
| | | and f.floor_num= #{floorNum} |
| | | </if> |
| | | AND f.`status_cd` = '0' |
| | | </select> |
| | | |
| | | |
| | | <!-- 查询小区 内的楼 --> |
| | | <select id="queryFloors" parameterType="Map" resultType="Map"> |
| | | |
| | | SELECT |
| | | f.`floor_id` floorId, |
| | | f.`floor_num` floorNum, |
| | |
| | | f.floor_area floorArea |
| | | FROM |
| | | f_floor f |
| | | where f.`community_id` = #{communityId} |
| | | where 1=1 |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and f.`community_id` = #{communityId} |
| | | </if> |
| | | <if test="floorId !=null and floorId != ''"> |
| | | and f.floor_id= #{floorId} |
| | | </if> |
| | |
| | | <if test="bId !=null and bId != ''"> |
| | | and f.b_id= #{bId} |
| | | </if> |
| | | <if test="userId !=null and userId != ''"> |
| | | and f.user_id= #{userId} |
| | | </if> |
| | | <if test="floorNum !=null and floorNum != ''"> |
| | | and f.floor_num= #{floorNum} |
| | | </if> |
| | |
| | | LIMIT #{page}, #{row} |
| | | </if> |
| | | </select> |
| | | |
| | | |
| | | </mapper> |