java110
2020-10-11 df774e4fd262b0a39e52152f166ccddb2aa9f90e
java110-db/src/main/resources/mapper/community/CommunityServiceDaoImplMapper.xml
@@ -321,7 +321,7 @@
            and ms.member_id = #{memberId}
        </if>
        <if test="subMemberId != null and subMemberId != ''">
            and ms.member_id = #{memberId}
            and ms.member_id = #{subMemberId}
        </if>
        <if test="noAuditEnterCommunity == true">
            and ms.member_type_cd not in ('390001200003','390001200005','390001200000')
@@ -339,7 +339,9 @@
        <if test="communityName != null and communityName != '' and needCommunityInfo == true">
            and sc.name like concat('%',#{communityName},'%')
        </if>
        group by ms.community_id
        <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}
@@ -399,7 +401,7 @@
        </if>
        <if test="subMemberId != null and subMemberId != ''">
            and ms.member_id = #{memberId}
            and ms.member_id = #{subMemberId}
        </if>
        <if test="noAuditEnterCommunity == true">
@@ -425,7 +427,10 @@
        <if test="communityName != null and communityName != '' and needCommunityInfo == true">
            and sc.name like concat('%',#{communityName},'%')
        </if>
        group by ms.community_id
        <if test="needCommunityInfo == true">
            group by ms.community_id
        </if>
    </select>
    <!-- 查询小区信息 add by wuxw 2018-07-03 -->
@@ -440,12 +445,15 @@
        THEN '审核完成'
        ELSE
        '审核拒绝'
        END) stateName
        from s_community t
        END) stateName,ca.area_code areaCode,ca.area_name areaName,
        ca.parent_area_code parentAreaCode,ca.parent_area_name parentAreaName
        from s_community t,city_area ca
        <if test="memberId !=null and memberId !=''">
            ,s_community_member cm
        </if>
        where 1 =1
        and t.city_code = ca.area_code
        and ca.status_cd = '0'
        <if test="address !=null and address != ''">
            and t.address= #{address}
        </if>
@@ -507,12 +515,14 @@
    <!-- 查询小区数量 add by wuxw 2018-07-03 -->
    <select id="queryCommunitysCount" parameterType="Map" resultType="Map">
        select  count(1) count
        from s_community t
        select  count(DISTINCT(t.community_id)) count
        from s_community t,city_area ca
        <if test="memberId !=null and memberId !=''">
            ,s_community_member cm
        </if>
        where 1 =1
        and t.city_code = ca.area_code
        and ca.status_cd = '0'
        <if test="address !=null and address != ''">
            and t.address= #{address}
        </if>