java110
2021-09-04 576c52d8d8e6fb1e738380cc5fc101a6a2b0b3a8
java110-db/src/main/resources/mapper/community/FloorAttrServiceDaoImplMapper.xml
@@ -84,9 +84,22 @@
    <!-- 查询考勤班组属性信息 add by wuxw 2018-07-03 -->
    <select id="getFloorAttrInfo" parameterType="Map" resultType="Map">
        select t.floor_id,t.floor_id floorId,t.attr_id,t.attr_id attrId,t.spec_cd,t.spec_cd
        specCd,t.status_cd,t.status_cd statusCd,t.community_id,t.community_id communityId,t.b_id,t.b_id bId,t.value
        specCd,t.status_cd,t.status_cd statusCd,t.community_id,t.community_id communityId,t.b_id,t.b_id bId,t.value,
        s.spec_name specName,
        v.value_name valueName,
        s.list_show listShow
        from f_floor_attr t
        where 1 =1
        left join attr_spec s on t.spec_cd = s.spec_cd and s.status_cd = '0' and s.table_name =
        'building_room_attr'
        left join attr_value v on t.`value` = v.`value` and t.spec_cd = v.spec_cd and v.status_cd = '0'
        where
        1=1
        <if test="floorIds !=null and floorIds != ''">
            and t.floor_id in
            <foreach collection="floorIds" item="item" index="index" open="(" close=")" separator=",">
                #{item}
            </foreach>
        </if>
        <if test="floorId !=null and floorId != ''">
            and t.floor_id= #{floorId}
        </if>