| | |
| | | s.list_show listShow |
| | | from s_community_attr sa |
| | | left join attr_spec s on sa.spec_cd = s.spec_cd and s.status_cd = '0' and s.table_name = |
| | | 'building_community_attr' |
| | | left join attr_value v on sa.`value` = v.`value` and sa.spec_cd = v.spec_cd and v.status_cd = '0' |
| | | 'building_community_attr' and sa.spec_cd = s.spec_cd |
| | | left join attr_value v on sa.`value` = v.`value` and s.spec_id = v.spec_id and v.status_cd = '0' |
| | | where |
| | | 1=1 |
| | | <if test="statusCd != null and statusCd != ''"> |
| | |
| | | <if test="communityName != null and communityName != '' and needCommunityInfo == true"> |
| | | and sc.name like concat('%',#{communityName},'%') |
| | | </if> |
| | | <if test="needCommunityInfo == true"> |
| | | group by ms.community_id |
| | | </if> |
| | | <!-- <if test="needCommunityInfo == true">--> |
| | | <!-- group by ms.community_id--> |
| | | <!-- </if>--> |
| | | order by ms.create_time desc |
| | | <if test="page != -1 and page != null"> |
| | | limit #{page},#{row} |
| | |
| | | <if test="communityName != null and communityName != '' and needCommunityInfo == true"> |
| | | and sc.name like concat('%',#{communityName},'%') |
| | | </if> |
| | | <if test="needCommunityInfo == true"> |
| | | group by ms.community_id |
| | | </if> |
| | | <!-- <if test="needCommunityInfo == true">--> |
| | | <!-- group by ms.community_id--> |
| | | <!-- </if>--> |
| | | |
| | | </select> |
| | | |
| | |
| | | '审核拒绝' |
| | | END) stateName,ca.area_code areaCode,ca.area_name areaName, |
| | | ca.parent_area_code parentAreaCode,ca.parent_area_name parentAreaName, |
| | | t.community_area communityArea |
| | | t.community_area communityArea,t.pay_fee_month,t.pay_fee_month payFeeMonth,t.fee_price,t.fee_price feePrice,t.qr_code qrCode |
| | | from s_community t,city_area ca |
| | | <if test="memberId !=null and memberId !=''"> |
| | | ,s_community_member cm |
| | |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | group by t.community_id |
| | | <!-- group by t.community_id--> |
| | | order by t.create_time ASC |
| | | <if test="page != -1 and page != null "> |
| | | limit #{page}, #{row} |
| | |
| | | ca.area_name areaName, |
| | | ca.parent_area_name cityName, |
| | | ca1.parent_area_name provName, |
| | | sc.community_area communityArea |
| | | sc.community_area communityArea, |
| | | sc.qr_code qrCode |
| | | FROM |
| | | s_community sc, |
| | | s_community_member scm, |
| | |
| | | <if test="auditStatusCd !=null and auditStatusCd !=''"> |
| | | and scm.audit_status_cd = #{auditStatusCd} |
| | | </if> |
| | | group by sc.community_id |
| | | <if test="communityId != null and communityId != ''"> |
| | | and sc.community_id = #{communityId} |
| | | </if> |
| | | </select> |
| | | </mapper> |