wuxw
2022-07-19 05683f2b2bdbdbe21cf17ad523c21ab338bd1c54
java110-db/src/main/resources/mapper/community/ParkingAreaAttrServiceDaoImplMapper.xml
old mode 100644 new mode 100755
@@ -86,8 +86,15 @@
    <!-- 查询单元属性信息 add by wuxw 2018-07-03 -->
    <select id="getParkingAreaAttrInfo" parameterType="Map" resultType="Map">
        select t.attr_id,t.attr_id attrId,t.pa_id,t.pa_id paId,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
        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,
        s.spec_type specType
        from parking_area_attr t
        left join attr_spec s on t.spec_cd = s.spec_cd and s.status_cd = '0' and s.table_name =
        'parking_area_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="attrId !=null and attrId != ''">
            and t.attr_id= #{attrId}
@@ -95,6 +102,12 @@
        <if test="paId !=null and paId != ''">
            and t.pa_id= #{paId}
        </if>
        <if test="paIds !=null">
            and t.pa_id in
            <foreach collection="paIds" item="item" open="(" close=")" separator=",">
                #{item}
            </foreach>
        </if>
        <if test="specCd !=null and specCd != ''">
            and t.spec_cd= #{specCd}
        </if>