java110
2023-05-30 f14c50cb0036d3ddd655ce4e34732ba396a836c4
java110-db/src/main/resources/mapper/community/FloorServiceDaoImplMapper.xml
@@ -235,7 +235,7 @@
            and f.floor_num= #{floorNum}
        </if>
        AND f.`status_cd` = '0'
        order by f.create_time desc
        order by f.seq asc,f.create_time desc
        <if test="page != -1 and page != null ">
            LIMIT #{page}, #{row}
        </if>
@@ -243,7 +243,7 @@
    <!-- 查询小区单元信息 add by wuxw 2018-07-03 -->
    <select id="queryFloorAndUnits" parameterType="Map" resultType="Map">
        select t.floor_id,t.floor_id floorId,bu.layer_count,bu.layer_count layerCount,bu.unit_id,bu.unit_id
        select t.floor_id,t.floor_id floorId,t.`name` floorName,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,t.seq
        from f_floor t
        left join building_unit bu on t.`floor_id` = bu.`floor_id` and bu.status_cd = '0'
@@ -261,13 +261,19 @@
        <if test="unitId !=null and unitId != ''">
            and bu.unit_id= #{unitId}
        </if>
        <if test="unitIds !=null ">
            and bu.unit_id in
            <foreach collection="unitIds" item="item" open="(" close=")" separator=",">
                #{item}
            </foreach>
        </if>
        <if test="unitNum !=null and unitNum != ''">
            and bu.unit_num= #{unitNum}
        </if>
        <if test="lift !=null and lift != ''">
            and bu.lift= #{lift}
        </if>
        order by t.seq,bu.unit_num asc
        order by t.seq,t.floor_num,bu.unit_num asc
        <!-- <if test="page != -1 and page != null ">
             limit #{page}, #{row}
         </if>limit 10;-->