wuxw
2019-09-17 fb91efe81dc6b0298b53d27fb2458acab090106d
java110-db/src/main/resources/mapper/community/CommunityServiceDaoImplMapper.xml
@@ -358,7 +358,10 @@
    <!-- 查询小区信息 add by wuxw 2018-07-03 -->
    <select id="getCommunityInfoNew" parameterType="Map" resultType="Map">
        select  t.address,t.nearby_landmarks,t.nearby_landmarks nearbyLandmarks,t.city_code,t.city_code cityCode,t.name,t.status_cd,t.status_cd statusCd,t.community_id,t.community_id communityId,t.b_id,t.b_id bId,t.map_y,t.map_y mapY,t.map_x,t.map_x mapX
        select  t.address,t.nearby_landmarks,t.nearby_landmarks nearbyLandmarks,
        t.city_code,t.city_code cityCode,t.name,t.status_cd,t.status_cd statusCd,
        t.community_id,t.community_id communityId,t.b_id,t.b_id bId,t.map_y,t.map_y mapY,
        t.map_x,t.map_x mapX,t.state,if(t.state='1000','待审核','审核完成') stateName
        from s_community t
        where 1 =1
        <if test="address !=null and address != ''">
@@ -387,6 +390,14 @@
        </if>
        <if test="mapX !=null and mapX != ''">
            and t.map_x= #{mapX}
        </if>
        <if test="memberId !=null and memberId !=''">
            and exists(
            select 1 from s_community_member cm
            where cm.community_id = t.community_id
            and cm.member_id = #{memberId}
            and cm.status_cd = '0'
            )
        </if>
        <if test="page != -1 and page != null ">
            limit #{page}, #{row}
@@ -428,6 +439,14 @@
        <if test="mapX !=null and mapX != ''">
            and t.map_x= #{mapX}
        </if>
        <if test="memberId !=null and memberId !=''">
            and exists(
                select 1 from s_community_member cm
                where cm.community_id = t.community_id
                and cm.member_id = #{memberId}
                and cm.status_cd = '0'
            )
        </if>
    </select>