| | |
| | | <select id="getOwnerAttrInfo" parameterType="Map" resultType="Map"> |
| | | select t.attr_id,t.attr_id attrId,t.create_time,t.create_time createTime,t.spec_cd,t.spec_cd |
| | | specCd,t.status_cd,t.status_cd statusCd,t.b_id,t.b_id bId,t.community_id,t.community_id |
| | | communityId,t.value,t.member_id,t.member_id memberId |
| | | communityId,t.value,t.member_id,t.member_id memberId, |
| | | s.spec_name specName, |
| | | v.value_name valueName, |
| | | s.list_show listShow |
| | | from building_owner_attr t |
| | | 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="attrId !=null and attrId != ''"> |
| | | and t.attr_id= #{attrId} |
| | |
| | | <if test="memberId !=null and memberId != ''"> |
| | | and t.member_id= #{memberId} |
| | | </if> |
| | | <if test="memberIds !=null"> |
| | | and t.member_id in |
| | | <foreach collection="memberIds" open="(" close=")" |
| | | separator="," item="item"> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | order by t.create_time desc |
| | | <if test="page != -1 and page != null "> |
| | | limit #{page}, #{row} |