| | |
| | | <!-- 保存小区信息至 instance表中 add by wuxw 2018-07-03 --> |
| | | <insert id="saveCommunityInfoInstance" parameterType="Map"> |
| | | insert into s_community(community_id, b_id, name, address, city_code, nearby_landmarks, map_x, map_y, status_cd, |
| | | state, community_area, tel) |
| | | state, community_area, tel, take_time) |
| | | values (#{community_id}, #{b_id}, #{name}, #{address}, #{city_code}, #{nearby_landmarks}, #{map_x}, #{map_y}, |
| | | '0', #{state}, #{communityArea}, #{tel}) |
| | | '0', #{state}, #{communityArea}, #{tel}, #{takeTime}) |
| | | </insert> |
| | | |
| | | <!-- 保存小区属性信息到 instance add by wuxw 2018-07-03 --> |
| | |
| | | |
| | | <!-- 查询小区信息 add by wuxw 2018-07-03 --> |
| | | <select id="getCommunityInfo" parameterType="Map" resultType="Map"> |
| | | select s.community_id,s.b_id,s.name,s.address,s.city_code,s.nearby_landmarks,s.map_x,s.map_y,s.status_cd,s.state |
| | | select s.community_id,s.b_id,s.name,s.address,s.city_code,s.nearby_landmarks,s.map_x,s.map_y,s.status_cd,s.state, s.take_time |
| | | from s_community s |
| | | where 1=1 |
| | | <if test="statusCd != null and statusCd != ''"> |
| | |
| | | </if> |
| | | <if test="tel != null and tel != ''"> |
| | | ,s.tel = #{tel} |
| | | </if> |
| | | <if test="takeTime !=null and takeTime != ''"> |
| | | , t.take_time= #{takeTime} |
| | | </if> |
| | | <if test="communityArea != null and communityArea != ''"> |
| | | ,s.community_area = #{communityArea} |
| | |
| | | t.map_x,t.map_x mapX,t.state,td.name stateName,ca.area_code areaCode,ca.area_name areaName, |
| | | ca.parent_area_code parentAreaCode,ca.parent_area_name parentAreaName, |
| | | t.community_area communityArea,t.pay_fee_month,t.pay_fee_month payFeeMonth,t.fee_price,t.fee_price |
| | | feePrice,t.qr_code qrCode,t.create_time createTime,s.name storeName,s.store_id storeId |
| | | feePrice,t.qr_code qrCode,t.create_time createTime,s.name storeName,s.store_id storeId, t.take_time, t.take_time takeTime |
| | | from s_community t |
| | | left join city_area ca on t.city_code = ca.area_code and ca.status_cd = '0' |
| | | left join s_community_member cm on t.community_id = cm.community_id and cm.member_type_cd = '390001200002' and cm.status_cd = '0' |
| | |
| | | ca.parent_area_name cityName, |
| | | ca1.parent_area_name provName, |
| | | sc.community_area communityArea, |
| | | sc.qr_code qrCode |
| | | sc.qr_code qrCode, |
| | | sc.take_time takeTime |
| | | FROM |
| | | s_community sc, |
| | | s_community_member scm, |