java110
2021-09-04 576c52d8d8e6fb1e738380cc5fc101a6a2b0b3a8
java110-db/src/main/resources/mapper/community/FloorServiceDaoImplMapper.xml
old mode 100644 new mode 100755
@@ -43,7 +43,6 @@
        <if test="communityId !=null and communityId != ''">
            and t.community_id= #{communityId}
        </if>
    </select>
@@ -75,8 +74,6 @@
        <if test="communityId !=null and communityId != ''">
            and t.community_id= #{communityId}
        </if>
    </insert>
@@ -115,7 +112,6 @@
        <if test="page != -1 and page != null ">
            limit #{page}, #{row}
        </if>
    </select>
@@ -158,7 +154,10 @@
        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>
@@ -189,9 +188,10 @@
        </if>
        AND f.`status_cd` = '0'
    </select>
    <!-- 查询小区 内的楼 -->
    <select id="queryFloors" parameterType="Map" resultType="Map">
        SELECT
        f.`floor_id` floorId,
        f.`floor_num` floorNum,
@@ -202,7 +202,10 @@
        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>
@@ -239,6 +242,5 @@
            LIMIT #{page}, #{row}
        </if>
    </select>
</mapper>