Merge branch 'master' of http://gitlab.fangjia.com/dev0/main into open_gj
This commit is contained in:
+51
@@ -0,0 +1,51 @@
|
||||
package com.fangjia.coresite.controllers;
|
||||
|
||||
import com.fangjia.coresite.model.AdviceLeadsModel;
|
||||
import com.fangjia.coresite.model.user.Message;
|
||||
import com.fangjia.coresite.model.user.UserRegJsonModel;
|
||||
import com.fangjia.coresite.util.CoresiteCookieContext;
|
||||
import com.fangjia.coresite.util.LoginUtil;
|
||||
import com.fangjia.dal.mongo.fangjia.model.AdviceLeads;
|
||||
import com.fangjia.service.common.CookieName;
|
||||
import com.fangjia.service.fangjia.AdviceLeadsService;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.Date;
|
||||
|
||||
public class AdviceLeadsController {
|
||||
|
||||
private AdviceLeadsService adviceLeadsService;
|
||||
|
||||
private static final CoresiteCookieContext COOKIE_CONTEXT = CoresiteCookieContext
|
||||
.getInstance();
|
||||
|
||||
public Object doAddAction(AdviceLeadsModel model, HttpServletRequest req) {
|
||||
UserRegJsonModel result = new UserRegJsonModel();
|
||||
model.setViewType("redirect");
|
||||
|
||||
String tempId = COOKIE_CONTEXT.getCookieValue(req, CookieName.UID);
|
||||
AdviceLeads adviceLeads = new AdviceLeads();
|
||||
adviceLeads.setName(model.getName());
|
||||
adviceLeads.setMobile(model.getMobile());
|
||||
adviceLeads.setEmail(model.getEmail());
|
||||
adviceLeads.setCompany(model.getCompany());
|
||||
adviceLeads.setDepartment(model.getDepartment());
|
||||
adviceLeads.setPosition(model.getPosition());
|
||||
adviceLeads.setCreateDate(new Date());
|
||||
adviceLeads.setModifyDate(new Date());
|
||||
adviceLeads.setUserId(LoginUtil.getUserId(req));
|
||||
adviceLeads.setTempId(tempId);
|
||||
adviceLeadsService.save(adviceLeads);
|
||||
result.setResult(Message.RESULT_SUCCESS);
|
||||
return result;
|
||||
}
|
||||
|
||||
public AdviceLeadsService getAdviceLeadsService() {
|
||||
return adviceLeadsService;
|
||||
}
|
||||
|
||||
public void setAdviceLeadsService(AdviceLeadsService adviceLeadsService) {
|
||||
this.adviceLeadsService = adviceLeadsService;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
+88
@@ -0,0 +1,88 @@
|
||||
package com.fangjia.coresite.model;
|
||||
|
||||
public class AdviceLeadsModel extends BaseModel{
|
||||
|
||||
private static final long serialVersionUID = -5664116886759283515L;
|
||||
|
||||
/**
|
||||
* 姓名
|
||||
*/
|
||||
private String name;
|
||||
|
||||
|
||||
/**
|
||||
* 手机
|
||||
*/
|
||||
private String mobile;
|
||||
|
||||
|
||||
/**
|
||||
* 邮箱
|
||||
*/
|
||||
private String email;
|
||||
|
||||
/**
|
||||
* 公司
|
||||
*/
|
||||
private String company;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 部门
|
||||
*/
|
||||
private String department;
|
||||
|
||||
/**
|
||||
* 职位
|
||||
*/
|
||||
private String position;
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getMobile() {
|
||||
return mobile;
|
||||
}
|
||||
|
||||
public void setMobile(String mobile) {
|
||||
this.mobile = mobile;
|
||||
}
|
||||
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
|
||||
public void setEmail(String email) {
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
public String getCompany() {
|
||||
return company;
|
||||
}
|
||||
|
||||
public void setCompany(String company) {
|
||||
this.company = company;
|
||||
}
|
||||
|
||||
public String getDepartment() {
|
||||
return department;
|
||||
}
|
||||
|
||||
public void setDepartment(String department) {
|
||||
this.department = department;
|
||||
}
|
||||
|
||||
public String getPosition() {
|
||||
return position;
|
||||
}
|
||||
|
||||
public void setPosition(String position) {
|
||||
this.position = position;
|
||||
}
|
||||
}
|
||||
@@ -34,7 +34,7 @@
|
||||
<div class="con1">
|
||||
<p>上海总部</p>
|
||||
<b>电 话</b>: 4001883787(周一至周五 09:00-18:00)<br>
|
||||
<b>邮 箱</b>: <a href="mailto:service@fangjia.com">service@fangjia.com</a><br>
|
||||
<b>邮 箱</b>: <a href="mailto:gujia@fangjia.com">gujia@fangjia.com</a><br>
|
||||
<b>地 址</b>: 上海市长宁区协和路1033号文洋大厦B座10楼<br>
|
||||
<b>邮 编</b>: 200335<br><br>
|
||||
</div>
|
||||
|
||||
@@ -158,7 +158,7 @@
|
||||
<div class="c0">
|
||||
<ul>
|
||||
<li class="t0">咨询电话:021-62391139</li>
|
||||
<li class="email">邮 箱:<a href="mailto:service@fangjia.com">service@fangjia.com</a></li>
|
||||
<li class="email">邮 箱:<a href="mailto:gujia@fangjia.com">gujia@fangjia.com</a></li>
|
||||
<li class="line"></li>
|
||||
<li class="tips">商务合作,请提交信息获得产品体验</li>
|
||||
<li class="t1 contact_form"><span><i>*</i>姓名:</span><input type="text" id="f_name" /></li>
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
<a ref="nofollow"><img src="${staticUrl}/images/wj110.png?v=${version}" height="47" border="0" /></a>
|
||||
</p>
|
||||
<p class="footer_text">
|
||||
客服热线:4001883787 电子邮箱:service@fangjia.com
|
||||
客服热线:4001883787 电子邮箱:gujia@fangjia.com
|
||||
<br />
|
||||
©2006-${now?string("yyyy")} 估家网络 版权所有 <a href="http://www.shcaeg.gov.cn/main.action" target="_blank">沪B2-20130098</a>
|
||||
<br/>
|
||||
|
||||
@@ -290,7 +290,7 @@
|
||||
<span>前台总机:021-62393138</span><br>
|
||||
<span>客服热线:4001883787</span><br>
|
||||
<a href="${cityUrl}/ershoufang">上海找房子</a><span>,</span><a href="${cityUrl}/gujia">估房价</a><span>,百度 </span><a href="https://www.baidu.com">房价网</a><br>
|
||||
<span>电子邮箱:service@fangjia.com</span>
|
||||
<span>电子邮箱:gujia@fangjia.com</span>
|
||||
</div>
|
||||
<div class="wx"></div>
|
||||
</div>
|
||||
|
||||
@@ -262,9 +262,9 @@
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<a href="mailto:service@fangjia.com" class="icon two-code" title="客服邮箱"></a>
|
||||
<a href="mailto:gujia@fangjia.com" class="icon two-code" title="客服邮箱"></a>
|
||||
<div class="fixedNav02">
|
||||
<span>service@fangjia.com</span>
|
||||
<span>gujia@fangjia.com</span>
|
||||
<font></font>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
@@ -77,15 +77,17 @@
|
||||
<p class="office01 current"><i></i><a>上海</a></p>
|
||||
<p>
|
||||
<font>电 话: 4001883787(周一至周五 09:00-18:00)<br>
|
||||
邮 箱: service@fangjia.com</font>
|
||||
邮 箱: gujia@fangjia.com</font>
|
||||
<font>地 址:上海市黄浦区黄陂北路227号中区广场1207室<br>
|
||||
邮 编: 200003</font>
|
||||
|
||||
</p>
|
||||
|
||||
</div>
|
||||
<!-- <div>
|
||||
<p class="office01 current"><i></i><a>上海总部</a></p>
|
||||
<p>电 话: 4001883787(周一至周五 09:00-18:00)<br>
|
||||
邮 箱: service@fangjia.com<br>
|
||||
邮 箱: gujia@fangjia.com<br>
|
||||
地 址: 上海市黄浦区黄陂北路227号中区广场1207室<br>
|
||||
邮 编: 200003</p>
|
||||
</div>
|
||||
@@ -102,7 +104,24 @@
|
||||
邮 编: 518028</p>
|
||||
</div> -->
|
||||
<div class="officeMapBox">
|
||||
<div class="officeMap" id="officeMap01"></div>
|
||||
<div class="officeMap" id="officeMap01" style="width: 50%; float:left" ></div>
|
||||
<div style="padding-left: 5%; float:left;width: 25%;padding-top: 5%; text-align: center;">
|
||||
<img src="${staticUrl}/images/fangjia/v5/KfWx.png" style="width: 200px; display: inline-block;"><br><br>
|
||||
<span>关注估家科技客服微信号<br>
|
||||
Follow us on WeChat</span>
|
||||
</div>
|
||||
<div style="float:left; padding-top: 5%; text-align: center;">
|
||||
<img src="${staticUrl}/images/fangjia/v5/GfWx.png" style="width: 200px; display: inline-block;"><br><br>
|
||||
<span>关注官方微信公众号<br>
|
||||
Follow us on WeChat</span>
|
||||
</div>
|
||||
<#--<div style="padding-left: 85%; float:left">
|
||||
<img src="${staticUrl}/images/fangjia/v5/GfWx.png"><br>
|
||||
<span> 关注官方微信公众号</span><br>
|
||||
<span> Follow us on WeChat</span>
|
||||
</div>-->
|
||||
|
||||
|
||||
<!-- <div class="officeMap" id="officeMap02"></div>
|
||||
<div class="officeMap" id="officeMap03"></div> -->
|
||||
</div>
|
||||
@@ -111,13 +130,27 @@
|
||||
<div>
|
||||
<p class="office01 current"><i></i><a>上海</a></p>
|
||||
<p>电 话: 4001883787(周一至周五 09:00-18:00)<br>
|
||||
邮 箱: service@fangjia.com<br>
|
||||
邮 箱: gujia@fangjia.com<br>
|
||||
地 址: 上海市黄浦区黄陂北路227号中区广场1207室<br>
|
||||
邮 编: 200003</p>
|
||||
</div>
|
||||
<div class="officeMapBox">
|
||||
<div class="officeMap" id="officeMap04"></div>
|
||||
<div>
|
||||
<div style="float:left;">
|
||||
<img src="${staticUrl}/images/fangjia/v5/KfWx.png" style="height:80px;padding-left: 20%;"><br>
|
||||
<span>关注估家科技客服微信号</span><br>
|
||||
<span> Follow us on WeChat</span>
|
||||
</div>
|
||||
<div style="float:left;margin-left: 10%;">
|
||||
<img src="${staticUrl}/images/fangjia/v5/GfWx.png" style="height:80px;margin-left: 15%;"><br>
|
||||
<span> 关注官方微信公众号</span><br>
|
||||
<span> Follow us on WeChat</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="officeMapBox" >
|
||||
<div class="officeMap" id="officeMap04" style="margin-top: 10px"></div>
|
||||
<#-- <div class="officeMap" id="officeMap01" style="width: 80%; float:left" ></div>-->
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="main_title" id="partner" style="padding-top:100px;">他们都在和我们合作</div>
|
||||
<div class="main_content partner mobile01">
|
||||
|
||||
@@ -85,7 +85,7 @@
|
||||
</p>
|
||||
|
||||
<div class="footer_in por">
|
||||
客服热线:4001883787 电子邮箱:service@fangjia.com
|
||||
客服热线:4001883787 电子邮箱:gujia@fangjia.com
|
||||
<br />
|
||||
©2006-${now?string("yyyy")} 房价网 版权所有 沪ICP备10203734号-1
|
||||
</div>
|
||||
|
||||
@@ -70,7 +70,7 @@
|
||||
<a ref="nofollow"><img src="${staticUrl}/images/wj110.png?v=${version}" height="47" border="0" /></a>
|
||||
</p>
|
||||
<p class="footer_text">
|
||||
客服热线:4001883787 电子邮箱:service@fangjia.com
|
||||
客服热线:4001883787 电子邮箱:gujia@fangjia.com
|
||||
<br />
|
||||
©2006-${now?string("yyyy")} 估家网络 版权所有 <a href="http://www.miitbeian.gov.cn/" target="_blank">沪ICP备10203734号-1</a>
|
||||
<br/>
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
|
||||
<p class="footer_text">
|
||||
图片来源于网络,版权属于作者,请勿用于商业用途。<br/>
|
||||
客服热线:4001883787 电子邮箱:service@fangjia.com
|
||||
客服热线:4001883787 电子邮箱:gujia@fangjia.com
|
||||
<br />
|
||||
©2006-${now?string("yyyy")} 估家网络 版权所有 <a href="http://www.shcaeg.gov.cn/main.action" target="_blank">沪B2-20130098</a>
|
||||
<br/>
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
<span>前台总机:021-62393138</span><br>
|
||||
<span>客服热线:4001883787</span><br>
|
||||
<a href="${_currentCityUrl}/ershoufang/">上海找房子</a><span>,</span><a href="${_currentCityUrl}/gujia/">估房价</a><span>,百度 </span><a href="http://www.baidu.com/s?wd=%B7%BF%BC%DB%CD%F8">房价网</a><br>
|
||||
<span>电子邮箱:service@fangjia.com</span>
|
||||
<span>电子邮箱:gujia@fangjia.com</span>
|
||||
</div>
|
||||
<div class="wx"></div>
|
||||
</div>
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
<span>前台总机:021-62393138</span><br>
|
||||
<span>客服热线:4001883787</span><br>
|
||||
<a href="${_currentCityUrl}/ershoufang/">上海找房子</a><span>,</span><a href="${_currentCityUrl}/gujia/">估房价</a><span>,百度 </span><a href="http://www.baidu.com/s?wd=%B7%BF%BC%DB%CD%F8">房价网</a><br>
|
||||
<span>电子邮箱:service@fangjia.com</span>
|
||||
<span>电子邮箱:gujia@fangjia.com</span>
|
||||
</div>
|
||||
<div class="wx"></div>
|
||||
</div>
|
||||
|
||||
@@ -198,7 +198,7 @@
|
||||
<a ref="nofollow" href="#"><img src="${staticUrl}/images/wlzx.png?v=${version}" height="47" border="0" /></a>
|
||||
<a ref="nofollow" href="#"><img src="${staticUrl}/images/wj110.png?v=${version}" height="47" border="0" /></a>
|
||||
</p>
|
||||
<p class="copyrights">客服热线:4001883787 电子邮箱:service@fangjia.com<br />
|
||||
<p class="copyrights">客服热线:4001883787 电子邮箱:gujia@fangjia.com<br />
|
||||
©2006-${now?string("yyyy")} 房价网 版权所有 沪ICP备10203734号-1<br/>
|
||||
<a class="grey9c" target="_blank" href="<@d_url schema="${citySchema}" uri="/sellHouseSearch/list" />"><#if (!serverAreaMap?exists && actionName == 'index')>${cityName}</#if>找房子</a>,<a class="grey9c" target="_blank" href="<@d_url uri="/evaluation/report" schema="${cityDomain}" />">估房价</a>,百度 <a class="grey9c" target="_blank" href="http://www.baidu.com/s?wd=%B7%BF%BC%DB%CD%F8">房价网</a>
|
||||
</p>
|
||||
|
||||
@@ -78,7 +78,7 @@
|
||||
<font>|</font>
|
||||
<a href="https://www.linkedin.com/company/fangjia" title="LinkedIn" target="_blank" rel="nofollow"><img src="${imgUrl}/images/fangjia/v5/footer_icon03.png" class="footer_icon03"><span style="width:56px;">LinkedIn</span></a>
|
||||
<font>|</font>
|
||||
<a href="mailto:service@fangjia.com" title="客服邮箱" target="_blank" rel="nofollow"><img src="${imgUrl}/images/fangjia/v5/footer_icon06.png" class="footer_icon06"><span>客服邮箱</span></a>
|
||||
<a href="mailto:gujia@fangjia.com" title="客服邮箱" target="_blank" rel="nofollow"><img src="${imgUrl}/images/fangjia/v5/footer_icon06.png" class="footer_icon06"><span>客服邮箱</span></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer_bottom">
|
||||
|
||||
@@ -78,7 +78,7 @@
|
||||
<font>|</font>
|
||||
<a href="https://www.linkedin.com/company/fangjia" title="LinkedIn" target="_blank" rel="nofollow"><img src="${imgUrl}/images/fangjia/v5/footer_icon03.png" class="footer_icon03"><span style="width:56px;">LinkedIn</span></a>
|
||||
<font>|</font>
|
||||
<a href="mailto:service@fangjia.com" title="客服邮箱" target="_blank" rel="nofollow"><img src="${imgUrl}/images/fangjia/v5/footer_icon06.png" class="footer_icon06"><span>客服邮箱</span></a>
|
||||
<a href="mailto:gujia@fangjia.com" title="客服邮箱" target="_blank" rel="nofollow"><img src="${imgUrl}/images/fangjia/v5/footer_icon06.png" class="footer_icon06"><span>客服邮箱</span></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer_bottom">
|
||||
|
||||
@@ -16,9 +16,9 @@
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<a href="mailto:market@fangjia.com" class="icon two-code" title="客服邮箱"></a>
|
||||
<a href="mailto:gujia@fangjia.com" class="icon two-code" title="客服邮箱"></a>
|
||||
<div class="fixedNav02">
|
||||
<span>market@fangjia.com</span>
|
||||
<span>gujia@fangjia.com</span>
|
||||
<font></font>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
@@ -1476,9 +1476,9 @@
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<a href="mailto:market@fangjia.com" class="icon two-code" title="客服邮箱"></a>
|
||||
<a href="mailto:gujia@fangjia.com" class="icon two-code" title="客服邮箱"></a>
|
||||
<div class="fixedNav02">
|
||||
<span>market@fangjia.com</span>
|
||||
<span>gujia@fangjia.com</span>
|
||||
<font></font>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
@@ -78,7 +78,7 @@
|
||||
<font>|</font>
|
||||
<a href="https://www.linkedin.com/company/fangjia" title="LinkedIn" target="_blank" rel="nofollow"><img src="${imgUrl}/images/fangjia/v5/footer_icon03.png" class="footer_icon03"><span style="width:56px;">LinkedIn</span></a>
|
||||
<font>|</font>
|
||||
<a href="mailto:service@fangjia.com" title="客服邮箱" target="_blank" rel="nofollow"><img src="${imgUrl}/images/fangjia/v5/footer_icon06.png" class="footer_icon06"><span>客服邮箱</span></a>
|
||||
<a href="mailto:gujia@fangjia.com" title="客服邮箱" target="_blank" rel="nofollow"><img src="${imgUrl}/images/fangjia/v5/footer_icon06.png" class="footer_icon06"><span>客服邮箱</span></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer_bottom">
|
||||
|
||||
@@ -102,7 +102,7 @@
|
||||
<span>前台总机:021-62393138</span><br>
|
||||
<span>客服热线:4001883787</span><br>
|
||||
<a href="${cityUrl}/ershoufang">上海找房子</a><span>,</span><a href="${cityUrl}/gujia">估房价</a><span>,百度 </span><a href="https://www.baidu.com">房价网</a><br>
|
||||
<span>电子邮箱:service@fangjia.com</span>
|
||||
<span>电子邮箱:gujia@fangjia.com</span>
|
||||
</div>
|
||||
<div class="wx"></div>
|
||||
</div>
|
||||
|
||||
@@ -97,7 +97,7 @@
|
||||
<span>前台总机:021-62393138</span><br>
|
||||
<span>客服热线:4001883787</span><br>
|
||||
<a href="${cityUrl}/ershoufang">上海找房子</a><span>,</span><a href="${cityUrl}/gujia">估房价</a><span>,百度 </span><a href="https://www.baidu.com">房价网</a><br>
|
||||
<span>电子邮箱:service@fangjia.com</span>
|
||||
<span>电子邮箱:gujia@fangjia.com</span>
|
||||
</div>
|
||||
<div class="wx"></div>
|
||||
</div>
|
||||
|
||||
@@ -111,7 +111,7 @@
|
||||
<span>前台总机:021-62393138</span><br>
|
||||
<span>客服热线:4001883787</span><br>
|
||||
<a href="${cityUrl}/ershoufang">上海找房子</a><span>,</span><a href="${cityUrl}/gujia">估房价</a><span>,百度 </span><a href="https://www.baidu.com">房价网</a><br>
|
||||
<span>电子邮箱:service@fangjia.com</span>
|
||||
<span>电子邮箱:gujia@fangjia.com</span>
|
||||
</div>
|
||||
<div class="wx"></div>
|
||||
</div>
|
||||
|
||||
@@ -117,7 +117,7 @@
|
||||
<span>前台总机:021-62393138</span><br>
|
||||
<span>客服热线:4001883787</span><br>
|
||||
<a href="${cityUrl}/ershoufang">上海找房子</a><span>,</span><a href="${cityUrl}/gujia">估房价</a><span>,百度 </span><a href="https://www.baidu.com">房价网</a><br>
|
||||
<span>电子邮箱:service@fangjia.com</span>
|
||||
<span>电子邮箱:gujia@fangjia.com</span>
|
||||
</div>
|
||||
<div class="wx"></div>
|
||||
</div>
|
||||
|
||||
@@ -101,7 +101,7 @@
|
||||
<span>前台总机:021-62393138</span><br>
|
||||
<span>客服热线:4001883787</span><br>
|
||||
<a href="${cityUrl}/ershoufang">上海找房子</a><span>,</span><a href="${cityUrl}/gujia">估房价</a><span>,百度 </span><a href="https://www.baidu.com">房价网</a><br>
|
||||
<span>电子邮箱:service@fangjia.com</span>
|
||||
<span>电子邮箱:gujia@fangjia.com</span>
|
||||
</div>
|
||||
<div class="wx"></div>
|
||||
</div>
|
||||
|
||||
@@ -83,7 +83,7 @@
|
||||
<span>前台总机:021-62393138</span><br>
|
||||
<span>客服热线:4001883787</span><br>
|
||||
<a href="${cityUrl}/ershoufang">上海找房子</a><span>,</span><a href="${cityUrl}/gujia">估房价</a><span>,百度 </span><a href="https://www.baidu.com">房价网</a><br>
|
||||
<span>电子邮箱:service@fangjia.com</span>
|
||||
<span>电子邮箱:gujia@fangjia.com</span>
|
||||
</div>
|
||||
<div class="wx"></div>
|
||||
</div>
|
||||
|
||||
@@ -84,7 +84,7 @@
|
||||
<span>前台总机:021-62393138</span><br>
|
||||
<span>客服热线:4001883787</span><br>
|
||||
<a href="${cityUrl}/ershoufang">上海找房子</a><span>,</span><a href="${cityUrl}/gujia">估房价</a><span>,百度 </span><a href="https://www.baidu.com">房价网</a><br>
|
||||
<span>电子邮箱:service@fangjia.com</span>
|
||||
<span>电子邮箱:gujia@fangjia.com</span>
|
||||
</div>
|
||||
<div class="wx"></div>
|
||||
</div>
|
||||
|
||||
@@ -243,14 +243,14 @@
|
||||
<div class="error error01 dn"><i></i><span></span></div>
|
||||
</div>
|
||||
<div class="inputInfo">
|
||||
<label>电子邮箱<i>*</i></label>
|
||||
<label>电子邮箱</label>
|
||||
<input class="inpu inpu02" type="text" name="saleLeads.email" id="email" autocomplete="off" placeholder="请输入您的电子邮箱">
|
||||
<div class="error error01 dn"><i></i><span></span></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="inputInfoBox01">
|
||||
<div class="inputInfo">
|
||||
<label>所在城市<i>*</i></label>
|
||||
<label>所在城市</label>
|
||||
<div class="inpu inpu02 cityChoice open-about01">
|
||||
<input type="hidden" name="saleLeads.city" id="city" value="上海">
|
||||
<input id="selectedCity" value="上海" placeholder="请选择城市" readonly>
|
||||
@@ -259,7 +259,7 @@
|
||||
<div class="error error01 dn"><i></i>所在城市不能为空</div>
|
||||
</div>
|
||||
<div class="inputInfo">
|
||||
<label>行业性质<i>*</i></label>
|
||||
<label>行业性质</label>
|
||||
<select class="sel" id="nature" name="saleLeads.industryNature">
|
||||
<option value="">请选择您所在的行业性质</option>
|
||||
<option value="银行">银行</option>
|
||||
@@ -280,7 +280,7 @@
|
||||
</div>
|
||||
<input name="saleLeads.work" id="work" type="hidden"/>
|
||||
<div class="inputInfo duty dn">
|
||||
<label>工作职能<i>*</i></label>
|
||||
<label>工作职能</label>
|
||||
<select class="sel" name="">
|
||||
<option>请选择您的工作职能</option>
|
||||
<option>风控管理</option>
|
||||
@@ -296,7 +296,7 @@
|
||||
<div class="error error01 dn"><i></i>工作职能不能为空</div>
|
||||
</div>
|
||||
<div class="inputInfo duty dn">
|
||||
<label>工作职能<i>*</i></label>
|
||||
<label>工作职能</label>
|
||||
<select class="sel">
|
||||
<option>请选择您的工作职能</option>
|
||||
<option>风控管理</option>
|
||||
@@ -311,7 +311,7 @@
|
||||
<div class="error error01 dn"><i></i>工作职能不能为空</div>
|
||||
</div>
|
||||
<div class="inputInfo duty dn">
|
||||
<label>工作职能<i>*</i></label>
|
||||
<label>工作职能</label>
|
||||
<select class="sel">
|
||||
<option>请选择您的工作职能</option>
|
||||
<option>数据分析</option>
|
||||
@@ -324,7 +324,7 @@
|
||||
<div class="error error01 dn"><i></i>工作职能不能为空</div>
|
||||
</div>
|
||||
<div class="inputInfo duty dn">
|
||||
<label>工作职能<i>*</i></label>
|
||||
<label>工作职能</label>
|
||||
<select class="sel">
|
||||
<option>请选择您的工作职能</option>
|
||||
<option>房地产评估</option>
|
||||
@@ -337,7 +337,7 @@
|
||||
<div class="error error01 dn"><i></i>工作职能不能为空</div>
|
||||
</div>
|
||||
<div class="inputInfo duty dn">
|
||||
<label>工作职能<i>*</i></label>
|
||||
<label>工作职能</label>
|
||||
<select class="sel">
|
||||
<option>请选择您的工作职能</option>
|
||||
<option>课题研究</option>
|
||||
@@ -351,7 +351,7 @@
|
||||
<div class="error error01 dn"><i></i>工作职能不能为空</div>
|
||||
</div>
|
||||
<div class="inputInfo duty dn">
|
||||
<label>工作职能<i>*</i></label>
|
||||
<label>工作职能</label>
|
||||
<select class="sel">
|
||||
<option>请选择您的工作职能</option>
|
||||
<option>信用征集</option>
|
||||
@@ -366,7 +366,7 @@
|
||||
<div class="error error01 dn"><i></i>工作职能不能为空</div>
|
||||
</div>
|
||||
<div class="inputInfo duty dn">
|
||||
<label>工作职能<i>*</i></label>
|
||||
<label>工作职能</label>
|
||||
<select class="sel">
|
||||
<option>请选择您的工作职能</option>
|
||||
<option>市场研究与分析</option>
|
||||
@@ -377,7 +377,7 @@
|
||||
<div class="error error01 dn"><i></i>工作职能不能为空</div>
|
||||
</div>
|
||||
<div class="inputInfo duty dn">
|
||||
<label>工作职能<i>*</i></label>
|
||||
<label>工作职能</label>
|
||||
<select class="sel">
|
||||
<option>请选择您的工作职能</option>
|
||||
<option>数据分析</option>
|
||||
@@ -391,7 +391,7 @@
|
||||
<div class="error error01 dn"><i></i>工作职能不能为空</div>
|
||||
</div>
|
||||
<div class="inputInfo duty dn">
|
||||
<label>工作职能<i>*</i></label>
|
||||
<label>工作职能</label>
|
||||
<select class="sel">
|
||||
<option>请选择您的工作职能</option>
|
||||
<option>项目策划与开发</option>
|
||||
@@ -407,20 +407,20 @@
|
||||
<div class="error error01 dn"><i></i>工作职能不能为空</div>
|
||||
</div>
|
||||
<div class="inputInfo duty dn">
|
||||
<label class="label01">其他行业性质<i>*</i></label>
|
||||
<label class="label01">其他行业性质</label>
|
||||
<input class="inpu inpu02" type="text" autocomplete="off" placeholder="请输入其他行业性质" id="otherIndustryNature" name="saleLeads.otherIndustryNature">
|
||||
<div class="error error01 dn"><i></i><span></span></div>
|
||||
<label class="label01 label01a">其他工作职能<i>*</i></label>
|
||||
<label class="label01 label01a">其他工作职能</label>
|
||||
<input class="inpu inpu02 inpu02a" type="text" id="otherWork2" name="saleLeads.otherWork" autocomplete="off" placeholder="请输入其他工作职能">
|
||||
<div class="error error01 dn" style="top:91px;"><i></i><span></span></div>
|
||||
</div>
|
||||
<div class="inputInfo duty01 dn">
|
||||
<label class="label01">其他工作职能<i>*</i></label>
|
||||
<label class="label01">其他工作职能</label>
|
||||
<input class="inpu inpu02" type="text" id="otherWork" name="saleLeads.otherWork" autocomplete="off" placeholder="请输入其他工作职能">
|
||||
<div class="error error01 dn"><i></i><span></span></div>
|
||||
</div>
|
||||
<div class="inputInfo <#if mid?? && mid!='1018'&&mid!='1016'>dn</#if>" >
|
||||
<label>业务需求<i>*</i></label>
|
||||
<label>业务需求</label>
|
||||
<input name="saleLeads.business" id="business" type="hidden"/>
|
||||
<div class="demand">
|
||||
<p><b><i></i>解决方案</b></p>
|
||||
@@ -445,7 +445,7 @@
|
||||
<div class="error error01 dn"><i></i><span></span></div>
|
||||
</div>
|
||||
<div class="inputInfo demand01 dn">
|
||||
<label class="label01">其他业务需求<i>*</i></label>
|
||||
<label class="label01">其他业务需求</label>
|
||||
<input class="inpu inpu02" type="text" id="otherBusiness" name="saleLeads.otherBusiness" autocomplete="off" placeholder="请输入其他业务需求">
|
||||
<div class="error error01 dn"><i></i>其他业务需求不能为空</div>
|
||||
</div>
|
||||
@@ -556,7 +556,7 @@ $(".user_btn").click(function(){
|
||||
return false;
|
||||
}
|
||||
|
||||
if(!checkEmail()){
|
||||
/*if(!checkEmail()){
|
||||
scrollBy(0,-300);
|
||||
return false;
|
||||
}
|
||||
@@ -575,7 +575,7 @@ $(".user_btn").click(function(){
|
||||
scrollBy(0,-100);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} */
|
||||
|
||||
var cls = $(".agreement i").attr("class");
|
||||
if(cls.indexOf("checked")>-1){
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
<p class="p02" style="width:1250px;"><label>高效率、高智能的批量地址标准化分析与处理</label></p>
|
||||
<p><small>无论在风控、征信还是营销领域,任何批量地址数据的处理都离不开地址标准化。<br>房价网基于强大的CPDB数据库和人机技术,为各行业提供高效智能的地址标准化服务。</small></p>
|
||||
<div class="btnGroup">
|
||||
<a class="link_btn link01_btn large" data_id="1007" cat="solution">立即咨询专业顾问</a>
|
||||
<a class="link_btn link01_btn large" data_id="1007" id="seekAdvice" style="width: 222px; font-size: 25px; color: #FB8;">立即咨询专业顾问</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -41,7 +41,7 @@
|
||||
<p class="p01"><small>地址标准化解决方案</small></p>
|
||||
<p class="p02"><label>高效率、高智能的批量地址标准化分析与处理</label></p>
|
||||
<div class="btnGroup">
|
||||
<a class="link_btn link01_btn large" data_id="1007" cat="solution">立即咨询专业顾问</a>
|
||||
<a class="link_btn link01_btn large" data_id="1007" id="seekAdvice_mobile">立即咨询专业顾问</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -110,7 +110,7 @@
|
||||
|
||||
<div class="adBox adBox03">
|
||||
<p><small>您可通过在线方式联系专业顾问,他们将非常乐意为您提供更多服务。</small></p>
|
||||
<a class="link_btn" data_id="1007" cat="solution">立即咨询</a>
|
||||
<a class="link_btn" data_id="1007" id="seekAdvice2" style="width: 150px; height: 38px; background: #FB8;">立即咨询</a>
|
||||
</div>
|
||||
|
||||
<div class="resource" data-url = "${wwwUrl}/resource/recommend?module=1016"></div>
|
||||
@@ -128,9 +128,134 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="dialogBox dialogBoxSolution dn" style="top: 40%;">
|
||||
<#--<div class="dialogBox_title">申请贷款<i class="close" id="loanWin"></i></div>-->
|
||||
<div class="dialogBox_content" style="padding: 20px;">
|
||||
<div class="user" style="margin-top: 40px;">
|
||||
<div class="content">
|
||||
<div class="inputInfoBox">
|
||||
<div class="inputInfo">
|
||||
<label>姓名<i style="color: red;">*</i></label>
|
||||
<input id="name_d" class="inpu" type="text" autocomplete="off" placeholder="请输入您的姓名">
|
||||
<div class="error dn"><i></i><span></span></div>
|
||||
</div>
|
||||
<div class="inputInfo">
|
||||
<label>手机<i style="color: red;">*</i></label>
|
||||
<input id="mobile_d" class="inpu" type="text" autocomplete="off" placeholder="请输入手机号码">
|
||||
<div class="error dn"><i></i><span></span></div>
|
||||
</div>
|
||||
<div class="inputInfo">
|
||||
<label>邮箱</label>
|
||||
<input id="email_d" class="inpu" type="text" autocomplete="off" placeholder="请输入邮箱">
|
||||
<div class="error dn email_err"></div>
|
||||
</div>
|
||||
<div class="inputInfo">
|
||||
<label>公司</label>
|
||||
<input id="company_d" class="inpu" type="text" autocomplete="off" placeholder="请输入公司">
|
||||
</div>
|
||||
<div class="inputInfo">
|
||||
<label>部门</label>
|
||||
<input id="department_d" class="inpu" type="text" autocomplete="off" placeholder="请输入部门">
|
||||
</div>
|
||||
<div class="inputInfo">
|
||||
<label>职位</label>
|
||||
<input id="position_d" class="inpu" type="text" autocomplete="off" placeholder="请输入职位">
|
||||
</div>
|
||||
</div>
|
||||
<div style="text-align: center">
|
||||
<#--<a style="width: 100px;background: #f08300;line-height: 40px;color: #fff;display: block;float: left;margin-left: 100px;" id="addData">提交</a>
|
||||
<a style="width: 100px;background: #f08300;line-height: 40px;color: #fff;float: left;margin-left: 20px;" id="close_d">返回</a>-->
|
||||
|
||||
<a style="width: 25%;background: #f08300;line-height: 40px;color: #fff;display: block;float: left;margin-left: 23%;" id="addData">提交</a>
|
||||
<a style="width: 25%;background: #f08300;line-height: 40px;color: #fff;float: left;margin-left: 4%;" id="close_d">返回</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<#include "/header/v5/_footer.ftl"/>
|
||||
|
||||
<script src="${staticUrl}/js/fangjia/v5/main.js?v=${version}"></script>
|
||||
<script>
|
||||
$("#seekAdvice,#seekAdvice2,#seekAdvice_mobile").click(function(){
|
||||
$("#name_d").val(""),
|
||||
$("#mobile_d").val(""),
|
||||
$("#email_d").val(""),
|
||||
$("#company_d").val(""),
|
||||
$("#department_d").val(""),
|
||||
$("#position_d").val("")
|
||||
$(".mask").show();
|
||||
$(".dialogBoxSolution").removeClass("dn");
|
||||
});
|
||||
|
||||
$("#close_d").click(function(){
|
||||
$(".mask").hide();
|
||||
$(".dialogBoxSolution").addClass("dn");
|
||||
});
|
||||
|
||||
|
||||
$("#addData").click(function(){
|
||||
if(!checkName()){
|
||||
return false;
|
||||
}
|
||||
|
||||
if(!checkMobile()){
|
||||
return false;
|
||||
}
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url : " ${wwwUrl}/adviceLeads/doAdd",
|
||||
data : {
|
||||
name:$("#name_d").val(),
|
||||
mobile:$("#mobile_d").val(),
|
||||
email:$("#email_d").val(),
|
||||
company:$("#company_d").val(),
|
||||
department:$("#department_d").val(),
|
||||
position:$("#position_d").val()
|
||||
},
|
||||
success : function(result) {
|
||||
var re = $.parseJSON(result);
|
||||
if(re.result == "fail"){
|
||||
alert("申请失败,请重试");
|
||||
} else {
|
||||
$(".mask").hide();
|
||||
$(".dialogBoxSolution").addClass("dn");
|
||||
popMsg("申请成功");
|
||||
}
|
||||
},error:function (data, status) {
|
||||
alert("申请失败,请重试");
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
function checkMobile(){
|
||||
var val = $("#mobile_d").val();
|
||||
if ($.trim(val) == "") {
|
||||
$("#mobile_d").parent().find(".error span").text("手机号码不能为空");
|
||||
$("#mobile_d").parent().find(".error").show();
|
||||
return false;
|
||||
}else if(!(/^1\d{10}$/.test(val))){
|
||||
$("#mobile_d").parent().find(".error span").text("手机号码格式错误");
|
||||
$("#mobile_d").parent().find(".error").show();
|
||||
return false;
|
||||
} else{
|
||||
$("#mobile_d").parent().find(".error").text("");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
function checkName(){
|
||||
var val = $("#name_d").val();
|
||||
if ($.trim(val) == "") {
|
||||
$("#name_d").parent().find(".error span").text("您的姓名不能为空");
|
||||
$("#name_d").parent().find(".error").show();
|
||||
return false;
|
||||
}else{
|
||||
$("#name_d").parent().find(".error").hide();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -179,7 +179,7 @@
|
||||
<span>前台总机:021-62393138</span><br>
|
||||
<span>客服热线:4001883787</span><br>
|
||||
<a href="${cityUrl}/ershoufang">上海找房子</a><span>,</span><a href="${cityUrl}/gujia">估房价</a><span>,百度 </span><a href="https://www.baidu.com">房价网</a><br>
|
||||
<span>电子邮箱:service@fangjia.com</span>
|
||||
<span>电子邮箱:gujia@fangjia.com</span>
|
||||
</div>
|
||||
<div class="wx"></div>
|
||||
</div>
|
||||
|
||||
@@ -106,7 +106,7 @@
|
||||
<span>前台总机:021-62393138</span><br>
|
||||
<span>客服热线:4001883787</span><br>
|
||||
<a href="${cityUrl}/ershoufang">上海找房子</a><span>,</span><a href="${cityUrl}/gujia">估房价</a><span>,百度 </span><a href="https://www.baidu.com">房价网</a><br>
|
||||
<span>电子邮箱:service@fangjia.com</span>
|
||||
<span>电子邮箱:gujia@fangjia.com</span>
|
||||
</div>
|
||||
<div class="wx"></div>
|
||||
</div>
|
||||
|
||||
@@ -75,7 +75,7 @@
|
||||
<span>前台总机:021-62393138</span><br>
|
||||
<span>客服热线:4001883787</span><br>
|
||||
<a href="${cityUrl}/ershoufang">上海找房子</a><span>,</span><a href="${cityUrl}/gujia">估房价</a><span>,百度 </span><a href="https://www.baidu.com">房价网</a><br>
|
||||
<span>电子邮箱:service@fangjia.com</span>
|
||||
<span>电子邮箱:gujia@fangjia.com</span>
|
||||
</div>
|
||||
<div class="wx"></div>
|
||||
</div>
|
||||
|
||||
@@ -123,7 +123,7 @@
|
||||
<a href="http://support.fangjia.com/pinpai">热门品牌</a>
|
||||
</p>
|
||||
<div class="footer_in por">
|
||||
客服热线:4001883787 电子邮箱:service@fangjia.com
|
||||
客服热线:4001883787 电子邮箱:gujia@fangjia.com
|
||||
<br>
|
||||
©2006-2013 <strong class="yhua">房价</strong>网 版权所有 沪ICP备10203734号-1
|
||||
<b class="bg_common"></b>
|
||||
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
package com.fangjia.dal.mongo.fangjia.dao;
|
||||
|
||||
import com.fangjia.dal.MongoDao;
|
||||
import com.fangjia.dal.mongo.fangjia.model.AdviceLeads;
|
||||
|
||||
public interface AdviceLeadsDao extends MongoDao<AdviceLeads> {
|
||||
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
package com.fangjia.dal.mongo.fangjia.dao;
|
||||
|
||||
import com.fangjia.dal.MongoDaoImpl;
|
||||
import com.fangjia.dal.mongo.fangjia.model.AdviceLeads;
|
||||
|
||||
public class AdviceLeadsDaoImpl extends MongoDaoImpl<AdviceLeads> implements AdviceLeadsDao {
|
||||
|
||||
}
|
||||
+175
@@ -0,0 +1,175 @@
|
||||
package com.fangjia.dal.mongo.fangjia.model;
|
||||
|
||||
import com.fangjia.dal.MongoEntity;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 新版房价网咨询线索表
|
||||
*
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "fangjia_coresite.advice_leads")
|
||||
public class AdviceLeads implements MongoEntity {
|
||||
|
||||
private static final long serialVersionUID = 3318465986161755755L;
|
||||
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 姓名
|
||||
*/
|
||||
private String name;
|
||||
|
||||
|
||||
/**
|
||||
* 手机
|
||||
*/
|
||||
private String mobile;
|
||||
|
||||
|
||||
/**
|
||||
* 邮箱
|
||||
*/
|
||||
private String email;
|
||||
|
||||
/**
|
||||
* 公司
|
||||
*/
|
||||
private String company;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 部门
|
||||
*/
|
||||
private String department;
|
||||
|
||||
/**
|
||||
* 职位
|
||||
*/
|
||||
private String position;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createDate;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
private Date modifyDate;
|
||||
|
||||
/**
|
||||
* 临时用户id
|
||||
*/
|
||||
private String tempId;
|
||||
|
||||
/**
|
||||
* 真实用户id
|
||||
*/
|
||||
private String userId;
|
||||
|
||||
@Id
|
||||
@GeneratedValue
|
||||
@Column(name = "_id", unique = true, nullable = false)
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
@Column(name = "name")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
@Column(name = "company")
|
||||
public String getCompany() {
|
||||
return company;
|
||||
}
|
||||
|
||||
public void setCompany(String company) {
|
||||
this.company = company;
|
||||
}
|
||||
|
||||
@Column(name = "mobile")
|
||||
public String getMobile() {
|
||||
return mobile;
|
||||
}
|
||||
|
||||
public void setMobile(String mobile) {
|
||||
this.mobile = mobile;
|
||||
}
|
||||
|
||||
@Column(name = "email")
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
|
||||
public void setEmail(String email) {
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
@Column(name = "department")
|
||||
public String getDepartment() {
|
||||
return department;
|
||||
}
|
||||
|
||||
public void setDepartment(String department) {
|
||||
this.department = department;
|
||||
}
|
||||
|
||||
@Column(name = "position")
|
||||
public String getPosition() {
|
||||
return position;
|
||||
}
|
||||
|
||||
public void setPosition(String position) {
|
||||
this.position = position;
|
||||
}
|
||||
|
||||
@Column(name = "c_date")
|
||||
public Date getCreateDate() {
|
||||
return createDate;
|
||||
}
|
||||
|
||||
public void setCreateDate(Date createDate) {
|
||||
this.createDate = createDate;
|
||||
}
|
||||
|
||||
@Column(name = "m_date")
|
||||
public Date getModifyDate() {
|
||||
return modifyDate;
|
||||
}
|
||||
|
||||
public void setModifyDate(Date modifyDate) {
|
||||
this.modifyDate = modifyDate;
|
||||
}
|
||||
|
||||
@Column(name = "temp_id")
|
||||
public String getTempId() {
|
||||
return tempId;
|
||||
}
|
||||
|
||||
public void setTempId(String tempId) {
|
||||
this.tempId = tempId;
|
||||
}
|
||||
|
||||
@Column(name = "user_id")
|
||||
public String getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
}
|
||||
+1
-1
@@ -34,7 +34,7 @@ class BigdataCommunityBatch extends BaseBatch{
|
||||
|
||||
@Override
|
||||
public void process(Object args) {
|
||||
def citys = CcbCommonUtils.citys;
|
||||
def citys = ["宁波"]// CcbCommonUtils.citys;
|
||||
def rows = []
|
||||
|
||||
def headers = ["城市ID","行政区ID","小区ID","行政区名称","小区名称","详细地址","纬度","经度","占地总面积","建筑总面积","绿化率","容积率","车位数量","建筑年代","房屋用途",
|
||||
|
||||
+41
-5
@@ -13,6 +13,7 @@ import com.fangjia.script.util.FangJiaAreaMapUtils
|
||||
import com.mongodb.BasicDBObject
|
||||
import com.mongodb.DBObject
|
||||
import groovy.sql.Sql
|
||||
import org.apache.commons.lang.StringUtils
|
||||
import org.bson.types.ObjectId
|
||||
import org.elasticsearch.index.query.BoolQueryBuilder
|
||||
import org.elasticsearch.index.query.QueryBuilder
|
||||
@@ -53,6 +54,7 @@ class BigdataForsaleBatch extends BaseBatch{
|
||||
FITMENTS_TYPES_MAPS.put("豪装", ["豪华装修", "高档", "豪华", "豪装", "高级装修", "高装", "奢侈"])
|
||||
}
|
||||
|
||||
public static final String[] TAGS = ["独栋", "联排", "叠加", "双拼", "花园面积", "泳池", "别墅", "带花园", "洋房", "叠拼", "独院", "联体", "微墅", "大平墅"];
|
||||
public static ExecutorService fixedThreadPool = Executors.newFixedThreadPool(80)
|
||||
|
||||
def sqlInstance = Sql.newInstance("jdbc:oracle:thin:@192.168.0.100:31521:orcl",
|
||||
@@ -64,7 +66,7 @@ class BigdataForsaleBatch extends BaseBatch{
|
||||
|
||||
@Override
|
||||
public void process(Object args) {
|
||||
def citys = ["陵水","文昌","保亭"]//CcbCommonUtils.citys;
|
||||
def citys = CcbCommonUtils.citys;
|
||||
def index = 0
|
||||
def cityCodeDataMap = CcbCommonUtils.findCityCodeValue()
|
||||
for(def city : citys){
|
||||
@@ -157,10 +159,7 @@ class BigdataForsaleBatch extends BaseBatch{
|
||||
FileUtils.batchCreateFile(allDatas, fileName, headers, "utf-8", true);
|
||||
println "txt文件生成 "
|
||||
|
||||
def rets = []
|
||||
rets << headers
|
||||
rets.addAll(allDatas)
|
||||
ExcelUtils.write("d:\\数据\\建行\\房产估值\\数据文件\\bigdata_forsale_${city}.xlsx", rets, "数据")
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -349,6 +348,10 @@ class BigdataForsaleBatch extends BaseBatch{
|
||||
if(floor && floor.toInteger()<1){
|
||||
floor = null
|
||||
}
|
||||
def vallaFlag = isVilla(seawater.area, seawater.name, seawater.height, seawater.room)
|
||||
if(vallaFlag){
|
||||
continue;
|
||||
}
|
||||
|
||||
def rowMap = [:];
|
||||
if(cat == "rent"){
|
||||
@@ -413,6 +416,39 @@ class BigdataForsaleBatch extends BaseBatch{
|
||||
return rets;
|
||||
}
|
||||
|
||||
/**
|
||||
* 是否是别墅
|
||||
* @return
|
||||
*/
|
||||
public boolean isVilla(area, name, height, room) {
|
||||
if (area == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (area >= 150 && StringUtils.indexOfAny(name, TAGS) > -1) {
|
||||
return true;
|
||||
}
|
||||
|
||||
boolean ret = false;
|
||||
if (height != null && room != null) {
|
||||
if (height <= 3) {
|
||||
if (area > 200 && room >= 5) {
|
||||
ret = true;
|
||||
}
|
||||
}
|
||||
} else if (height == null && room != null) {
|
||||
if (area > 360 && room >= 6) {
|
||||
ret = true;
|
||||
}
|
||||
} else if (height == null && room == null) {
|
||||
if (area > 500) {
|
||||
ret = true;
|
||||
}
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
def getPublicDate(def pDate){
|
||||
|
||||
if(pDate>=20181001 && pDate<20200201){
|
||||
|
||||
+124
-30
@@ -1,5 +1,6 @@
|
||||
package com.fangjia.script.ccbevaluation
|
||||
|
||||
import com.fangjia.core.RegionData
|
||||
import com.fangjia.core.util.GeoUtils
|
||||
import com.fangjia.script.BaseBatch
|
||||
import com.fangjia.script.BatchOwner
|
||||
@@ -8,12 +9,13 @@ import com.fangjia.script.commData.CommonDatautils
|
||||
import com.fangjia.script.gj.ccb.FileUtils
|
||||
import com.fangjia.script.util.DateUtils
|
||||
import com.fangjia.script.util.ExcelUtils
|
||||
import com.fangjia.script.yinjihaun.amap.GaoDeApiUtils
|
||||
|
||||
import java.util.concurrent.CountDownLatch
|
||||
import java.util.concurrent.ExecutorService
|
||||
import java.util.concurrent.Executors
|
||||
import java.util.concurrent.atomic.AtomicLong
|
||||
|
||||
import org.bson.types.ObjectId
|
||||
/**
|
||||
* 建行数据poi同步
|
||||
*/
|
||||
@@ -31,31 +33,35 @@ class BigdataPoiBatch extends BaseBatch{
|
||||
def cityCodeDataMap = CcbCommonUtils.findCityCodeValue()
|
||||
def citys = CcbCommonUtils.citys;
|
||||
// def path = "D:\\数据\\建行\\房产估值\\poi\\公交.xlsx"
|
||||
def subwaydatas = ExcelUtils.read("D:\\数据\\建行\\房产估值\\poi\\地铁.xlsx", 0,1)
|
||||
def busDatas = ExcelUtils.read("D:\\数据\\建行\\房产估值\\poi\\公交.xlsx", 0,1)
|
||||
def hosptialDatas = ExcelUtils.read("D:\\数据\\建行\\房产估值\\poi\\医院.xlsx", 0,1)
|
||||
def bankDatas = ExcelUtils.read("D:\\数据\\建行\\房产估值\\poi\\银行.xlsx", 0,1)
|
||||
def dealDatas = ExcelUtils.read("D:\\数据\\建行\\房产估值\\poi\\丧葬服务.xlsx", 0,1)
|
||||
def schoolDatas = ExcelUtils.read("D:\\数据\\建行\\房产估值\\poi\\学校.xlsx", 0,1)
|
||||
|
||||
// def subwaydatas = ExcelUtils.read("D:\\数据\\建行\\房产估值\\poi\\地铁.xlsx", 0,1)
|
||||
// def busDatas = ExcelUtils.read("D:\\数据\\建行\\房产估值\\poi\\公交.xlsx", 0,1)
|
||||
// def hosptialDatas = ExcelUtils.read("D:\\数据\\建行\\房产估值\\poi\\医院.xlsx", 0,1)
|
||||
// def bankDatas = ExcelUtils.read("D:\\数据\\建行\\房产估值\\poi\\银行.xlsx", 0,1)
|
||||
// def dealDatas = ExcelUtils.read("D:\\数据\\建行\\房产估值\\poi\\丧葬服务.xlsx", 0,1)
|
||||
// def schoolDatas = ExcelUtils.read("D:\\数据\\建行\\房产估值\\poi\\学校.xlsx", 0,1)
|
||||
def hosptialDatas = ExcelUtils.read("D:\\数据\\建行\\房产估值\\poi\\中学.xlsx", 0,1)
|
||||
def rets = []
|
||||
def rows1 = createDatas(citys, cityCodeDataMap, subwaydatas, "地铁")
|
||||
|
||||
def rows1 = createDatas(citys, cityCodeDataMap, hosptialDatas, "学校")
|
||||
rets.addAll(rows1)
|
||||
|
||||
def rows2 = createDatas(citys, cityCodeDataMap, busDatas, "公交")
|
||||
rets.addAll(rows2)
|
||||
// def rows1 = createDatas(citys, cityCodeDataMap, subwaydatas, "地铁")
|
||||
// rets.addAll(rows1)
|
||||
//
|
||||
def rows3 = createDatas(citys, cityCodeDataMap, hosptialDatas, "医院")
|
||||
rets.addAll(rows3)
|
||||
// def rows2 = createDatas(citys, cityCodeDataMap, busDatas, "公交")
|
||||
// rets.addAll(rows2)
|
||||
//
|
||||
def rows4 = createDatas(citys, cityCodeDataMap, bankDatas, "银行")
|
||||
rets.addAll(rows4)
|
||||
|
||||
def rows5 = createDatas(citys, cityCodeDataMap, dealDatas, "丧葬服务")
|
||||
rets.addAll(rows5)
|
||||
|
||||
def rows6 = createDatas(citys, cityCodeDataMap, schoolDatas, "学校")
|
||||
rets.addAll(rows6)
|
||||
// def rows3 = createDatas(citys, cityCodeDataMap, hosptialDatas, "医院")
|
||||
// rets.addAll(rows3)
|
||||
//
|
||||
// def rows4 = createDatas(citys, cityCodeDataMap, bankDatas, "银行")
|
||||
// rets.addAll(rows4)
|
||||
//
|
||||
// def rows5 = createDatas(citys, cityCodeDataMap, dealDatas, "丧葬服务")
|
||||
// rets.addAll(rows5)
|
||||
//
|
||||
// def rows6 = createDatas(citys, cityCodeDataMap, schoolDatas, "学校")
|
||||
// rets.addAll(rows6)
|
||||
|
||||
def headers = ["城市ID","行政区ID","ID","Poi名称","类型","类型编码","纬度","经度","备注","创建时间","更新时间","来源公司"]
|
||||
|
||||
@@ -113,7 +119,7 @@ class BigdataPoiBatch extends BaseBatch{
|
||||
void run() {
|
||||
try{
|
||||
totalCount.addAndGet(1)
|
||||
if(citys.contains(d['D'])){
|
||||
if(citys.contains(d['A'])){
|
||||
def ret = addValue(d, cityCodeDataMap, cityDistMap, type)
|
||||
if(ret){
|
||||
rets << ret
|
||||
@@ -133,24 +139,49 @@ class BigdataPoiBatch extends BaseBatch{
|
||||
return rets;
|
||||
}
|
||||
|
||||
def addValue(d, cityCodeDataMap, cityDistMap, type){
|
||||
def getRegionByLocation(lng, lat){
|
||||
def jsonObject = GaoDeApiUtils.geocode(lng.toString()+","+lat.toString())
|
||||
|
||||
if(jsonObject && jsonObject.info=="OK"){
|
||||
def compent = jsonObject.regeocode.addressComponent
|
||||
if(compent){
|
||||
def district = compent.district
|
||||
return district;
|
||||
}
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
||||
def addValue2(d, cityCodeDataMap, cityDistMap, type){
|
||||
def ret = []
|
||||
def citycode = cityCodeDataMap.get(d['D'])
|
||||
def citycode = cityCodeDataMap.get(d['E'])
|
||||
ret << citycode
|
||||
def distCodeMap = cityDistMap.get(d['D'])
|
||||
if(d['E']){
|
||||
def distObj = distCodeMap.get(d['E'])
|
||||
|
||||
def region =getRegionByLocation(d['H'], d['I'])
|
||||
def distCodeMap = cityDistMap.get(d['E'])
|
||||
if(region){
|
||||
region = RegionData.formatRegion(d['E'], region)
|
||||
}
|
||||
if(region){
|
||||
def distObj = distCodeMap.get(region)
|
||||
if(distObj){
|
||||
ret << distObj.district_code
|
||||
}else{
|
||||
ret << ""
|
||||
println d['D']+" " + d['E']+" 无对应的区域编码 "+d['F']
|
||||
println d['E']+" " + region+" 无对应的区域编码 "+d['F']
|
||||
}
|
||||
}else{
|
||||
ret << ""
|
||||
}
|
||||
ret << d['A']
|
||||
ret << d['F']
|
||||
|
||||
if(d['A']){
|
||||
ret << d['A']
|
||||
}else{
|
||||
ret << new ObjectId()
|
||||
|
||||
}
|
||||
|
||||
ret << d['G']
|
||||
ret << type
|
||||
|
||||
if(type=="地铁"){
|
||||
@@ -192,4 +223,67 @@ class BigdataPoiBatch extends BaseBatch{
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
def addValue(d, cityCodeDataMap, cityDistMap, type){
|
||||
def ret = []
|
||||
def citycode = cityCodeDataMap.get(d['A'])
|
||||
ret << citycode
|
||||
def distCodeMap = cityDistMap.get(d['A'])
|
||||
def region =RegionData.formatRegion(d['A'], d['B'])
|
||||
|
||||
if(region){
|
||||
|
||||
def distObj = distCodeMap.get(region)
|
||||
if(distObj){
|
||||
ret << distObj.district_code
|
||||
}else{
|
||||
ret << ""
|
||||
println d['A']+" " + d['B']+" 无对应的区域编码 "+d['F']
|
||||
}
|
||||
}else{
|
||||
ret << ""
|
||||
}
|
||||
ret << new ObjectId()
|
||||
ret << d['C']
|
||||
ret << type
|
||||
|
||||
if(type=="地铁"){
|
||||
ret << "cz125"
|
||||
}else if(type=="公交"){
|
||||
ret << "cz123"
|
||||
}else if(type=="医院"){
|
||||
ret << "hp111"
|
||||
}else if(type == "银行"){
|
||||
ret << "se118"
|
||||
}else if(type =="丧葬服务"){
|
||||
ret << "ob101"
|
||||
}else if(type =="学校"){
|
||||
// if(d['F'].contains("中学")){
|
||||
ret << "ed138"
|
||||
// }else if(d['F'].contains("小学")){
|
||||
// ret << "ed114"
|
||||
// }
|
||||
}
|
||||
if(d['I']){
|
||||
def lat = d['J'].toDouble()
|
||||
def lng = d['I'].toDouble()
|
||||
def loactionMap = GeoUtils.gcjToGps84(lat, lng)
|
||||
if(loactionMap){
|
||||
ret << com.fangjia.core.util.DataUtil.roundDouble(loactionMap.lat, 6)
|
||||
ret << com.fangjia.core.util.DataUtil.roundDouble(loactionMap.lng,6)
|
||||
}else{
|
||||
ret << ""
|
||||
ret << ""
|
||||
}
|
||||
}else{
|
||||
ret << ""
|
||||
ret << ""
|
||||
}
|
||||
ret << ""
|
||||
ret << DateUtils.formatDateByPattern(new Date(), "yyyy-MM-dd HH:mm:ss")
|
||||
ret << DateUtils.formatDateByPattern(new Date(), "yyyy-MM-dd HH:mm:ss")
|
||||
ret << "FJW"
|
||||
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
+16
-7
@@ -23,8 +23,8 @@ class TradeStatLog {
|
||||
|
||||
static main(args) {
|
||||
def task = new TradeStatLog()
|
||||
//task.run()
|
||||
task.thirdPartyStat()
|
||||
task.run()
|
||||
// task.thirdPartyStat()
|
||||
// println Calendar.getInstance().get(Calendar.YEAR)
|
||||
|
||||
}
|
||||
@@ -32,33 +32,40 @@ class TradeStatLog {
|
||||
def run(){
|
||||
def citys = CcbCommonUtils.citys;
|
||||
def rets = []
|
||||
rets << ["城市","5月总量","6月总量","贝壳","链家", "我爱我家","房天下","中原"]
|
||||
rets << ["城市","5月总量","6月总量","7月总量","贝壳","链家", "我爱我家","房天下","中原"]
|
||||
def sources = ["贝壳找房","链家在线", "我爱我家","房天下","中原地产"]
|
||||
def startDate = "2021-05-01"
|
||||
def date = "2021-06-01"
|
||||
def endDate = "2021-07-01"
|
||||
def newDate = "2021-08-01"
|
||||
|
||||
for(def city : citys){
|
||||
def lastMonthCount = findTradesCount(city, null, DateUtils.parseFromTightByPattern(startDate,"yyyy-MM-dd"), DateUtils.parseFromTightByPattern(date,"yyyy-MM-dd"))
|
||||
def curMonthCount = findTradesCount(city, null, DateUtils.parseFromTightByPattern(date,"yyyy-MM-dd"), DateUtils.parseFromTightByPattern(endDate,"yyyy-MM-dd"))
|
||||
def nearMonthCount = findTradesCount(city, null, DateUtils.parseFromTightByPattern(endDate,"yyyy-MM-dd"), DateUtils.parseFromTightByPattern(newDate,"yyyy-MM-dd"))
|
||||
|
||||
def ret = []
|
||||
ret << city
|
||||
|
||||
if(city == "上海"){
|
||||
def lastMonthYoudaCount = getYouDaData(DateUtils.parseFromTightByPattern(startDate,"yyyy-MM-dd"), DateUtils.parseFromTightByPattern(date,"yyyy-MM-dd"))
|
||||
def curMonthYoudaCount = getYouDaData(DateUtils.parseFromTightByPattern(date,"yyyy-MM-dd"), DateUtils.parseFromTightByPattern(endDate,"yyyy-MM-dd"))
|
||||
def nearMonthYoudaCount = getYouDaData(DateUtils.parseFromTightByPattern(endDate,"yyyy-MM-dd"), DateUtils.parseFromTightByPattern(newDate,"yyyy-MM-dd"))
|
||||
def a = lastMonthCount.toInteger() + lastMonthYoudaCount.toInteger()
|
||||
def b = curMonthCount.toInteger() + curMonthYoudaCount.toInteger()
|
||||
def c = nearMonthCount.toInteger() + nearMonthYoudaCount.toInteger()
|
||||
ret << a
|
||||
ret << b
|
||||
def c = (b-a)*100/a
|
||||
def pre = DataHandleUtils.getDoubleRound(2, c)
|
||||
ret << c
|
||||
def d = (c-b)*100/a
|
||||
def pre = DataHandleUtils.getDoubleRound(2, d)
|
||||
ret << pre
|
||||
}else{
|
||||
ret << lastMonthCount
|
||||
ret << curMonthCount
|
||||
|
||||
ret << nearMonthCount
|
||||
if(lastMonthCount){
|
||||
def a = (curMonthCount-lastMonthCount)*100/lastMonthCount
|
||||
def a = (nearMonthCount-curMonthCount)*100/curMonthCount
|
||||
def pre = DataHandleUtils.getDoubleRound(2, a)
|
||||
ret << pre
|
||||
}else{
|
||||
@@ -70,8 +77,10 @@ class TradeStatLog {
|
||||
for(def source : sources){
|
||||
def sourceLastMonthCount = findTradesCount(city, source, DateUtils.parseFromTightByPattern(startDate,"yyyy-MM-dd"), DateUtils.parseFromTightByPattern(date,"yyyy-MM-dd"))
|
||||
def sourceCurMonthCount = findTradesCount(city, source, DateUtils.parseFromTightByPattern(date,"yyyy-MM-dd"), DateUtils.parseFromTightByPattern(endDate,"yyyy-MM-dd"))
|
||||
def sourceNearMonthCount = findTradesCount(city, source, DateUtils.parseFromTightByPattern(endDate,"yyyy-MM-dd"), DateUtils.parseFromTightByPattern(newDate,"yyyy-MM-dd"))
|
||||
ret << sourceLastMonthCount
|
||||
ret << sourceCurMonthCount
|
||||
ret << sourceNearMonthCount
|
||||
}
|
||||
rets << ret
|
||||
println ret
|
||||
|
||||
+26
-13
@@ -4,6 +4,7 @@ import com.fangjia.script.util.CommonUtils
|
||||
import com.fangjia.script.util.DateUtils
|
||||
import com.mongodb.BasicDBObject
|
||||
import org.apache.solr.common.util.Hash
|
||||
import org.bson.types.ObjectId
|
||||
|
||||
/**
|
||||
* 福州农商行
|
||||
@@ -16,7 +17,7 @@ class SynchDistrictPrice {
|
||||
def districtDetailColl = CrawalDBUtil.getDistrictDetailColl();
|
||||
// def sourceMap = ["jiwu.com":"吉屋","58.com":"58同城","lianjia.com":"链家","ke.com":"贝壳找房","fang.com":"搜房","fangdd.com":"房多多","house365.com":"365淘房",
|
||||
// "anjuke.com":"安居客","cityhouse.cn":"城市房产"]
|
||||
def sourceMap = ["zhuge.com":"诸葛找房"]
|
||||
def sourceMap = ["lianjia.com":"链家"]
|
||||
static main(args) {
|
||||
def task = new SynchDistrictPrice()
|
||||
task.run()
|
||||
@@ -27,11 +28,13 @@ class SynchDistrictPrice {
|
||||
def citys = CommonUtils.findAllCity()
|
||||
|
||||
sourceMap.each { k, v ->
|
||||
for(def city : citys){
|
||||
def rets = findCrawlDistrictDetails(city, k, v)
|
||||
println city +" "+rets.size()
|
||||
synchData(city, rets, v)
|
||||
|
||||
for(def city : citys){
|
||||
if(!["上海","北京","海口"].contains(city)){
|
||||
def rets = findCrawlDistrictDetails(city, k, v)
|
||||
println city +" "+rets.size()
|
||||
synchData(city, rets, v)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -77,6 +80,7 @@ class SynchDistrictPrice {
|
||||
q.put("city", city)
|
||||
def count = thirdPartyColl.count(q)
|
||||
def addIndex = 0
|
||||
def updateIndex = 0
|
||||
if(count==0){
|
||||
try{
|
||||
thirdPartyColl.insert(rets)
|
||||
@@ -86,13 +90,25 @@ class SynchDistrictPrice {
|
||||
println "["+source +"-"+city + "] add:"+ rets.size()+" 原抓取:"+count
|
||||
}else{
|
||||
for(def r : rets){
|
||||
def flag = findIsExists(r.city, r.region, r.name, SHORT_DATE, source)
|
||||
if(!flag){
|
||||
def obj= findIsExists(r.city, r.region, r.name, SHORT_DATE, source)
|
||||
if(obj){
|
||||
thirdPartyColl.remove(new BasicDBObject('_id',obj._id))
|
||||
addIndex++
|
||||
thirdPartyColl.save(r)
|
||||
}
|
||||
// if(!obj){
|
||||
// addIndex++
|
||||
// thirdPartyColl.save(r)
|
||||
// }else{
|
||||
// if(r.avg_price && !obj.avg_price){
|
||||
// def udata = new BasicDBObject()
|
||||
// udata.put("avg_price", r.avg_price)
|
||||
// thirdPartyColl.update(new BasicDBObject('_id',obj._id),new BasicDBObject('$set',udata))
|
||||
// updateIndex++
|
||||
// }
|
||||
// }
|
||||
}
|
||||
println "["+source +"-"+city + "] add:"+ addIndex+" 原抓取:"+count
|
||||
println "["+source +"-"+city + "] add:"+ addIndex+" 原抓取:"+count +" 修改:"+updateIndex
|
||||
}
|
||||
|
||||
|
||||
@@ -105,10 +121,7 @@ class SynchDistrictPrice {
|
||||
q.put("city", city)
|
||||
q.put("region", region)
|
||||
q.put("name", name)
|
||||
def count = thirdPartyColl.count(q)
|
||||
if(count){
|
||||
return true
|
||||
}
|
||||
return false
|
||||
def obj = thirdPartyColl.findOne(q)
|
||||
return obj
|
||||
}
|
||||
}
|
||||
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
package com.fangjia.service.fangjia;
|
||||
|
||||
import com.fangjia.dal.mongo.fangjia.model.AdviceLeads;
|
||||
|
||||
/**
|
||||
* 新版房价网咨询线索相关业务
|
||||
*
|
||||
*/
|
||||
public interface AdviceLeadsService {
|
||||
|
||||
void save(AdviceLeads adviceLeads);
|
||||
|
||||
}
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
package com.fangjia.service.fangjia;
|
||||
|
||||
import com.fangjia.dal.mongo.fangjia.dao.AdviceLeadsDao;
|
||||
import com.fangjia.dal.mongo.fangjia.model.AdviceLeads;
|
||||
|
||||
public class AdviceLeadsServiceImpl implements AdviceLeadsService {
|
||||
|
||||
private AdviceLeadsDao adviceLeadsDao;
|
||||
|
||||
@Override
|
||||
public void save(AdviceLeads adviceLeads) {
|
||||
adviceLeadsDao.save(adviceLeads);
|
||||
}
|
||||
|
||||
public AdviceLeadsDao getAdviceLeadsDao() {
|
||||
return adviceLeadsDao;
|
||||
}
|
||||
|
||||
public void setAdviceLeadsDao(AdviceLeadsDao adviceLeadsDao) {
|
||||
this.adviceLeadsDao = adviceLeadsDao;
|
||||
}
|
||||
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 168 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 50 KiB |
Reference in New Issue
Block a user