java110
2021-05-09 f42983b35c738a28ed4b9d1732d1045c5f2a19bb
java110-db/src/main/resources/mapper/community/CommunityServiceDaoImplMapper.xml
old mode 100644 new mode 100755
@@ -7,18 +7,12 @@
    <!-- 保存小区信息 add by wuxw 2018-07-03 -->
    <insert id="saveBusinessCommunityInfo" parameterType="Map">
        insert into business_community(community_id,b_id,name,address,city_code,
        nearby_landmarks,map_x,map_y,month,state,operate,community_area)
        nearby_landmarks,map_x,map_y,month,state,operate,community_area,tel)
        values(#{communityId},#{bId},#{name},#{address},#{cityCode},
        #{nearbyLandmarks},#{mapX},#{mapY},#{month},#{state},#{operate},#{communityArea})
        #{nearbyLandmarks},#{mapX},#{mapY},#{month},#{state},#{operate},#{communityArea},#{tel})
    </insert>
    <!-- 保存小区信息 -->
    <insert id="saveCommunity" parameterType="Map">
        insert into s_community(community_id,b_id,name,address,city_code,
        nearby_landmarks,map_x,map_y,create_time,state,tel,community_area)
        values(#{communityId},#{bId},#{name},#{address},#{cityCode},
        #{nearbyLandmarks},#{mapX},#{mapY},#{createTime},#{state},#{tel},#{communityArea})
    </insert>
    <!-- 保存小区属性信息  add by wuxw 2018-07-03 -->
    <insert id="saveBusinessCommunityAttr" parameterType="Map">
@@ -464,7 +458,7 @@
    <!-- 查询小区信息 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.city_code,t.city_code cityCode,t.name,t.status_cd,t.status_cd statusCd,t.tel,
        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,(CASE
        WHEN t.state='1000'
@@ -534,9 +528,11 @@
            </foreach>
        </if>
        group by t.community_id
        order by t.create_time ASC
        <if test="page != -1 and page != null ">
            limit #{page}, #{row}
        </if>
    </select>