| | |
| | | |
| | | <!-- 查询小区信息 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 != ''"> |
| | |
| | | </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} |
| | |
| | | <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> |