This commit is contained in:
2023-05-05 17:52:41 +08:00
89 changed files with 5668 additions and 1241 deletions
Vendored
+7 -7
View File
@@ -2,7 +2,7 @@
pipeline {
agent any
parameters {
choice(name: 'PROJECT_NAME', choices: ['fangjiabkoff', 'chafangtong', 'fangjia', 'fangjiapds', 'fangjiastatic'], description: '请选择发布的项目')
choice(name: 'PROJECT_NAME', choices: ['fangjiabkoff', 'chafangtong', 'fangjia', 'fangjiapds', 'fangjiastatic', 'geluke'], description: '请选择发布的项目')
}
tools {
jdk 'JDK8'
@@ -17,12 +17,12 @@ pipeline {
stage('Maven Build') {
steps {
script {
def projects = ['fangjiabkoff', 'chafangtong', 'fangjia', 'fangjiapds', 'fangjiastatic']
def projects = ['fangjiabkoff', 'chafangtong', 'fangjia', 'fangjiapds', 'fangjiastatic', 'geluke']
for (def project : projects) {
if (params.PROJECT_NAME == project) {
dir("deliverables/${project}") {
withMaven(globalMavenSettingsConfig: '426b9a25-aa0d-47d3-a24c-8abdfc4421ff') {
sh 'mvn clean package -Dmaven.test.skip=true'
sh 'mvn clean package -Dmaven.test.skip=true'
}
}
}
@@ -33,8 +33,8 @@ pipeline {
stage('Docker Build') {
steps {
script {
def projects = ['fangjiabkoff', 'chafangtong', 'fangjia', 'fangjiapds', 'fangjiastatic']
def imagesName = ['fangjiabkoff': 'fangjia-bkoff', 'chafangtong': 'chafangtong', 'fangjia': 'fangjia-coresite', 'fangjiapds': 'fangjia-pds', 'fangjiastatic': 'fangjia-static']
def projects = ['fangjiabkoff', 'chafangtong', 'fangjia', 'fangjiapds', 'fangjiastatic', 'geluke']
def imagesName = ['fangjiabkoff': 'fangjia-bkoff', 'chafangtong': 'chafangtong', 'fangjia': 'fangjia-coresite', 'fangjiapds': 'fangjia-pds', 'fangjiastatic': 'fangjia-static', 'geluke':"geluke"]
for (def project : projects) {
if (params.PROJECT_NAME == project) {
dir("projects/${imagesName[project]}") {
@@ -53,8 +53,8 @@ pipeline {
stage('K8S Deploy') {
steps {
script {
def projects = ['fangjiabkoff', 'chafangtong', 'fangjia', 'fangjiapds', 'fangjiastatic']
def k8s_config_map = ['fangjiabkoff': 'fangjia-bkoff', 'chafangtong': 'chafangtong', 'fangjia': 'fangjia-coresite', 'fangjiapds': 'fangjia-pds', 'fangjiastatic': 'fangjia-static']
def projects = ['fangjiabkoff', 'chafangtong', 'fangjia', 'fangjiapds', 'fangjiastatic', 'geluke']
def k8s_config_map = ['fangjiabkoff': 'fangjia-bkoff', 'chafangtong': 'chafangtong', 'fangjia': 'fangjia-coresite', 'fangjiapds': 'fangjia-pds', 'fangjiastatic': 'fangjia-static', 'geluke':"geluke"]
for (def project : projects) {
if (params.PROJECT_NAME == project) {
dir("deliverables/k8s") {
@@ -1,5 +1,6 @@
package com.fangjia.coresite.controllers;
import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
@@ -18,6 +19,8 @@ import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import com.fangjia.core.util.*;
import com.fangjia.dal.QueryParam;
import com.fangjia.service.datastore.*;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang.ArrayUtils;
import org.apache.commons.lang.StringUtils;
@@ -69,12 +72,6 @@ import com.fangjia.service.bo.HouseBo;
import com.fangjia.service.bo.NewsBo;
import com.fangjia.service.bo.RentHouseBo;
import com.fangjia.service.common.CookieName;
import com.fangjia.service.datastore.DistrictService;
import com.fangjia.service.datastore.HouseService;
import com.fangjia.service.datastore.MicroBlogService;
import com.fangjia.service.datastore.PicService;
import com.fangjia.service.datastore.RegionStatService;
import com.fangjia.service.datastore.RentHouseService;
import com.fangjia.service.datastore.bean.DistrictQueryBean;
import com.fangjia.service.datastore.bean.HousePriceQueryBean;
import com.fangjia.service.datastore.bean.HouseQueryBean;
@@ -405,6 +402,19 @@ public class DistrictController {
feedFooter(model);
return model;*/
}
public Object hidelistAction(HttpServletRequest request,DistrictModel model) throws Exception {
if(StringUtils.isNotBlank(model.getCityName())){
List<QueryParam> params = new ArrayList<QueryParam>();
params.add(new QueryParam("visible", 0));
params.add(new QueryParam("city", model.getCityName()));
params.add(new QueryParam("category", "district"));
List<District> districts = districtService.findAllByParams(params, 0, 0,new String[]{"city", "region", "name"});
model.setDistricts(districts);
CacheUtils.putValue(CacheUtils.CachePolicyEnum.NEXT_MONTH, this.getClass(), "district-hide-list-crawl-"+model.getCityName(), (Serializable) districts);
}
return model;
}
/**
* 底部热门推荐
@@ -80,4 +80,20 @@ public class IndustryController {
public Object consultingAction(FangjiaModel model) {
return model;
}
/**
* 证券
* @param model
* @return
*/
public Object bondAction(FangjiaModel model) {
return model;
}
/**
* 金融消费
*/
public Object costAction(FangjiaModel model){return model;}
}
@@ -10,15 +10,22 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.logging.Handler;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.fangjia.core.util.DataUtil;
import com.fangjia.core.util.DingDingMessageUtil;
import com.fangjia.core.util.HttpRequest;
import com.fangjia.core.util.HttpRequestException;
import com.fangjia.core.util.*;
import com.fangjia.coresite.FangjiaConfig;
import com.fangjia.coresite.model.FangjiaModel;
import com.fangjia.coresite.model.user.Message;
import com.fangjia.coresite.model.user.SendCodeJsonModel;
import com.fangjia.coresite.model.user.SendCodeModel;
import com.fangjia.coresite.model.user.UserRegJsonModel;
import com.fangjia.service.fangjia.FangJiaUserService;
import com.fangjia.service.sms.SmsException;
import com.fangjia.service.sms.SmsService;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import org.apache.commons.lang.StringUtils;
@@ -44,7 +51,16 @@ public class SaleLeadsController {
private SaleLeadsService saleLeadsService;
private ServerAreaService serverAreaService;
private NewsResourceService newsResourceService;
private NewsResourceService newsResourceService;
/**
* 短信Service
*/
private SmsService smsService;
/**
* 用户Service
*/
private FangJiaUserService fangJiaUserService;
private static final CoresiteCookieContext COOKIE_CONTEXT = CoresiteCookieContext
.getInstance();
@@ -252,7 +268,180 @@ public class SaleLeadsController {
return model;
}
private SaleLeads converValue(SaleLeads saleLeads) throws NoSuchMethodException, InvocationTargetException, IllegalAccessException, UnsupportedEncodingException {
public Object checkCodeAction(SendCodeModel model, HttpServletRequest req){
String mobile = StringUtils.trimToNull(model.getMobile());
String type = StringUtils.trimToNull(model.getType());
String code = StringUtils.trimToNull(model.getCode());
String codeToken = StringUtils.trimToNull(model.getCodeToken());
String imgCode = StringUtils.trimToNull(model.getImgCode());
UserRegJsonModel result = new UserRegJsonModel();
if (!checkIsMobile(mobile)) {
result.setResult(Message.RESULT_FAIL);
result.setMsg(Message.MIBILE_FORMAT);
return result;
}
String cacheCode = getCacheCode(mobile, type);
if (cacheCode == null) {
result.setResult(Message.RESULT_FAIL);
result.setMsg(Message.MOBILE_NOT_SEND_CODE);
return result;
}
if (!cacheCode.equals(code)) {
result.setResult(Message.RESULT_FAIL);
result.setMsg(Message.CODE_ERROR);
return result;
}
if (StringUtils.isBlank(mobile) || StringUtils.isBlank(type) || StringUtils.isBlank(codeToken) || StringUtils.isBlank(code) || StringUtils.isBlank(imgCode)) {
result.setResult(Message.RESULT_FAIL);
result.setMsg(Message.PARAM_NOT_NULL);
return result;
}
String imgCacheCode = getCacheCode(codeToken, Message.SMS_CODE_TYPE_LOGIN);
if(!imgCode.toLowerCase().equals(imgCacheCode)){
result.setResult(Message.RESULT_FAIL);
result.setMsg(Message.IMG_CODE_ERROR);
return result;
}
return result;
}
public Object doAdd2Action(SaleLeadsModel model, HttpServletRequest req,
HttpServletResponse res) throws UnsupportedEncodingException, NoSuchMethodException, IllegalAccessException, InvocationTargetException {
SaleLeads saleLeads = null;
if (saleLeads == null) {
saleLeads = model.getSaleLeads();
}
String refUrl = model.getBackUrl();
if(StringUtils.isBlank(refUrl)){
refUrl = req.getScheme() + "//www.fangjia.com";
}
// 城市所在省
ServerArea serverArea = serverAreaService.findByDisplay(saleLeads
.getCity());
if (serverArea != null) {
saleLeads.setProvince(serverArea.getProvince());
}
// 用户
String tempId = COOKIE_CONTEXT.getCookieValue(req, CookieName.UID);
saleLeads.setTempId(tempId);
saleLeads.setUserId(LoginUtil.getUserId(req));
//第一次进来,没的业务需求时,用mid设置业务需求
if(StringUtils.isBlank(saleLeads.getBusiness())){
try{
saleLeads.setBusiness(SalesLeadEnum.getById(model.getMid())
.getValue());
}catch (Exception e){
System.out.println("无法转换Mid: "+model.getMid());
}
}
saleLeads.setCreateDate(new Date());
saleLeads.setModifyDate(new Date());
// 网站来源
String source = COOKIE_CONTEXT.getCookieValue(req,
CookieName.SITE_SOURCE);
if (StringUtils.isNotBlank(source)) {
saleLeads.setClueSource(source);
saleLeads.setChannelType(SourceUtils.getSampleBaiduSiteType(source));
}
if(StringUtils.isNotBlank(saleLeads.getBusiness())){
saleLeads.setBusiness(saleLeads.getBusiness());
}
if (saleLeads.getId()!=null) {
saleLeads.setId(null);
}
saleLeads = converValue(saleLeads);
String body =
"业务需求:" + saleLeads.getBusiness() + "\n\n"
+ "姓名:" + saleLeads.getUname() + "\n\n"
+ "手机:" + saleLeads.getMobile() + "\n\n"
+ "咨询内容:" + saleLeads.getRemarks()+ "\n\n" ;
body = body.replaceAll("null", "").replaceAll("其他,请填写", "");
if (StringUtils.isNotBlank(refUrl) && refUrl.contains("bd_vid")) {
body += "线索来源:百度";
} else if (StringUtils.isNotBlank(refUrl) && refUrl.contains("didata.wechat")) {
body += "线索来源: 地数公众号";
} else {
body += "线索来源:房价网";
}
System.out.println(body);
try {
JSONObject requestBody = new JSONObject();
requestBody.put("msgtype", "text");
JSONObject markdown = new JSONObject();
markdown.put("title", "销售线索");
markdown.put("content", body);
requestBody.put("text", markdown);
HttpRequest request = new HttpRequest();
final String ding_url = "https://oapi.dingtalk.com/robot/send?access_token=894650a12af9497bed599df1d5f93b21d6da5bbae45f35f18c5825580ebbdf64";
Map<String, String> headers = new HashMap<String, String>();
headers.put("Content-Type", "application/json; charset=utf-8");
request.postWithBody(ding_url, requestBody, headers, "UTF-8");
} catch (Exception e) {
e.printStackTrace();
}
saleLeadsService.save(saleLeads);
// 对于百度广告过来的信息,进行回传
try {
if (StringUtils.isNotBlank(refUrl) && refUrl.contains("bd_vid")) {
HttpRequest httpRequest = new HttpRequest();
final String baiduUrl = "https://ocpc.baidu.com/ocpcapi/api/uploadConvertData";
Map<String, String> bdHeaders = new HashMap<String, String>();
bdHeaders.put("Content-Type", "application/json; charset=utf-8");
JSONObject requestBody = new JSONObject();
// https://fengchao.baidu.com/fc/toolscenter/optimize/track/user/27002539
requestBody.put("token", "EZGISwlOClRMEZErT2ThZTEjpLAzs2wE@9POwrGLqpRtQeGhvvCug1N3OK1tq3skk");
JSONArray jsonArray = new JSONArray();
JSONObject contentJson = new JSONObject();
contentJson.put("logidUrl", refUrl);
contentJson.put("newType", "3");
jsonArray.add(contentJson);
requestBody.put("conversionTypes", jsonArray);
String result1 = httpRequest.postWithBody(baiduUrl, requestBody, bdHeaders, "UTF-8");
LOG.info("百度回传成功:" + result1);
}
} catch (HttpRequestException e) {
e.printStackTrace();
}
//String refUrl = req.getHeader("referer");
String url = "";
if(StringUtils.isNotBlank(refUrl) && refUrl.contains("/resource/info")){
url = refUrl.substring(refUrl.indexOf("/resource/info"), refUrl.length());
} else if (StringUtils.isNotBlank(refUrl) && refUrl.contains("didata.wechat")) { // 地数公众号跳转
url = "/enquire/didataSuccess";
if (StringUtils.isNotBlank(refUrl)) {
url = url + "?backUrl=" + URLEncoder.encode(refUrl);
}
} else{
url = "/enquire/success";
if (StringUtils.isNotBlank(refUrl)) {
url = url + "?backUrl=" + URLEncoder.encode(refUrl);
}
}
model.setViewType("redirect");
model.setViewParam("location", url);
return model;
}
private SaleLeads converValue(SaleLeads saleLeads) throws NoSuchMethodException, InvocationTargetException, IllegalAccessException, UnsupportedEncodingException {
//
Field[] fields = saleLeads.getClass().getDeclaredFields();
for(Field s : fields){
@@ -302,6 +491,75 @@ public class SaleLeadsController {
return ret;
}
public Object sendCodeAction(SendCodeModel model, SendCodeJsonModel resultModel, HttpServletRequest request) {
String mobile = StringUtils.trimToNull(model.getMobile());
String type = StringUtils.trimToNull(model.getType());
String codeToken = StringUtils.trimToNull(model.getCodeToken());
Long sendCodeTime = (Long) CacheUtils.getValue(FangJiaUserService.class, mobile);
if(sendCodeTime != null) {
Long curTime = new Date().getTime();
long second = (curTime - sendCodeTime)/1000;
if(second < 60 ){
resultModel.setResult(Message.RESULT_FAIL);
resultModel.setMsg(Message.SMS_CODE_SEND_FAIL_TIME);
return resultModel;
}
}
String code = fangJiaUserService.randomCode();
try {
String ip = AnalyticsUtil.getIpAddress(request);
Long ipVisitCount = (Long) CacheUtils.getValue(FangJiaUserService.class, ip);
if(ipVisitCount != null && ipVisitCount > 3){
resultModel.setResult(Message.RESULT_FAIL);
resultModel.setMsg("该IP短信发送频繁");
return resultModel;
}
if(ipVisitCount == null){
ipVisitCount = (long) 0;
}
CacheUtils.putValue(CacheUtils.CachePolicyEnum.TODAY, FangJiaUserService.class, ip, ipVisitCount+1);
System.out.println(mobile + " 验证码 【"+ code+"】");
//测试先去掉发短信
smsService.send(model.getMobile(), "【房价网】你的验证码是" + code + ",验证码5分钟内有效,请立即验证。");
if(FangjiaConfig.getConfig().isTestEnvironment()){
DingDingMessageUtil.sendTextMessage("【房价网】你的验证码是" + code + ",验证码5分钟内有效,请立即验证。");
}
resultModel.setResult(Message.RESULT_SUCCESS);
CacheUtils.putValue(CacheUtils.CachePolicyEnum.TINY, FangJiaUserService.class, mobile + "_" + type, code);
CacheUtils.putValue(CacheUtils.CachePolicyEnum.TINY, FangJiaUserService.class, mobile, new Date().getTime());
} catch (Exception e) {
resultModel.setResult(Message.RESULT_FAIL);
resultModel.setMsg(Message.SMS_CODE_SEND_FAIL);
}
return resultModel;
}
private boolean checkIsMobile(String mobile) {
Pattern p = Pattern.compile("^1\\d{10}$");
Matcher m = p.matcher(mobile);
return m.matches();
}
/**
* 获取缓存的验证码
* @author yinjihuan
* @param mobile 手机
* @param type 类型
* @return
*/
private String getCacheCode(String mobile, String type) {
String cacheCode = (String) CacheUtils.getValue(FangJiaUserService.class, mobile + "_" + type);
return cacheCode;
}
/**
* 数据能力
@@ -344,7 +602,16 @@ public class SaleLeadsController {
public void setNewsResourceService(NewsResourceService newsResourceService) {
this.newsResourceService = newsResourceService;
}
public FangJiaUserService getFangJiaUserService() {
return fangJiaUserService;
}
public void setFangJiaUserService(FangJiaUserService fangJiaUserService) {
this.fangJiaUserService = fangJiaUserService;
}
public void setSmsService(SmsService smsService) {
this.smsService = smsService;
}
}
@@ -154,4 +154,5 @@ public class SolutionController {
* @return
*/
public Object dishuAction(FangjiaModel model){return model;}
}
@@ -138,6 +138,7 @@ public class DistrictModel extends BaseModel {
private int picOrder;
private String bigPicUrl;
private int allPicCount;
private List<District> districts;
public boolean isHousePriceInfo() {
return housePriceInfo;
@@ -779,4 +780,11 @@ public class DistrictModel extends BaseModel {
this.districtStatBo = districtStatBo;
}
public List<District> getDistricts() {
return districts;
}
public void setDistricts(List<District> districts) {
this.districts = districts;
}
}
@@ -18,7 +18,11 @@ public class SaleLeadsModel extends BaseModel{
public String downUrl;
public String resourceId;
public String codeToken;
public String code;
public String getMid() {
return mid;
}
@@ -58,7 +62,20 @@ public class SaleLeadsModel extends BaseModel{
public void setResourceId(String resourceId) {
this.resourceId = resourceId;
}
public String getCodeToken() {
return codeToken;
}
public void setCodeToken(String codeToken) {
this.codeToken = codeToken;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
}
@@ -21,12 +21,20 @@ public class SendCodeModel extends BaseModel {
private String mobile;
private String codeToken;
private String code;
private String imgCode;
public void setCode(String code) {
this.code = code;
}
public String getCode() {
return code;
}
public String getImgCode() {
return imgCode;
}
public void setImgCode(String imgCode) {
this.imgCode = imgCode;
}
public void setCodeToken(String codeToken) {
this.codeToken = codeToken;
}
@@ -1,9 +1,18 @@
<!--百度推广统计监控代码-->
<#--<script>-->
<#-- var _hmt = _hmt || [];-->
<#-- (function() {-->
<#-- var hm = document.createElement("script");-->
<#-- hm.src = "https://hm.baidu.com/hm.js?ce04c774616a3627d24dc1c4464c748a";-->
<#-- var s = document.getElementsByTagName("script")[0];-->
<#-- s.parentNode.insertBefore(hm, s);-->
<#-- })();-->
<#--</script>-->
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?ce04c774616a3627d24dc1c4464c748a";
hm.src = "https://hm.baidu.com/hm.js?8ba756136bc3cbd77b5e2770bb4b84cc";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
@@ -28,6 +28,7 @@
@media(max-device-width:414px){
.main{padding-top:0;}
}
</style>
</head>
@@ -133,7 +134,7 @@
<p class="office01 current"><i></i><a>上海</a></p>
<p>电 话: 4001883787(周一至周五 09:00-18:00)<br>
邮 箱: gujia@fangjia.com<br>
地 址: 上海市黄浦区江宁路212号凯迪克大厦1709<br>
地 址: 上海市静安区江宁路212号凯迪克大厦1709<br>
邮 编: 200003</p>
</div>
<div>
@@ -200,6 +201,8 @@
</div>
</div>
<#include "/header/v5/_footer.ftl"/>
<script src="${staticUrl}/js/fangjia/v5/main.js?v=${version}"></script>
@@ -238,7 +241,7 @@ $(document).ready(function(){
map.enableScrollWheelZoom();
var content = '<div>' +
'地址:上海市黄浦区江宁路212号凯迪克大厦1709' +
'地址:上海市静安区江宁路212号凯迪克大厦1709' +
'</div>';
//创建检索信息窗口对象
@@ -271,7 +274,7 @@ $(document).ready(function(){
map.enableScrollWheelZoom();
var content = '<div>' +
'地址:上海市黄浦区江宁路212号凯迪克大厦1709' +
'地址:上海市静安区江宁路212号凯迪克大厦1709' +
'</div>';
//创建检索信息窗口对象
@@ -0,0 +1,21 @@
<#ftl attributes={"content_type":"text/html; charset=UTF-8"}>
<#compress>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<#include "../jsconstants.ftl" />
<link rel="stylesheet" type="text/css" href="${staticUrl}/style/fangjia/fj_district_list.css?v=${version}" />
<link rel="stylesheet" type="text/css" href="${staticUrl}/style/fangjia/base.css?v=${version}" />
<link rel="stylesheet" type="text/css" href="${staticUrl}/style/fangjia/fj_friend_link.css?v=${version}" />
</head>
<body>
<div>
<#list districts! as dist>
<a href="${cityUrl}/zoushi?cityName=${dist.city}&districtName=${dist.name!''}&region=${dist.region!''}">${dist.name!}</a>
</#list>
</div><!--end mainwrap-->
<#include "/analytics.ftl" />
</body>
</html>
</#compress>
@@ -99,6 +99,21 @@
</div>
</div>
<div class="newblank mobile02">&nbsp;</div>
<div class="newfooter mobile02">
<div class="newfooter-li" >
<a data_id="1036" cat="businessAsk" title="业务咨询" target="_blank" class="fu-btn">
业务咨询
</a>
</div>
<div class="newfooter-li">
<a href="tel:4001883787" class="fu-btn" id="app-mobile-click">
电话咨询
</a>
</div>
</div>
<#include "contact.ftl"/>
<div class="mask dn"></div>
@@ -83,7 +83,7 @@
</div>
</li>
<li class="subnav02 <#if (controllerName == 'solution' && ["card","outlets","appraisal","location"]?seq_contains(actionName))|| (controllerName == 'industry' && ["bank","itfin","government"]?seq_contains(actionName))>current</#if>">
<li class="subnav02 <#if (controllerName == 'solution' && ["card","outlets","appraisal","location"]?seq_contains(actionName))|| (controllerName == 'industry' && ["bank","itfin","government","cost"]?seq_contains(actionName))>current</#if>">
<a>解决方案</a>
<div class="dn" style="width:320px;">
<ul style="padding-right: 50px;">
@@ -96,7 +96,9 @@
<ul>
<li><p class="menu-heading">行业</p></li>
<li><a href="${wwwUrl}/industry/bank">银行</a></li>
<li><a href="${wwwUrl}/industry/itfin">互金</a></li>
<li><a href="${wwwUrl}/industry/bond">证券</a></li>
<li><a href="${wwwUrl}/industry/cost">消费金融</a></li>
<li><a href="${wwwUrl}/industry/itfin">互联网金融</a></li>
<li><a href="${wwwUrl}/industry/government">政府机构</a></li>
</ul>
</div>
@@ -112,13 +114,14 @@
</div>
</li>
<li class="<#if (controllerName == 'evaluation' || controllerName == 'report' || actionName == 'trend') || (controllerName=='industry' && actionName=='consulting') || (controllerName=='saleLeads' && actionName=='dataAbility')>current</#if>">
<li class="<#if (controllerName == 'evaluation' || controllerName == 'report' || actionName == 'trend') || (controllerName=='industry' && actionName=='consulting') || (controllerName=='saleLeads' && actionName=='dataAbility') || (controllerName=='solution' && actionName=='paimai')>current</#if>">
<a>房产大数据</a>
<div class="dn" style="width:120px;">
<ul>
<li><a href="${cityUrl}/gujia">房产估值</a></li>
<li><a href="${cityUrl}/zoushi">房价走势</a></li>
<li><a href="${cityUrl}/data/power">数据能力</a></li>
<li><a href="${cityUrl}/solution/paimai">法拍房</a></li>
<li><a href="${cityUrl}/industry/consulting">咨询研究</a></li>
</ul>
</div>
@@ -3,7 +3,8 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
<title>专业全面的房产大数据服务商 - 房价网 fangjia.com</title>
<meta name="baidu-site-verification" content="codeva-PD58wqOG1Q" />
<title>全国房价查询,上海房价,房产评估,地址搜索,房产信息网 - 房价网 fangjia.com</title>
<meta name="keywords" content="房产评估,房产估价,房价走势,房产大数据">
<meta name="description" content="房价网是国内最早成立的第三方线上房产估价平台,建立了中国领先的房产大数据库(CPDB),提供全国367个城市基于地址的房产大数据服务。">
<#include "/jsconstants.ftl" />
@@ -3,8 +3,8 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>行业应用之银行 - 房价网 fangjia.com</title>
<meta name="keywords" content="银行风控,精准营销,营销获客,批量复估">
<title>行业应用之银行-押品估值,地址标准化,客户分层,网点布局规划 房价网 fangjia.com</title>
<meta name="keywords" content="押品估值,地址标准化,财富客户筛选,客户分层,网点布局规划,位置营销">
<meta name="description" content="房价网为银行业提供贷前评估、内评缓释、批量复估、营销获客等数据服务。">
<#include "../jsconstants.ftl" />
@@ -20,6 +20,10 @@
</script>
<style>
.columnBox.mobile01 {
padding: 40px;
position: relative;
}
@media(max-device-width:768px){
.columnBox.bg{background:none;}
.column{border:solid 1px #d2d2d2;}
@@ -27,6 +31,11 @@
.column > div img{width:100%;}
.columnBox.mobile02 .column > div.column_left{margin:0;}
}
.feature i{float: left;}
.feature ul {float: left;margin-left: 50px;}
.feature ul label{font-size: 24px; line-height: 50px;}
.feature ul li {list-style: disc;line-height: 25px;}
.mobile02 .feature p {padding-left: 10px;width: 80%;}
</style>
</head>
@@ -37,128 +46,290 @@
<div class="banner mobile01" style="background:url(${staticUrl}/images/fangjia/v5/bank_banner.jpg) no-repeat center center;">
<div>
<p class="p01"><small>行业应用之银行</small></p>
<p><label>无论您想起步、进一步,还是领先一步,<br>我们都能与您同步</label></p>
<p><small>无论您处于将大数据融入银行风控和精准营销的哪个阶段,我们都会为您提供持续的数据服务和解决方案,以助您保持行业领先。</small></p>
<p><label>加速银行数字化建设 科技赋能高质量发展</label></p>
<p><small>时空价值挖掘为银行数据资产数字化建设、客户洞察、地址营销、位置风控、网点规划布局、押品价值全流程管理<br/>等不同场景提供智能服务,全面提升竞争力与综合实力</small></p>
<div class="btnGroup">
<a class="link_btn link01_btn" data_id="1002" cat="solution" style="width: 222px; font-size: 25px; ">立即咨询专业顾问</a>
</div>
</div>
</div>
<div class="banner mobile02" style="background:url(${staticUrl}/images/fangjia/v5/bank_banner_m.jpg) no-repeat center center;background-size:100%;">
<div>
<p class="p01"><small>行业应用之银行</small></p>
<p><label>无论您想起步、进一步,还是领先一步,我们都能与您同步</label></p>
<p class="p01"><small>加速银行数字化建设 科技赋能高质量发展</small></p>
<p><label>时空价值挖掘为银行提供智能服务,全面提升竞争力与综合实力</label></p>
</div>
</div>
<div class="columnBox firstOne">
<div class="columnBox mobile01 firstOne">
<div class="column">
<div class="column_left">
<img src="${staticUrl}/images/fangjia/v5/card.png" style="width: 450px;">
</div>
<div class="column_right" style="padding-top: 40px;">
<p><label>时空领域金融科技 为银行创造价值</label></p>
<p><small>地址(位置)信息是银行重要的数据资产,银行在业务流程中已完成了相关的数据采集和积累,但地址信息并未发挥其重要的作用。
估家科技通过人工智能将“地址-建筑物-环境”三者关联的多维度数据进行链接并建立评级模型,结合银行各类场景提供智能化的服务,包括数据资产数字化建设、客户洞察、地址营销、位置风控、网点规划布局、押品价值全流程管理等,助力银行加速数字化建设,推动高质量发展。
</small></p>
</div>
</div>
</div>
<div class="columnBox firstOne firstOneM mobile02">
<div class="column">
<div class="column_left" style="margin-top:0;">
<img src="${staticUrl}/images/fangjia/v5/card.png">
</div>
<div class="column_right">
<p><label>时空领域金融科技 为银行创造价值</label></p>
<p><small>地址(位置)信息是银行重要的数据资产,银行在业务流程中已完成了相关的数据采集和积累,但地址信息并未发挥其重要的作用。
估家科技通过人工智能将“地址-建筑物-环境”三者关联的多维度数据进行链接并建立评级模型,结合银行各类场景提供智能化的服务,包括数据资产数字化建设、客户洞察、地址营销、位置风控、网点规划布局、押品价值全流程管理等,助力银行加速数字化建设,推动高质量发展。
</small></p>
</div>
</div>
</div>
<div class="columnBox featureBox threePiece mobile01">
<div class="feature">
<i class="onehouse_iconA02"></i>
<ul>
<label>数据治理<br></label>
<li>地址治理/地址标准化</li>
<li>地址联想</li>
<li>行政区划、地理编码映射</li>
<li>建设房产大数据库/楼盘字典</li>
<li>地址标签(涉农、法拍等)</li>
</ul>
</div>
<div class="feature">
<i class="onehouse_iconA01"></i>
<ul>
<label>客户价值识别<br></label>
<li>客户分层-地址财力评级</li>
<li>财富客户筛选</li>
<li>沉睡客户促活</li>
<li>促销策略,提升消费额</li>
<li>辅助授信额度审批</li>
</ul>
</div>
<div class="feature">
<i class="onehouse_iconA06"></i>
<ul>
<label>网点布局规划<br></label>
<li>网点/网周综合数据分析与可视化呈现</li>
<li>网点辐射范围商圈/社区特征分析</li>
<li>网点客户财力评级与财富客户筛选</li>
<li>网周同业银行布点分析</li>
<li>优质客户聚客点分析与网点布局优化策略</li>
</ul>
</div>
</div>
<div class="columnBox featureBox threePiece mobile01">
<div class="feature" style="width: 66.6%;">
<i class="onehouse_iconA05"></i>
<ul>
<label>押品价值管理<br></label>
<li><b>线上获客:</b></li>
<span>移动C端查询房产估值、评级服务前置</span><br/>
<span>&nbsp;</span>
<li><b>贷前估值:</b></li>
<spn>线上房产询价/ 智能房产估值系统 法拍信息查询</spn><br/>
<span>&nbsp;</span>
<li><b>贷中审核:</b></li>
<span>建立银行内评系统估值/租金模型</span><br/>
<span>提供评估样本及相关房产大数据</span>
</ul>
<ul>
<label><br></label>
<li><b>贷后管理:</b></li>
<span>批量复估押品价值</span><br/>
<span>抵押物拍卖处置价值预测</span>
<span>押品全视角画像/风险预警</span></br>
<span>&nbsp;</span>
<li><b>数据建设:</b></li>
<span>为银行建立行内标准化押品数据库,并持续更新数据</span><br/>
</ul>
</div>
<div class="feature">
<i class="onehouse_iconA04"></i>
<ul>
<label>信用卡促活促销<br></label>
<li>申卡地址标准化与风险评级</li>
<li>提升消费金额/沉寂促活</li>
<li>卡寄/退信地址分析</li>
<li>合作商户布点分析</li>
</ul>
</div>
</div>
<div class="featureBox threePiece featureBoxM mobile02">
<div class="feature">
<i class="onehouse_iconA02"></i>
<p class="lh5"><label>数据治理</label></p>
<p><small>地址治理/地址标准化</small></p>
<p><small>地址联想</small></p>
<p><small>行政区划、地理编码映射</small></p>
<p><small>建设房产大数据库/楼盘字典</small></p>
<p><small>地址标签(涉农、法拍等)</small></p>
</div>
<div class="feature">
<i class="onehouse_iconA01"></i>
<p class="lh5"><label>客户价值识别</label></p>
<p><small>客户分层-地址财力评级</small></p>
<p><small>财富客户筛选</small></p>
<p><small>沉睡客户促活</small></p>
<p><small>促销策略,提升消费额</small></p>
<p><small>辅助授信额度审批</small></p>
<p><small></small></p>
<p><small></small></p>
</div>
<div class="feature">
<i class="onehouse_iconA06"></i>
<p class="lh6P"><label>网点布局规划</label></p>
<p><small>网点/网周综合数据分析与可视化呈现</small></p>
<p><small>网点辐射范围商圈/社区特征分析</small></p>
<p><small>网点客户财力评级与财富客户筛选</small></p>
<p><small>网周同业银行布点分析</small></p>
<p><small>优质客户聚客点分析与网点布局优化策略</small></p>
</div>
<div class="feature">
<i class="onehouse_iconA05"></i>
<p class="lh5"><label>押品价值管理<br></label></p>
<p><small><b>线上获客:</b></small></p>
<p><small>移动C端查询房产估值、评级服务前置</small></p>
<p><small><b>贷前估值:</b></small></p>
<p><small>线上房产询价/ 智能房产估值系统 法拍信息查询</small></p>
<p><small><b>贷中审核:</b></small></p>
<p><small>建立银行内评系统估值/租金模型
提供评估样本及相关房产大数据</small></p>
<p><small><b>贷后管理:</b></small></p>
<p><small>批量复估押品价值
抵押物拍卖处置价值预测
押品全视角画像/风险预警</small></p>
<p><small><b>数据建设:</b></small></p>
<p><small>为银行建立行内标准化押品数据库,并持续更新数据</small></p>
</div>
<div class="feature">
<i class="onehouse_iconA04"></i>
<p class="lh5"><label>信用卡促活促销<br></label></p>
<p><small>申卡地址标准化与风险评级</small></p>
<p><small>提升消费金额/沉寂促活</small></p>
<p><small>卡寄/退信地址分析</small></p>
<p><small>合作商户布点分析</small></p>
</div>
</div>
<div class="columnBox bg mobile01">
<div class="column">
<div class="column_left">
<p><label>高效率低成本的在线贷前评估</label></p>
<p><small>使用大数据在线估值方式,大大缩减银行对于贷前估值业务的时间;全流程估价管理平台,将信贷业务中贷前估值、贷中审批、贷后管理的全流程环节及参与方进行作业整合,高效提升传统评估业务流程。</small></p>
</div>
<div class="column_right">
<img src="${staticUrl}/images/fangjia/v5/bank_img01.jpg">
</div>
</div>
</div>
<div class="columnBox firstOne firstOneM mobile02">
<div class="column">
<div class="column_left" style="margin-top:0;">
<img src="${staticUrl}/images/fangjia/v5/bank_img01.jpg">
</div>
<div class="column_right">
<p><label>高效率低成本的在线贷前评估</label></p>
<p><small>使用大数据在线估值方式,大大缩减银行对于贷前估值业务的时间;全流程估价管理平台,将信贷业务中贷前估值、贷中审批、贷后管理的全流程环节及参与方进行作业整合,高效提升传统评估业务流程。</small></p>
<div class="btnGroup">
<#-- <a class="link_btn" href="${wwwUrl}/solution/appraisal">查看解决方案</a>-->
<a class="link_btn" data_id="1001" cat="solution">预约演示</a>
</div>
</div>
</div>
</div>
<div class="columnBox mobile01">
<div class="column">
<div class="column_left">
<img src="${staticUrl}/images/fangjia/v5/bank_img02.jpg">
</div>
<div class="column_right">
<p><label>为内评系统提供高覆盖高精准的样本数据</label></p>
<p><small>10年数据积累,拥有体量超过6亿的样本库,为内评系统提供最精准的样本数据;每天超过600万+的新鲜动态样本数据入库处理,保证数据的及时更新。</small></p>
</div>
</div>
</div>
<div class="columnBox firstOne firstOneM mobile02">
<div class="column">
<div class="column_left" style="margin-top:0;">
<img src="${staticUrl}/images/fangjia/v5/bank_img02.jpg">
</div>
<div class="column_right">
<p><label>为内评系统提供高覆盖高精准的样本数据</label></p>
<p><small>10年数据积累,拥有体量超过6亿的样本库,为内评系统提供最精准的样本数据;每天超过600万+的新鲜动态样本数据入库处理,保证数据的及时更新。</small></p>
</div>
</div>
</div>
<div class="columnBox bg mobile01">
<div class="column">
<div class="column_left">
<p><label>为内评系统提供高覆盖高精准的样本数据</label></p>
<p><small>10年数据积累,拥有体量超过6亿的样本库,为内评系统提供最精准的样本数据;每天超过600万+的新鲜动态样本数据入库处理,保证数据的及时更新。</small></p>
<div class="btnGroup">
<#-- <a class="link_btn" href="${wwwUrl}/solution/irb">查看解决方案</a>-->
<a class="link_btn" data_id="1002" cat="solution">数据测试申请</a>
</div>
<p><label>高效精准的贷后批量押品管理</label></p>
<p><small>利用强大的CPDB数据库和高效批量地址处理技术,实现快速精准的批量复估;帮助客户定义押品预警体系,并通过各类指标给出不同程度的风险预警。</small></p>
</div>
<div class="column_right">
<img src="${staticUrl}/images/fangjia/v5/bank_img02.jpg">
<img src="${staticUrl}/images/fangjia/v5/bank_img03.jpg">
</div>
</div>
</div>
<div class="columnBox bg mobile02">
<div class="columnBox firstOne firstOneM mobile02">
<div class="column">
<div class="column_left">
<img src="${staticUrl}/images/fangjia/v5/bank_img02.jpg">
</div>
<div class="column_right">
<p><label>为内评系统提供高覆盖高精准的样本数据</label></p>
<p><small>10年数据积累,拥有体量超过6亿的样本库,为内评系统提供最精准的样本数据;每天超过600万+的新鲜动态样本数据入库处理,保证数据的及时更新。</small></p>
<div class="btnGroup">
<#-- <a class="link_btn" href="${wwwUrl}/solution/irb">查看解决方案</a>-->
<a class="link_btn" data_id="1002" cat="solution">数据测试申请</a>
</div>
</div>
</div>
</div>
<div class="columnBox">
<div class="column">
<div class="column_left">
<div class="column_left" style="margin-top:0;">
<img src="${staticUrl}/images/fangjia/v5/bank_img03.jpg">
</div>
<div class="column_right">
<p><label>高效精准的贷后批量押品管理</label></p>
<p><small>利用强大的CPDB数据库和高效批量地址处理技术,实现快速精准的批量复估;帮助客户定义押品预警体系,并通过各类指标给出不同程度的风险预警。</small></p>
<div class="btnGroup">
<#-- <a class="link_btn" href="${wwwUrl}/solution/post-loan">查看解决方案</a>-->
<a class="link_btn" data_id="1003" cat="solution">预约演示</a>
</div>
</div>
</div>
</div>
<div class="columnBox bg mobile01">
<div class="column">
<div class="column_left">
<p><label>房生活金融客户端营销解决方案</label></p>
<p><small>在银行客户端建立以房为中心的金融生活频道,帮助客户从自我房产分析出发,进行以房融资,以房换房以及以房投资,充分结合金融产品,提高客户粘性并形成稳定的产品获客渠道,同时获取客户数据进行二次营销。</small></p>
<div class="btnGroup">
<#-- <a class="link_btn" href="${wwwUrl}/solution/finance">查看解决方案</a>-->
<a class="link_btn" data_id="1004" cat="solution">预约演示</a>
</div>
</div>
<div class="column_right">
<img src="${staticUrl}/images/fangjia/v5/bank_img04.jpg">
</div>
</div>
</div>
<div class="columnBox bg mobile02">
<div class="column">
<div class="column_left">
<img src="${staticUrl}/images/fangjia/v5/bank_img04.jpg">
</div>
<div class="column_right">
<p><label>房生活金融客户端营销解决方案</label></p>
<p><small>在银行客户端建立以房为中心的金融生活频道,帮助客户从自我房产分析出发,进行以房融资,以房换房以及以房投资,充分结合金融产品,提高客户粘性并形成稳定的产品获客渠道,同时获取客户数据进行二次营销。</small></p>
<div class="btnGroup">
<#-- <a class="link_btn" href="${wwwUrl}/solution/finance">查看解决方案</a>-->
<a class="link_btn" data_id="1004" cat="solution">预约演示</a>
</div>
</div>
</div>
</div>
<div class="columnBox">
<div class="column">
<div class="column_left">
<img src="${staticUrl}/images/fangjia/v5/bank_img05.jpg">
</div>
<div class="column_right">
<p><label>房贷业务线上营销获客</label></p>
<p><small>面对市场的日益竞争,有效利用房估值及房产管理在客户端帮助银行获取房产金融产品的客户。</small></p>
<div class="btnGroup">
<#-- <a class="link_btn" href="${wwwUrl}/solution/marketing">查看解决方案</a>-->
<a class="link_btn" data_id="1005" cat="solution">预约演示</a>
</div>
</div>
</div>
</div>
<div class="adBox adBox01">
<div class="columnBox mobile01">
<div class="column">
<div class="column_left">
<img src="${staticUrl}/images/fangjia/v5/bank_img04.jpg">
</div>
<div class="column_right">
<p><label>房生活金融客户端营销解决方案</label></p>
<p><small>在银行客户端建立以房为中心的金融生活频道,帮助客户从自我房产分析出发,进行以房融资,以房换房以及以房投资,充分结合金融产品,提高客户粘性并形成稳定的产品获客渠道,同时获取客户数据进行二次营销。</small></p>
</div>
</div>
</div>
<div class="columnBox firstOne firstOneM mobile02">
<div class="column">
<div class="column_left" style="margin-top:0;">
<img src="${staticUrl}/images/fangjia/v5/bank_img04.jpg">
</div>
<div class="column_right">
<p><label>房生活金融客户端营销解决方案</label></p>
<p><small>在银行客户端建立以房为中心的金融生活频道,帮助客户从自我房产分析出发,进行以房融资,以房换房以及以房投资,充分结合金融产品,提高客户粘性并形成稳定的产品获客渠道,同时获取客户数据进行二次营销。</small></p>
</div>
</div>
</div>
<div class="adBox adBox01" style="margin-bottom:50px;">
<p><label>地址标准化解决方案</label></p>
<p><small>您还在为批量地址数据标准化烦恼,您可通过在线方式申请测试数据或联系数据顾问,他们将非常乐意为您的数据需求量身定制合适的解决方案。</small></p>
<a class="link_btn link01_btn" href="${wwwUrl}/solution/standardization">立即查看</a>
<a class="link_btn link01_btn" href="${wwwUrl}/solution/standardization" >立即查看</a>
</div>
<#--<div class="resource" data-url = "${wwwUrl}/resource/recommend?module=1002"></div>-->
@@ -0,0 +1,160 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>证券 客户地址分析 fangjia.com</title>
<meta name="keywords" content="客户价值识别">
<meta name="description" content="将“地址-建筑物-环境”三者关联的多维度数据进行链接并建立评级模型,实现精准客户价值识别">
<#include "../jsconstants.ftl" />
<link href="${staticUrl}/style/fangjia/v5/common.css?v=${version}" rel="stylesheet">
<link href="${staticUrl}/style/fangjia/v5/main.css?v=${version}" rel="stylesheet">
<link href="${staticUrl}/style/fangjia/v5/dialogBox.css?v=${version}" rel="stylesheet">
<script src="${staticUrl}/js/fangjia/v5/jquery-1.7.2.min.js?v=${version}"></script>
<script>
if((navigator.userAgent.match(/(iPad|iPhone|iPod|Android|ios)/i))){
document.write("<link href='${staticUrl}/style/fangjia/v5/mobile.css?v=${version}' rel='stylesheet'>");
}
</script>
<style>
.columnBox.mobile01 {
padding-top: 40px;
position: relative;
}
.columnBox.mobile01 img{
height: 280px;
width: 480px;
}
@media(max-device-width:768px){
.columnBox.bg{background:none;}
.column{border:solid 1px #d2d2d2;}
.column_right{padding:0 1rem;}
.column > div img{width:100%;}
.columnBox.mobile02 .column > div.column_left{margin:0;}
}
</style>
</head>
<body>
<#include "/header/v5/_header.ftl"/>
<div class="banner mobile01" style="background:url(${staticUrl}/images/fangjia/v5/financial-1.png) no-repeat center center;background-size: 100% 375px;">
<div>
<p><label>开户流失? 财富客户难找?</label></p>
<p><label>证券行业老问题需要新办法</label></p>
<div class="btnGroup">
<a class="link_btn link01_btn large" data_id="1033" cat="solution">立即咨询专业顾问</a>
</div>
</div>
</div>
<div class="banner mobile02" style="background:url(${staticUrl}/images/fangjia/v5/api_banner_m.jpg) no-repeat center center;background-size:100%;">
<div>
<p><label>开户流失? 财富客户难找?</label></p>
<p><label>证券行业老问题需要新办法</label></p>
<div class="btnGroup">
<a class="link_btn link01_btn large" data_id="1033" cat="solution">立即咨询专业顾问</a>
</div>
</div>
</div>
<div class="columnBox mobile01 ">
<div class="column">
<div class="column_left">
<img src="${staticUrl}/images/fangjia/v5/bond-1.png" style="width: 450px;">
</div>
<div class="column_right" style="padding-top: 40px;">
<p><label>证券行业新趋势 </label></p>
<p><small>近年来,证券行业迎来了金融科技化、数据资产化、运营市场化、发展生态化的新趋势,面对诸多新的机遇和挑战。</small></p>
<p><small>数据资产的数量、质量,采集、运营和应用能力的强弱影响着券商的经营能力与竞争力,基于地理(位置)的数据建设与价值挖掘为证券行业带来了新的方向与变革。</small></p>
</div>
</div>
</div>
<div class="columnBox firstOne firstOneM mobile02">
<div class="column">
<div class="column_left" style="margin-top:0;">
<img src="${staticUrl}/images/fangjia/v5/bond-1.png">
</div>
<div class="column_right">
<p><label>证券行业新趋势 </label></p>
<p><small>近年来,证券行业迎来了金融科技化、数据资产化、运营市场化、发展生态化的新趋势,面对诸多新的机遇和挑战。</small></p>
<p><small>数据资产的数量、质量,采集、运营和应用能力的强弱影响着券商的经营能力与竞争力,基于地理(位置)的数据建设与价值挖掘为证券行业带来了新的方向与变革。
</small></p>
</div>
</div>
</div>
<div class="columnBox bg mobile01">
<div class="column">
<div class="column_left">
<p><label>减少开户流失率</label></p>
<p><small>证券行业获新不易,如果客户在开户流程中因为没有按合规要求输入正确的地址信息,从而造成客户流失是非常可惜的。为了降低开户流失率,引入估家科技地址智能服务,在开户流程中增加地址联想,提升用户体验。同时自动化进行“地址有效性判断”,及时发现问题并给予提示,指导客户按合规要求完成开户。</small></p>
</div>
<div class="column_right">
<img src="${staticUrl}/images/fangjia/v5/bond-2.png" style="width: 480px;">
</div>
</div>
</div>
<div class="columnBox firstOne firstOneM mobile02">
<div class="column">
<div class="column_left" style="margin-top:0;">
<img src="${staticUrl}/images/fangjia/v5/bond-2.png">
</div>
<div class="column_right">
<p><label>减少开户流失率</label></p>
<p><small>证券行业获新不易,如果客户在开户流程中因为没有按合规要求输入正确的地址信息,从而造成客户流失是非常可惜的。为了降低开户流失率,引入估家科技地址智能服务,在开户流程中增加地址联想,提升用户体验。同时自动化进行“地址有效性判断”,及时发现问题并给予提示,指导客户按合规要求完成开户。</small></p>
</div>
</div>
</div>
<div class="columnBox mobile01">
<div class="column">
<div class="column_left">
<img src="${staticUrl}/images/fangjia/v5/appraisal_img05.png" style="width: 480px;">
</div>
<div class="column_right">
<p><label>客户价值识别 </label></p>
<p><small>在证券行业的存量客户中,睡眠户、沉寂客户有着很大的占比,这部分客户缺少交易数据,券商无法进行精准的客户价值识别,难以锁定财富客户。
估家科技将人工智能与位置大数据结合,自主研发了地址(位置)财力评级,将“地址-建筑物-环境”三者关联的多维度数据进行链接并建立评级模型,实现精准客户价值识别,尤其针对缺乏业务数据的存量客户的促活促销,助力券商在营销场景找到财富客户,全面提升营销ROI
</small></p>
</div>
</div>
</div>
<div class="columnBox firstOne firstOneM mobile02">
<div class="column">
<div class="column_left" style="margin-top:0;">
<img src="${staticUrl}/images/fangjia/v5/appraisal_img05.png">
</div>
<div class="column_right">
<p><label>客户价值识别 </label></p>
<p><small>在证券行业的存量客户中,睡眠户、沉寂客户有着很大的占比,这部分客户缺少交易数据,券商无法进行精准的客户价值识别,难以锁定财富客户。
估家科技将人工智能与位置大数据结合,自主研发了地址(位置)财力评级,将“地址-建筑物-环境”三者关联的多维度数据进行链接并建立评级模型,实现精准客户价值识别,尤其针对缺乏业务数据的存量客户的促活促销,助力券商在营销场景找到财富客户,全面提升营销ROI
</small></p>
</div>
</div>
</div>
<div class="adBox adBox01" style="padding-top: 60px;">
<p><small>如想了解详情,请致电 <b style="font-size: 18px;color: yellow;">400-188-3787</b> 联系我们,或者留下您的联系方式和需求,我们会第一时间联系您。</small></p>
<a class="link_btn link01_btn" data_id="1033" cat="solution">立即咨询</a>
</div>
<#--<div class="resource" data-url = "${wwwUrl}/resource/recommend?module=1002"></div>-->
<#include "/header/v5/_footer.ftl"/>
<script src="${staticUrl}/js/fangjia/v5/main.js?v=${version}"></script>
</body>
</html>
@@ -0,0 +1,166 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>消费金融 客户价值分析 fangjia.com</title>
<meta name="keywords" content="消费金融、潜力评级、消费潜力">
<meta name="description" content="地址(位置)信息是消金公司的重要数据资产,由于原始地址的质量参差不齐,加上地址信息本身非常复杂,这部分数据并未发挥其重要的作用">
<#include "../jsconstants.ftl" />
<link href="${staticUrl}/style/fangjia/v5/common.css?v=${version}" rel="stylesheet">
<link href="${staticUrl}/style/fangjia/v5/main.css?v=${version}" rel="stylesheet">
<link href="${staticUrl}/style/fangjia/v5/dialogBox.css?v=${version}" rel="stylesheet">
<script src="${staticUrl}/js/fangjia/v5/jquery-1.7.2.min.js?v=${version}"></script>
<script>
if((navigator.userAgent.match(/(iPad|iPhone|iPod|Android|ios)/i))){
document.write("<link href='${staticUrl}/style/fangjia/v5/mobile.css?v=${version}' rel='stylesheet'>");
}
</script>
<style>
.columnBox.mobile01 {
padding-top: 40px;
position: relative;
}
.columnBox.mobile01 img{
height: 280px;
width: 480px;
}
@media(max-device-width:768px){
.columnBox.bg{background:none;}
.column{border:solid 1px #d2d2d2;}
.column_right{padding:0 1rem;}
.column > div img{width:100%;}
.columnBox.mobile02 .column > div.column_left{margin:0;}
}
.banner > div p {
margin-bottom: 10px;
}
</style>
</head>
<body>
<#include "/header/v5/_header.ftl"/>
<div class="banner mobile01" style="background:url(${staticUrl}/images/fangjia/v5/cost-0.png) no-repeat center center;background-size: 100% 375px;">
<div>
<p><label>消费金融行业 - 客户价值识别新突破</label></p>
<p><small>消费提振年,消费金融行业迎来新机遇</small></p>
<p><small>估价科技为消金行业数字化转型注入新力量、产生新突破</small></p>
<div class="btnGroup">
<a class="link_btn link01_btn large" data_id="1035" cat="solution">立即咨询专业顾问</a>
</div>
</div>
</div>
<div class="banner mobile02" style="background:url(${staticUrl}/images/fangjia/v5/api_banner_m.jpg) no-repeat center center;background-size:100%;">
<div>
<p><label>消费金融行业-客户价值识别新突破</label></p>
<p><small>消费提振年,消费金融行业迎来新机遇</small></p>
<p><small>估价科技为消金行业数字化转型注入新力量、产生新突破</small></p>
<div class="btnGroup">
<a class="link_btn link01_btn large" data_id="1033" cat="solution">立即咨询专业顾问</a>
</div>
</div>
</div>
<div class="columnBox mobile01 ">
<div class="column">
<div class="column_left">
<img src="${staticUrl}/images/fangjia/v5/cost-1.png" style="width: 450px;">
</div>
<div class="column_right" style="padding-top: 20px;">
<p><label>客户分层精细化</label></p>
<p><small>在消费金融业务流程中,消金公司对客户经济实力/消费能力的精准判断至关重要,根据不同消费场景结合客户的综合实力及偏好智能配置合适的产品及授信额度,成为营销转化的关键点。</small></p>
<br/>
<p><small>估家科技以地理位置为核心,通过地址-房产-地段-环境等要素实现的财力评级,从全新的维度对客户进行精准分层,从而为授信及各类营销场景提供决策依据。</small></p>
</div>
</div>
</div>
<div class="columnBox firstOne firstOneM mobile02">
<div class="column">
<div class="column_left" style="margin-top:0;">
<img src="${staticUrl}/images/fangjia/v5/cost-1.png">
</div>
<div class="column_right">
<p><label>客户分层精细化</label></p>
<p><small>在消费金融业务流程中,消金公司对客户经济实力/消费能力的精准判断至关重要,根据不同消费场景结合客户的综合实力及偏好智能配置合适的产品及授信额度,成为营销转化的关键点。</small></p>
<p><small>估家科技以地理位置为核心,通过地址-房产-地段-环境等要素实现的财力评级,从全新的维度对客户进行精准分层,从而为授信及各类营销场景提供决策依据。</small></p>
</div>
</div>
</div>
<div class="columnBox bg mobile01" style="padding-bottom: 40px;">
<div class="column">
<div class="column_left" style="padding-top: 20px;">
<p><label>风控模型多元化</label></p>
<p><small>消费金融的业务场景无抵押、无担保,因此综合风控能力是消金公司最重要的能力之一。 </small></p>
<br/>
<p><small>地理位置、房产的相关属性,恰恰与客户的逾期率有直接的关联,区域特征、房产价值、楼盘基础信息等都是风控模型中的重要因子。同时,从已知的逾期客户的地理(位置)分布中也能通过模型发现更多位置特征,不断风控模型的多元化和精准度。</small></p>
</div>
<div class="column_right">
<img src="${staticUrl}/images/fangjia/v5/cost-2.png" style="width: 480px;">
</div>
</div>
</div>
<div class="columnBox firstOne firstOneM mobile02">
<div class="column">
<div class="column_left" style="margin-top:0;">
<img src="${staticUrl}/images/fangjia/v5/cost-2.png">
</div>
<div class="column_right">
<p><label>风控模型多元化</label></p>
<p><small>消费金融的业务场景无抵押、无担保,因此综合风控能力是消金公司最重要的能力之一。 </small></p>
<p><small>地理位置、房产的相关属性,恰恰与客户的逾期率有直接的关联,区域特征、房产价值、楼盘基础信息等都是风控模型中的重要因子。同时,从已知的逾期客户的地理(位置)分布中也能通过模型发现更多位置特征,不断风控模型的多元化和精准度。</small></p>
</div>
</div>
</div>
<div class="columnBox mobile01">
<div class="column">
<div class="column_left">
<img src="${staticUrl}/images/fangjia/v5/cost-3.png" style="width: 480px;">
</div>
<div class="column_right" style="padding-top: 15px;">
<p><label>数据建设智能化</label></p>
<p><small>地址(位置)信息是消金公司的重要数据资产,由于原始地址的质量参差不齐,加上地址信息本身非常复杂,这部分数据并未发挥其重要的作用,需要应用科技力量实现自动化数据治理及长期建设。</small></p>
<br/>
<p><small>估家科技是地址(位置)AI价值挖掘领域的领跑者,十多年来建立了国内最大的地址与不动产大数据库,以人工智能技术与大数据结合,助力金融机构数字化建设,实现高质量发展。 </small></p>
</div>
</div>
</div>
<div class="columnBox firstOne firstOneM mobile02">
<div class="column">
<div class="column_left" style="margin-top:0;">
<img src="${staticUrl}/images/fangjia/v5/cost-3.png">
</div>
<div class="column_right">
<p><label>数据建设智能化</label></p>
<p><small>地址(位置)信息是消金公司的重要数据资产,由于原始地址的质量参差不齐,加上地址信息本身非常复杂,这部分数据并未发挥其重要的作用,需要应用科技力量实现自动化数据治理及长期建设。</small></p>
<p><small>估家科技是地址(位置)AI价值挖掘领域的领跑者,十多年来建立了国内最大的地址与不动产大数据库,以人工智能技术与大数据结合,助力金融机构数字化建设,实现高质量发展。 </small></p>
</div>
</div>
</div>
<div class="adBox adBox01" style="padding-top: 60px;">
<p><small>如想了解详情,请致电 <b style="font-size: 18px;color: yellow;">400-188-3787</b> 联系我们,或者留下您的联系方式和需求,我们会第一时间联系您。</small></p>
<a class="link_btn link01_btn" data_id="1033" cat="solution">立即咨询</a>
</div>
<#--<div class="resource" data-url = "${wwwUrl}/resource/recommend?module=1002"></div>-->
<#include "/header/v5/_footer.ftl"/>
<script src="${staticUrl}/js/fangjia/v5/main.js?v=${version}"></script>
</body>
</html>
@@ -3,8 +3,8 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>行业应用之政府部门 - 房价网 fangjia.com</title>
<meta name="keywords" content="政府部门,房产报告,房产调研,课题研究">
<title>政府部门 - 课题研究,城市房价检测,智慧城市,地址大数据 房价网 fangjia.com</title>
<meta name="keywords" content="政府机构课题研究,城市房价检测,智慧城市,地址大数据">
<meta name="description" content="房价网为政府部门提供行业课题研究、房产调研报告、存量房交易计税等数据服务。">
<#include "../jsconstants.ftl" />
@@ -40,12 +40,18 @@
<p class="p01"><small>行业应用之政府部门</small></p>
<p><label>从宏观统计到深入研究,从大区域至一小区</label></p>
<p><small>我们与国家统计局、上海统计局、以及政府房地产研究机构合作行业课题研究,<br>并为各地公证机构提供房产调研报告等。</small></p>
<div class="btnGroup" style="margin-top: -20px;">
<a class="link_btn link01_btn large" data_id="1034" cat="solution">立即咨询专业顾问</a>
</div>
</div>
</div>
<div class="banner mobile02" style="background:url(${staticUrl}/images/fangjia/v5/government_banner_m.jpg) no-repeat center center;background-size:100%;">
<div>
<p class="p01"><small>行业应用之政府部门</small></p>
<p><label>从宏观统计到深入研究,从大区域至一小区</label></p>
<div class="btnGroup">
<a class="link_btn link01_btn large" data_id="1034" cat="solution">立即咨询专业顾问</a>
</div>
</div>
</div>
@@ -20,3 +20,5 @@ var Constants = {
<#if scheme?? && scheme == "https" >
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
</#if>
<#include "baidu_analysis.ftl" />
@@ -46,13 +46,19 @@
<div class="banner mobile01" style="background:url(${staticUrl}/images/fangjia/v5/ptas_banner.jpg) no-repeat center center;">
<div>
<p class="p03"><label>房价通</label><br><span>Professional Estate Price Tracking Analysis System</span></p>
<p><small>实现革命性的一户一信息,能够做到对房产的实时精准评估,<br>快速了解历史价格情况与楼盘综合情况,并对后续价格涨跌幅进行实时监控。</small></p>
<p style="margin-top:-30px;"><small>实现革命性的一户一信息,能够做到对房产的实时精准评估,<br>快速了解历史价格情况与楼盘综合情况,并对后续价格涨跌幅进行实时监控。</small></p>
<div class="btnGroup" style="margin-top: -20px;">
<a class="link_btn link01_btn large" data_id="1015" cat="solution">立即体验</a>
</div>
</div>
</div>
<div class="banner mobile02" style="background:url(${staticUrl}/images/fangjia/v5/ptas_banner_m.jpg) no-repeat center center;background-size:100%;">
<div>
<p class="p03"><label>房价通</label><br><span>Professional Estate Price Tracking Analysis System</span></p>
<p><small>实现革命性的一户一信息,能够做到对房产的实时精准评估,快速了解历史价格情况与楼盘综合情况,并对后续价格涨跌幅进行实时监控。</small></p>
<div class="btnGroup">
<a class="link_btn link01_btn large" data_id="1015" cat="solution">立即咨询专业顾问</a>
</div>
</div>
</div>
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -4,7 +4,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>数据能力 - 房价网 fangjia.com</title>
<meta name="keywords" content="房产数据能力,房产市场分析,房产数据分析">
<meta name="keywords" content="楼盘均价、租金查询、商业地产、房价指数、全国房价、POI信息">
<meta name="description" content="十七年来为中国上亿套房产估值,以覆盖全国的房产/地址大数据库、领先的数据处理能力和算法模型,为政府机构、国有银行总行及各行业头部企业提供大数据产品,并赋能场景挖掘更多数据价值。">
<#include "../jsconstants.ftl" />
@@ -20,8 +20,8 @@
</script>
<style>
.columnBox {
padding: 60px 0;
.columnBox.mobile01 {
padding: 20px;
}
.container {
@@ -33,23 +33,23 @@
}
.container #title-icon-1 {
content: url("${staticUrl}/images/fangjia/v5/01_01.png");
content: url("${staticUrl}/images/fangjia/v5/power-icon-1.png");/*01_01.png*/
}
.container #title-icon-2 {
content: url("${staticUrl}/images/fangjia/v5/02_01.png");
content: url("${staticUrl}/images/fangjia/v5/power-icon-7.png");/*02_01.png*/
}
.container #title-icon-3 {
content: url("${staticUrl}/images/fangjia/v5/03_01.png");
content: url("${staticUrl}/images/fangjia/v5/power-icon-2.png");/*03_01.png*/
}
.container #title-icon-4 {
content: url("${staticUrl}/images/fangjia/v5/04_01.png");
content: url("${staticUrl}/images/fangjia/v5/power-icon-4.png");/*04_01.png*/
}
.container #title-icon-5 {
content: url("${staticUrl}/images/fangjia/v5/05_01.png");
content: url("${staticUrl}/images/fangjia/v5/power-icon-5.png");/*05_01.png*/
}
@@ -58,10 +58,11 @@
border-radius: 10px;
padding: 20px 0;
box-shadow: 0 2px 15px 2px rgb(242 242 242);
background: url("${staticUrl}/images/fangjia/v5/power-bk.png") no-repeat center center;
}
.container .item:hover {
border: 1px solid #a8a8a8;
border: 1px solid #f6f2f2;
box-shadow: 0 0 10px #a8a8a8;
/*background-color: #eed992;*/
color: white;
@@ -115,12 +116,21 @@
display: flex;
justify-content: center;
}
.container .item .title-2{
width: 200px;
line-height: 25px;
padding: 10px 0;
height: 70px;
color: #999;
text-align: left;
}
.container .item-title {
text-align: center;
font-size: 18px;
font-weight: bold;
line-height: 2;
color: #666;
}
@@ -133,7 +143,7 @@
text-align: left;
margin: 0;
list-style-image: url("${staticUrl}/images/fangjia/v5/list_icon.png");
padding-left: 5px;
/*padding-left: 5px;*/
margin-left: 10px;
}
@@ -181,39 +191,19 @@
<div class="item">
<div class="item-icon" style="display: flex;">
<img id="title-icon-1" src="" alt="">
<p>基础数据</p>
<p>行政区划库</p>
</div>
<#-- <div class="item-title">-->
<#-- <span>基础数据</span>-->
<#-- </div>-->
<div class="title-2">全国367个城市/地区的行政区划信息及行政代码库</div>
<div class="item-content">
<ol>
<li>行政区划库
<#-- <ol>-->
<#-- <li>省级行政区</li>-->
<#-- <li>地级行政区</li>-->
<#-- <li>县级行政区</li>-->
<#-- <li>乡级行政区</li>-->
<#-- <li>城市和区域</li>-->
<#-- </ol>-->
</li>
<li>地址信息库
<ol>
<li>地址数据库</li>
<li>地址别名库</li>
<li>行政编码</li>
<li>经纬度库</li>
<li>地址标签</li>
</ol>
</li>
<li>POI 信息库
<ol>
<li>城市配套</li>
<li>公共交通</li>
<li>商圈数据</li>
<li>消费水平</li>
</ol>
</li>
<li>省级行政区</li>
<li>地级行政区</li>
<li>县级行政区</li>
<li>乡级行政区</li>
<li>行政代码库</li>
</ol>
</div>
</div>
@@ -221,73 +211,74 @@
<div class="item">
<div class="item-icon" style="display: flex;">
<img id="title-icon-2" src="" alt="">
<p>楼盘字典</p>
<p>地址数据库</p>
</div>
<#-- <div class="item-title">-->
<#-- <span>楼盘字典</span>-->
<#-- </div>-->
<div class="item-content mt20">
<div class="title-2">覆盖全国的地址大数据库,数据结构标准、颗粒度精细,地址匹配能力行业领先</div>
<div class="item-content">
<ol>
<li style="list-style-image: url('${staticUrl}/images/fangjia/v5/list_icon.png')">楼盘名址库</li>
<li>楼栋信息库</li>
<li>房号信息库</li>
<li>楼盘别名库</li>
<li>楼盘基础信息</li>
<li>小区围栏</li>
<li>全国地址库</li>
<li>地址别名库</li>
<li>地理坐标信息库</li>
<li>POI数据库</li>
<li>涉农标签</li>
</ol>
</div>
</div>
<div class="item">
<div class="item-icon" style="display: flex;">
<img id="title-icon-3" src="" alt="">
<p>房价数据</p>
<p>楼盘字典</p>
</div>
<#-- <div class="item-title">-->
<#-- <span>房价数据</span>-->
<#-- </div>-->
<div class="item-content mt20">
<div class="title-2">依托国内最早线上房产估值平台房价网,十七年全国房产数据积累,专业专注</div>
<div class="item-content">
<ol>
<li>全国城市房产均价</li>
<li>楼盘均价</li>
<li>一房一价</li>
<li>楼盘租金</li>
<li>房价走势/涨跌幅</li>
<li>历史房价数据</li>
<li>小区名址库</li>
<li>楼栋/房号信息库</li>
<li>小区别名库</li>
<li>小区基础信息</li>
<li>地理坐标信息</li>
<li>小区围栏</li>
<li>小区特征标签</li>
</ol>
</div>
</div>
<div class="item" >
<div class="item-icon " style="display: flex;">
<img id="title-icon-4" src="" alt="">
<p>市场动态数据</p>
<p>商业地产库</p>
</div>
<#-- <div class="item-title">-->
<#-- <span>市场动态数据</span>-->
<#-- </div>-->
<div class="item-content mt20">
<div class="title-2">全国商业地产大数据库,解决名址匹配等难题</div>
<div class="item-content">
<ol>
<li>房产出租/出售挂牌数据</li>
<li>房产成交数据</li>
<li>法拍房数据</li>
<li>房产评估样本</li>
<li>商业地产名址库</li>
<li>办公楼/商铺租金</li>
<li>办公楼/商铺均价</li>
<li>商业地产租金指数</li>
<li>商业地产基础数据库</li>
<li>商业地产样本库</li>
</ol>
</div>
</div>
<div class="item">
<div class="item-icon" style="display: flex;">
<img id="title-icon-5" src="" alt="">
<p>数据分析</p>
<p>市场动态数据</p>
</div>
<#-- <div class="item-title">-->
<#-- <span>数据分析</span>-->
<#-- </div>-->
<div class="item-content mt20">
<div class="title-2">自2006年以来的时间序列市场动态数据积累,数据多元丰富,满足不同场景需求</div>
<div class="item-content">
<ol>
<li>全国城市房价走势/涨跌幅</li>
<li>全国楼盘均价/一房一价</li>
<li>城市/区域/楼盘房价指数</li>
<li>租售比</li>
<li>楼盘价值评级</li>
<li>地址财力评级</li>
<li>地址风险评级</li>
<li>房产出租/出售挂牌数据</li>
<li>房产成交数据</li>
<li>全国法拍房数据</li>
<li>房产评估样本大数据库</li>
</ol>
</div>
</div>
@@ -1,15 +1,15 @@
<!--360推广统计监控代码-->
<script type="text/javascript" src="//s.union.360.cn/156059.js" async defer></script>
<!--百度推广统计监控代码-->
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?ce04c774616a3627d24dc1c4464c748a";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
<#--<script>-->
<#-- var _hmt = _hmt || [];-->
<#-- (function() {-->
<#-- var hm = document.createElement("script");-->
<#-- hm.src = "https://hm.baidu.com/hm.js?ce04c774616a3627d24dc1c4464c748a";-->
<#-- var s = document.getElementsByTagName("script")[0];-->
<#-- s.parentNode.insertBefore(hm, s);-->
<#-- })();-->
<#--</script>-->
<!--谷歌统计分析代码-->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
@@ -161,7 +161,7 @@
<div class="seo_keyword_content">
<ul>
<#list districtList as district>
<li><a href="<@d_url schema="${citySchema}" uri="/district/show" ><@d_param name="districtName" value="${district.name!}" /><@d_param name="region" value="${district.region!}" /></@d_url>" class="frbtn cur">${district.name}</a></li>
<li><a href="${cityUrl}/zoushi?cityName=${district.city}&districtName=${district.name!''}&region=${district.region!''}">${district.name!}</a></li>
</#list>
</ul>
</div>
@@ -4,7 +4,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>地址治理 - 房价网 fangjia.com</title>
<meta name="keywords" content="房产咨询研究,房产市场分析,房产数据分析">
<meta name="keywords" content="地址治理、地理编码、地址标准化、地址批量处理、地址匹配、名址匹配">
<meta name="description" content="房价网为房产咨询研究机构提供房地产行业市场分析、项目调研及可行性研究、房产价格跟踪等服务。">
<#include "../jsconstants.ftl" />
@@ -20,7 +20,7 @@
<style>
.columnBox {
padding: 60px 0;
padding-top: 60px;
}
.radius{
width: 600px;
@@ -92,7 +92,7 @@
<div class="columnBox">
<div class="columnBox firstOne">
<div class="column bg" style="height: 350px;">
<div class="column_left" style="padding-top: 48px;">
<img src="${staticUrl}/images/fangjia/v5/consulting_img03.jpg">
@@ -3,8 +3,8 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>信用卡 - 房价网 fangjia.com</title>
<meta name="keywords" content="信用卡">
<title>信用卡 - 信用卡促销促活,睡眠户激活,客户运营,地推选址 房价网 fangjia.com</title>
<meta name="keywords" content="信用卡促销,信用卡促活,睡眠户激活,客户洞察,客户运营,地推选址">
<meta name="description" content="房价网利用科学专业的估价方法和AVM房价计算模型,通过系统自动生成房产估值,提供高效低成本,公立客观的贷前估值解决方案。">
<#include "../jsconstants.ftl" />
@@ -4,7 +4,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>财力评级解决方案 - 房价网 fangjia.com</title>
<meta name="keywords" content="财力评级">
<meta name="keywords" content="客户财力评级、客户分层、客户洞察、高净值客户、财富客户筛选">
<meta name="description" content="房价网基于地理位置的财力评级分析">
<#include "../jsconstants.ftl" />
@@ -35,6 +35,10 @@
margin-top: 0.2rem;
}
}
.columnBox.mobile01 {
padding-top: 60px;
position: relative;
}
</style>
</head>
@@ -76,12 +80,12 @@
</div>
<div class="columnBox mobile01" style="padding: 40px 0 20px;">
<div class="columnBox mobile01 firstOne">
<div class="column bg">
<div class="column_left">
<img src="${staticUrl}/images/fangjia/v5/financial-2.png" style="width: 400px;">
</div>
<div class="column_left" style="padding-left: 80px;">
<div class="column_left" style="padding-left: 80px;padding-top: 55px;">
<p><label >基于地址的客户价值识别</label></p>
<p><small>估家科技创新研发的客户(地址)财力评级服务,是以地理位置为核心,通过人工智能对地址数据进行自动化治理、打破数据壁垒将不同维度的数据链接、结合业务场景建立评级模型、输出基于地址的综合财力评级,从而实现客户分层。 通过地址-房产-地段-环境等要素实现的财力评级,可以精准筛选财富客户,或锁定特定的目标客群,并为不同层级的客户设计相应的营销策略,以提升营销ROI。</small></p>
</div>
@@ -4,7 +4,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>楼盘评级 - 房价网 fangjia.com</title>
<meta name="keywords" content="房产咨询研究,房产市场分析,房产数据分析">
<meta name="keywords" content="楼盘评级、楼盘评分、小区评级、小区综合实力、楼盘基础信息、楼盘评级标准">
<meta name="description" content="房价网为房产咨询研究机构提供房地产行业市场分析、项目调研及可行性研究、房产价格跟踪等服务。">
<#include "../jsconstants.ftl" />
@@ -20,7 +20,8 @@
<style>
.columnBox {
padding: 10px 0 60px 0;
padding-top: 20px;
padding-bottom: 20px;
}
.radius{
width: 600px;
@@ -61,7 +62,7 @@
<body>
<#include "/header/v5/_header.ftl"/>
<div class="banner mobile01" style="background:url(${staticUrl}/images/fangjia/v5/location_banner.jpg) no-repeat center center;">
<div class="banner mobile01 firstOne" style="background:url(${staticUrl}/images/fangjia/v5/location_banner.jpg) no-repeat center center;">
<div>
<p><label>新一代楼盘评级&nbsp;&nbsp;&nbsp;&nbsp;赋能高质量发展</label></p>
<p><small>智能楼盘评级聚焦全国楼盘,全新维度深度分析楼盘价值,<br/>提高业务数字化经营能力,进一步提升综合竞争力和价值贡献。</small></p>
@@ -87,7 +88,7 @@
<div class="column_left">
<img src="${staticUrl}/images/fangjia/v5/consulting_img03.jpg">
</div>
<div class="column_left" style="padding-left: 50px;padding-top: 20px;">
<div class="column_left" style="padding: 50px 69px;">
<p><label >楼盘评级</label></p>
<p><small>
以楼盘为颗粒度,运用<b>楼盘基础信息</b>、<b>交易数据</b>和<strong>外部环境数据</strong>,通过模型进行价值计算与深度分析。
@@ -98,9 +99,9 @@
</div>
</div>
<div class="mobile01">
<div class="mobile01 columnBox" style="height: 620px;">
<div class="column">
<div class="column_left">
<div class="column_left" >
<div class="radius">
<center><h1 style="font-size: 24px;margin-top: 20px;">应用场景</h1></center>
<p><label >押品风控</label></p>
@@ -123,12 +124,12 @@
</div>
<div class="mobile01" style="margin-bottom: 60px;height: 360px;">
<div class="mobile01 columnBox" style="height: 360px;">
<div class="column bg">
<div class="column_left" style="margin-top: 2px;">
<img src="${staticUrl}/images/fangjia/v5/itfin_img02.jpg" style="width: 600px;height: 250px;">
</div>
<div class="column_left" style="padding-top: 25px">
<div class="column_left">
<center><h1 style="font-size: 24px;">核心内容</h1></center>
<p><label >楼盘基础数据梳理、治理与整合</label></p>
@@ -143,7 +144,7 @@
</div>
<div class="adBox adBox01" style="padding-top: 60px;">
<div class="adBox adBox01">
<p><small>如想了解详情,请致电 <b style="font-size: 18px;color: yellow;">400-188-3787</b> 联系我们,或者留下您的联系方式和需求,我们会第一时间联系您。</small></p>
<a class="link_btn link01_btn" data_id="1027" cat="solution">立即咨询</a>
</div>
@@ -3,8 +3,8 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>一房一价 - 房价网 fangjia.com</title>
<meta name="keywords" content="房产咨询研究,房产市场分析,房产数据分析">
<title>一房一价-押品估值,批量复估,房产大数据,估值模型 房价网 fangjia.com</title>
<meta name="keywords" content="一房一价,押品估值,批量复估,房产大数据,楼盘字典,估值模型">
<meta name="description" content="房价网为房产咨询研究机构提供房地产行业市场分析、项目调研及可行性研究、房产价格跟踪等服务。">
<#include "../jsconstants.ftl" />
@@ -22,6 +22,7 @@
.bg{background-color: #f0f0f0;}
@media(max-device-width:768px){
.columnBox.bg{background:none;}
.column{border:solid 1px #d2d2d2;}
@@ -29,6 +30,11 @@
.column > div img{width:100%;}
.columnBox.mobile02 .column > div.column_left{margin:0;}
}
.columnBox.mobile01 {
padding-top: 20px;
position: relative;
}
</style>
</head>
@@ -37,7 +43,8 @@
<#include "/header/v5/_header.ftl"/>
<div class="banner mobile01" style="background:url(${staticUrl}/images/fangjia/v5/itfin_banner.jpg) no-repeat center center;">
<div>
<div style="margin-top: -20px;">
<p><label>一房一价</label></p>
<p><label>计算每一套房产的“与众不同” </label></p>
<p><small>全量房产大数据、全维度的变量因子、领先的算法模型,让房产估值精确到“一房一价”,精准计算每一套房产的价值</small></p>
<div class="btnGroup">
@@ -47,6 +54,7 @@
</div>
<div class="banner mobile02" style="background:url(${staticUrl}/images/fangjia/v5/consulting_banner_m.jpg) no-repeat center center;background-size:100%;">
<div>
<p class="p01"><small>一房一价</small></p>
<p class="p01"><small>计算每一套房产的“与众不同” </small></p>
<p><label>全量房产大数据、全维度的变量因子、领先的算法模型,让房产估值精确到“一房一价”,精准计算每一套房产的价值</label></p>
<div class="btnGroup">
@@ -126,10 +134,10 @@
</div>
</div>
<div class="columnBox mobile01" style="padding: 70px 0 20px;">
<div class="columnBox mobile01">
<div class="column bg">
<div class="column_left">
<img src="${staticUrl}/images/fangjia/v5/bank_img02.jpg">
<img src="${staticUrl}/images/fangjia/v5/bank_img02.jpg" alt="实时在线房产估值">
</div>
<div class="column_left" style="padding-left: 50px;">
<p><label >一房一价</label></p>
@@ -152,7 +160,7 @@
</div>
</div>
<div class="columnBox mobile01" style="padding: 20px 0;">
<div class="columnBox mobile01">
<div class="column bg ">
<div class="column_left" style="padding: 30px 20px 0px 30px;">
<p><label >技术领航</label></p>
@@ -161,7 +169,7 @@
<p><small>* 卓越的批量数据处理能力,线上评估响应速度及并发处理能力行业领先</small></p>
</div>
<div class="column_right" style="padding-left: 50px;">
<img src="${staticUrl}/images/fangjia/v5/onehouse-1.png" style="width: 450px;height: 280px;">
<img src="${staticUrl}/images/fangjia/v5/onehouse-1.png" style="width: 450px;height: 280px;" alt="地址匹配">
</div>
</div>
</div>
@@ -182,10 +190,10 @@
</div>
<div class="columnBox mobile01" style="padding: 20px 0;">
<div class="columnBox mobile01">
<div class="column bg">
<div class="column_left">
<img src="${staticUrl}/images/fangjia/v5/onehouse-2.png" style="width: 450px;height: 250px;">
<img src="${staticUrl}/images/fangjia/v5/onehouse-2.png" style="width: 450px;height: 250px;" alt="追踪房产大数据变化">
</div>
<div class="column_left" style="padding-left: 50px;">
<p><label >动态追踪</label></p>
@@ -208,7 +216,7 @@
</div>
</div>
<div class="columnBox mobile01" style="padding: 20px 0;">
<div class="columnBox mobile01">
<div class="column bg">
<div class="column_left" style="padding: 30px 20px 0px 30px;">
<p><label >行业标杆 </label></p>
@@ -216,7 +224,7 @@
<p><small>多年来与政府机构共同研究房价趋势与监测平台,为各大银行提供贷前、贷中、贷后押品全生命周期的价值管理。</small></p><br>
</div>
<div class="column_right" style="padding-left: 50px;">
<img src="${staticUrl}/images/fangjia/v5/onehouse-3.png" style="width: 450px;height: 280px;">
<img src="${staticUrl}/images/fangjia/v5/onehouse-3.png" style="width: 450px;height: 280px;" alt="房产估值模型">
</div>
</div>
</div>
@@ -4,7 +4,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>地址标准化解决方案 - 房价网 fangjia.com</title>
<meta name="keywords" content="地址标准化,地址批量处理">
<meta name="keywords" content="地址标准化、地址批量处理、地址经纬度、行政编码、涉农地址、地址匹配">
<meta name="description" content="针对批量地址数据的处理,房价网为身处风控、征信及营销等领域的行业提供高效智能的地址标准化解决方案。">
<#include "../jsconstants.ftl" />
@@ -32,8 +32,9 @@
<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" id="seekAdvice" style="width: 222px; font-size: 25px; ">立即咨询专业顾问</a>
<a class="link_btn link01_btn large" data_id="1007" cat="solution" style="width: 222px; font-size: 25px; ">立即咨询专业顾问</a>
</div>
</div>
</div>
<div class="banner mobile02" style="background:url(${staticUrl}/images/fangjia/v5/standardization_banner_m.jpg) no-repeat center center;background-size:100%;">
@@ -41,7 +42,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" id="seekAdvice_mobile">立即咨询专业顾问</a>
<a class="link_btn link01_btn large" data_id="1007" cat="solution">立即咨询专业顾问</a>
</div>
</div>
</div>
@@ -186,14 +186,14 @@
</ul>
<ul class="chartTools">
<#if keyword??>
<li class="<#if type?? && (type=='4' || type=='quarter')>current</#if>"><a href="<@d_url schema="${citySchema}" uri="/zoushi"><@d_param name="keyword" value="${keyword!}" /><@d_param name="type" value="4" /></@d_url>">季度</a></li>
<li class="<#if !type?? || (type=='4' || type=='quarter')>current</#if>"><a href="<@d_url schema="${citySchema}" uri="/zoushi"><@d_param name="keyword" value="${keyword!}" /><@d_param name="type" value="4" /></@d_url>">季度</a></li>
<li class="<#if type?? && (type=='3' || type=='half')>current</#if>"><a href="<@d_url schema="${citySchema}" uri="/zoushi"><@d_param name="keyword" value="${keyword!}" /><@d_param name="type" value="3" /></@d_url>">半年</a></li>
<li class="<#if !type?? || (type=='2' || type=='year')>current</#if>"><a href="<@d_url schema="${citySchema}" uri="/zoushi"><@d_param name="keyword" value="${keyword!}" /><@d_param name="type" value="2" /></@d_url>">一年</a></li>
<li class="<#if type?? && (type=='2' || type=='year')>current</#if>"><a href="<@d_url schema="${citySchema}" uri="/zoushi"><@d_param name="keyword" value="${keyword!}" /><@d_param name="type" value="2" /></@d_url>">一年</a></li>
<li class="<#if type?? && (type=='1' || type=='year2')>current</#if>"><a href="<@d_url schema="${citySchema}" uri="/zoushi"><@d_param name="keyword" value="${keyword!}" /><@d_param name="type" value="1" /></@d_url>">两年</a></li>
<#else>
<li class="<#if type?? && (type=='4' || type=='quarter')>current</#if>"><a href="<@d_url schema="${citySchema}" uri="/zoushi"><@d_param name="region" value="${trendView.region!}" /><#if block??><@d_param name="block" value="${trendView.block!}" /></#if><@d_param name="districtName" value="${trendView.districtName!}" /><@d_param name="type" value="4" /></@d_url>">季度</a></li>
<li class="<#if !type?? || (type=='4' || type=='quarter')>current</#if>"><a href="<@d_url schema="${citySchema}" uri="/zoushi"><@d_param name="region" value="${trendView.region!}" /><#if block??><@d_param name="block" value="${trendView.block!}" /></#if><@d_param name="districtName" value="${trendView.districtName!}" /><@d_param name="type" value="4" /></@d_url>">季度</a></li>
<li class="<#if type?? && (type=='3' || type=='half')>current</#if>"><a href="<@d_url schema="${citySchema}" uri="/zoushi"><@d_param name="region" value="${trendView.region!}" /><#if block??><@d_param name="block" value="${trendView.block!}" /></#if><@d_param name="districtName" value="${trendView.districtName!}" /><@d_param name="type" value="3" /></@d_url>">半年</a></li>
<li class="<#if !type?? ||(type=='2' || type=='year')>current</#if>"><a href="<@d_url schema="${citySchema}" uri="/zoushi"><@d_param name="region" value="${trendView.region!}" /><#if block??><@d_param name="block" value="${trendView.block!}" /></#if><@d_param name="districtName" value="${trendView.districtName!}" /><@d_param name="type" value="2" /></@d_url>">一年</a></li>
<li class="<#if type?? && (type=='2' || type=='year')>current</#if>"><a href="<@d_url schema="${citySchema}" uri="/zoushi"><@d_param name="region" value="${trendView.region!}" /><#if block??><@d_param name="block" value="${trendView.block!}" /></#if><@d_param name="districtName" value="${trendView.districtName!}" /><@d_param name="type" value="2" /></@d_url>">一年</a></li>
<li class="<#if type?? && (type=='1' || type=='year2')>current</#if>"><a href="<@d_url schema="${citySchema}" uri="/zoushi"><@d_param name="region" value="${trendView.region!}" /><#if block??><@d_param name="block" value="${trendView.block!}" /></#if><@d_param name="districtName" value="${trendView.districtName!}" /><@d_param name="type" value="1" /></@d_url>">两年</a></li>
</#if>
@@ -295,9 +295,8 @@
</div>
</div>
</#if>
</div>
<#--<div class=""><h1><a href="${wwwUrl}/district/hidelist?cityName=${cityName!''}">楼盘列表</a></h1></div>-->
<div class="adBox">
<p><label>获取更多关于房产的数据</label></p>
<p><small>房价网可提供关于小区或地址的全面数据,包含城市小区数据库及楼栋数据库,<br>可提供超过70个字段的多维度数据,包含小区信息,房产信息,周边信息以及关于小区和房产的数据分析等信息。</small></p>
@@ -386,7 +385,7 @@ $(document).ready(function(){
</#if>
naver();
<#else>
var url = Constants.cityUrl + '/trend/yearData?defaultCityName=${cityName}&districtName=${districtName!}&region=${region!}&block=${block!}&keyword=${keyword!}';
var url = Constants.cityUrl + '/trend/quarterData?defaultCityName=${cityName}&districtName=${districtName!}&region=${region!}&block=${block!}&keyword=${keyword!}';
</#if>
$.getJSON(encodeURI(url), function(data) {
createChart('container', data, false);
@@ -38,8 +38,11 @@ public enum NewResourceRecommendEnum {
FUND("1029", "互金"),
COLLATERAL("1030", "押品价值管理"),
CARD("1031", "信用卡"),
NET("1032", "网点布局");
NET("1032", "网点布局"),
GOV("1034", "政府机构"),
BOND("1033", "证券"),
COST("1035", "消费金融"),
ZIXUN_APP("1036", "业务咨询app");
NewResourceRecommendEnum(String id, String value) {
this.id = id;
@@ -34,7 +34,11 @@ public enum SalesLeadEnum {
FUND("1029", "互金"),
COLLATERAL("1030", "押品价值管理"),
CARD("1031", "信用卡"),
NET("1032", "网点布局");
NET("1032", "网点布局"),
GOV("1034", "政府机构"),
BOND("1033", "证券"),
COST("1035", "消费金融"),
ZIXUN_APP("1036", "业务咨询app");
SalesLeadEnum(String id, String value) {
this.id = id;
@@ -1861,6 +1861,44 @@ public class AddressController {
return mav;
}
/**
* 招商证券POC测试接口封装
*/
public Object cmbTestAction(AddesssMatchModel model) {
RestfulModelAndView mav = new RestfulModelAndView();
if (StringUtils.isBlank(model.getAddress())) {
mav.setModel(BasicModel.buildBadRequestModel("地址不能为空"));
return mav;
}
HttpRequest request = new HttpRequest();
JSONObject json = null;
Map<String, String> params = new HashMap<String, String>();
params.put("city", StringUtils.isNotBlank(model.getCity()) ? model.getCity() : CONFIG.getDefaultCity());
params.put("address", model.getAddress());
try{
json = request.getJsonContent("http://192.168.0.100:32080/FangJiaAddressService/cmbTest", params, "UTF-8");
} catch(Exception e){
try {
json = request.getJsonContent("http://192.168.0.100:32080/FangJiaAddressService/cmbTest", params, "UTF-8");
} catch(Exception ex){
ex.printStackTrace();
}
}
if (json != null) {
int code = json.getInt("status");
String msg = json.getString("msg");
BasicModel basicModel = new BasicModel(code, msg);
if(json.containsKey("result")){
basicModel.setResult(json.get("result"));
}
mav.setModel(basicModel);
} else {
mav.setModel(BasicModel.buildServerErrorModel().setMsg("服务升级中..."));
}
return mav;
}
/**
* 五级地址标准化接口
*
@@ -39,7 +39,7 @@ public class JnBankController {
private static final Pattern STAGE_PATTERN = Pattern.compile(".*[\\w东南北中西甲乙丙丁一二三四五六七八九十百千\\d]+(期|区)$");
@Authority(role = Role.NONE)
public Object searchAction(@Valid JNBankSearchModel model){
RestfulModelAndView mav = new RestfulModelAndView();
@@ -2335,6 +2335,10 @@ public class PropertyController {
int total = Integer.valueOf(rankDesc[1]);
UniversalDto dto = new UniversalDto();
dto.append("relativeRank", DataUtil.roundDouble(((total - rank) / (double) total) * 100, 2));
if(null != districtAnalyData.getRegionRank()){
dto.append("regionRelativeRank", DataUtil.roundDouble(((districtAnalyData.getRegionRankTotal() - districtAnalyData.getRegionRank()) / (double) districtAnalyData.getRegionRankTotal()) * 100, 2));
}
mav.setModel(BasicModel.buildOKModel().setResult(dto));
} else {
mav.setModel(BasicModel.buildOKModel().setMsg("暂无该小区排名信息"));
@@ -2343,6 +2347,8 @@ public class PropertyController {
}
/**
* 小区成交记录查询
*
@@ -56,8 +56,8 @@ class BigdataCommunityBatch extends BaseBatch{
def distCodeMap = CcbCommonUtils.findAllDistrictCodeValue(city)
def dists = CcbCommonUtils.findAllDistrictByCity(city, "district", ["city","region", "name", "address","lat", "lng","all_area","build_area","virescence_percent","cubage_percent","car_site_count","finish_building_date","estate_type2","household_count","status","c_date","m_date","name_cat","street","street_number"])
// def ccbMaps = CcbCommonUtils.findCcbDistrict(cityCodeDataMap.get(city))
def ccbMaps = CcbCommonUtils.findPgCcbDistrict(cityCodeDataMap.get(city))
// def ccbMaps = CcbCommonUtils.findCcbDistrict(cityCodeDataMap.get(city)) //融合导数时使用
def ccbMaps = CcbCommonUtils.findPgCcbDistrict(cityCodeDataMap.get(city)) //估值导数时使用
def rets = createCityDatas(cityCodeDataMap, distCodeMap, dists)
rets = addDeleteDist(dists, ccbMaps, rets)
rows.addAll(rets)
@@ -78,9 +78,13 @@ class BigdataCommunityBatch extends BaseBatch{
println "txt 生成->导Oracle"
// delPgData()
delPgData()
saveToPgSql(rows)
// ExcelUtils.write("d:\\数据\\建行\\房产估值\\数据文件\\excel\\bigdata_community.xlsx", allDatas, "数据")
// def datas = readTxt("d:\\数据\\建行\\房产估值\\数据文件\\txt\\BIGDATA_COMMUNITY_GJ.dat")
// delPgData()
// saveToPgSql2(datas)
}
def addDeleteDist(dists, ccbMaps, rets){
@@ -255,14 +259,74 @@ class BigdataCommunityBatch extends BaseBatch{
println "start: "+new Date()
def sql = "insert into base.t0831_bigdata_community_gj_h values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)"
sqlInstance.withBatch(20000, sql){ ps->
sqlInstance.withBatch(1, sql){ ps->
for(def r : rows) {
ps.addBatch(r[0], r[1], r[2], r[3], r[4], r[5], r[6], r[7], r[8], r[9], r[10], r[11], r[12], r[13], r[14], r[15], r[16], r[17], r[18], r[19], r[20],
r[21], r[22], r[23], r[24], r[25], r[26], r[27], r[28], r[29], r[30], r[31], r[32], r[33], r[34], r[35], r[36], r[37], r[38])
ps.toString()
try{
ps.addBatch(r[0], r[1], r[2], r[3], r[4], r[5], r[6], r[7], r[8], r[9], r[10], r[11], r[12], r[13], r[14], r[15], r[16], r[17], r[18], r[19], r[20],
r[21], r[22], r[23], r[24], r[25], r[26], r[27], r[28], r[29], r[30], r[31], r[32], r[33], r[34], r[35], r[36], r[37], r[38])
ps.toString()
}catch(Exception e){
e.printStackTrace()
}
}
}
println "end: "+new Date()
}
def saveToPgSql2(rows){
def newRows = []
for(def r : rows) {
def newR = []
for (def i = 0; i < r.size(); i++) {
if("" == r[i]){
// r[i] = null
newR << null
}else{
newR << r[i]
}
}
newR << null
newR << DateUtils.formatDateByPattern(new Date(), "yyyy-MM")+"-28"
newR << null
newR << '2999-12-31'
newR << null
newR << null
newR << null
newRows << newR
}
println "start: "+new Date()
def sql = "insert into base.t0831_bigdata_community_gj_h values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)"
def index = 0
sqlInstance.withBatch(10000, sql){ ps->
for(def r : newRows) {
index++
try{
ps.addBatch(r[0], r[1], r[2], r[3], r[4], r[5], r[6], r[7], r[8], r[9], r[10], r[11], r[12], r[13], r[14], r[15], r[16], r[17], r[18], r[19], r[20],
r[21], r[22], r[23], r[24], r[25], r[26], r[27], r[28], r[29], r[30], r[31], r[32], r[33], r[34], r[35], r[36], r[37], r[38])
index
}catch(Exception e){
e.printStackTrace()
}
}
}
println "end: "+new Date()
}
def readTxt(def fileName){
File file = new File(fileName);
def rows = [];
file.eachLine{
def row = it.split("\\|@\\|")
rows << row
}
return rows;
}
}
@@ -91,7 +91,7 @@ class BigdataForsaleBatch extends BaseBatch{
def distCodeMap = CcbCommonUtils.findAllDistrictCodeValue(city)
def districts = CcbCommonUtils.findAllDistrictByCity(city, "district", ["city", "region", "name", "lng","estate_type2","name_cat","address", "alias", "finish_building_date", "house_property", "property_life", "build_type", "build_structure"]);
// exportSellCSV(index, city, cityCodeDataMap, distCodeMap, districts, 20230118, 20230219);
exportSellCSV(index, city, cityCodeDataMap, distCodeMap, districts, 20230218, 20230319, houseIdsfilter);
exportSellCSV(index, city, cityCodeDataMap, distCodeMap, districts, 20230318, 20230419, houseIdsfilter);
//测试通过匹配接口配房源效果
// exportSellCSV(index, city, cityCodeDataMap, distCodeMap, districts, 20201201, 20211118)
}
@@ -146,7 +146,9 @@ class CcbCommonUtils {
public static def findGuidePrice(city, startDate, endDate){
def q = new BasicDBObject()
q.put("city", city)
q.put('c_date', new BasicDBObject('$gte', DateUtils.parseFromTightYYYYMMDD(startDate)).append('$lt', DateUtils.parseFromTightYYYYMMDD(endDate)));
if(startDate && endDate){
q.put('c_date', new BasicDBObject('$gte', DateUtils.parseFromTightYYYYMMDD(startDate)).append('$lt', DateUtils.parseFromTightYYYYMMDD(endDate)));
}
def dbcursor = DISTRICT_GUIDE_PRICE_COLL.find(q)
def rets = []
for(def d : dbcursor){
@@ -428,7 +430,7 @@ class CcbCommonUtils {
q.put("visible",0)
q.put("cat", cat);
q.put("city", city);
// q.put("name","鸣翠蓝湾")
// q.put("name","锦南浦三小区")
// q.put("name_cat", 0);
// q.put("estate_type2", new BasicDBObject('$in', ["普通住宅","商住"]))
@@ -440,7 +442,7 @@ class CcbCommonUtils {
}
// def dbsour = getDataStoreConnection().find(q, keys).batchSize(2000)
def dbsour = DBUtils.seaweed.find(q,keys).batchSize(2000)
println "原始:"+dbsour.count()
println "[${city}] 原始:"+dbsour.count()
def rets = []
for(def d : dbsour){
if(d.name_cat == 0 && d.lng && ["普通住宅","商住"].contains(d.estate_type2) && !d.name.contains("洋房") && !d.name.contains("公房")){
@@ -450,7 +452,7 @@ class CcbCommonUtils {
rets << d
}
}
println "小区量:"+rets.size()
println "[${city}] 小区量:"+rets.size()
return rets;
}
@@ -660,4 +662,13 @@ class CcbCommonUtils {
pgsqlInstance.executeUpdate(sql2)
}
public static def findDistGovPrice(def city){
def ids = []
pgsqlInstance.eachRow("SELECT gujia_bds_id from base.t0831_community_guide_price_gj_h where urbn_nm='${city}'",{it->
ids << it.gujia_bds_id
});
return ids;
}
}
@@ -375,12 +375,12 @@ class DealPriceDataProcess {
def deleteThirdPartyData(){
def citys = CcbCommonUtils.citys_all
def month = 202301
def month = 202302
def rows = []
def cityCodeDatas = CcbCommonUtils.findCityCodeValue()
def set = new HashSet()
for(def city : citys) {
def rets = findPeGteThirdParty2(city, 202302)
def rets = findPeGteThirdParty2(city, 202303)
def total = 0
println city +" "+rets.size()
if(rets){
@@ -33,7 +33,7 @@ class FjwPricePkCcbPrice {
def task = new FjwPricePkCcbPrice()
// task.run()
// task.updatePrice()
// task.addFjwPrice()
task.addFjwPrice()
// task.addCcbPrice()
// task.addCcbPriceFromGuided()
@@ -44,7 +44,7 @@ class FjwPricePkCcbPrice {
// task.addCcbPrice2()
// task.addCcbPrice3()
task.standRegion()
// task.standRegion()
}
def addCcbPrice2(){
@@ -202,13 +202,13 @@ class FjwPricePkCcbPrice {
}
def addFjwPrice(){
ExcelUtils.modify("D:\\数据\\建行\\测试\\人工查价(7455)_0824_0913.xlsx",{d->
if(!d['M']){
def dist = CommonDatautils.findDistrictById(d['D'])
ExcelUtils.multiThreadingModify("D:\\数据\\建行\\3月国信达差价_755条.xlsx",{d->
if(!d['K']){
def dist = CommonDatautils.findDistrictById(d['C'])
if(dist){
def dbo = CommonDatautils.queryDistrictPrice(dist.city, dist.region, dist.name, DateUtils.parseFromTightByPattern("2022-09-11","yyyy-MM-dd"))
def dbo = CommonDatautils.queryDistrictPrice(dist.city, dist.region, dist.name, DateUtils.parseFromTightByPattern("2023-03-26","yyyy-MM-dd"))
if(dbo){
d['M'] = dbo.avg_price
d['K'] = dbo.avg_price
}
}
}
@@ -217,10 +217,15 @@ class FjwPricePkCcbPrice {
}
def standRegion(){
ExcelUtils.multiThreadingModify("D:\\数据\\建行\\房产估值\\指导价\\人工指导价录入3月20日.xlsx",{d->
if(!d['J']){
def newRegion = RegionData.formatRegion(d['A'], d['B'])
d['J'] = newRegion
ExcelUtils.multiThreadingModify("C:\\Users\\gaojuan\\Downloads\\高德写字楼.xlsx",{d->
if(d['A']){
def city = RegionData.formatCity(d['A'])
if(city){
def newRegion = RegionData.formatRegion(city, d['B'])
d['J'] = city
d['K'] = newRegion
}
}
})
}
@@ -43,46 +43,46 @@ class GuiDingPriceBatch extends BaseBatch{
@Override
public void process(Object args) {
// def citys = CcbCommonUtils.getRunningCitys(args)
// def rows = []
//
// CcbCommonUtils.deleteGuidedPrice(curDate)
// for (def city : citys) {
// def cityCodeDatas = CcbCommonUtils.findCityCodeValue()
// def distCodeMap = CcbCommonUtils.findAllDistrictCodeValue(city)
//
// //添加自己库中的人工指导价
// def prices = CcbCommonUtils.findPersonPrice(city, "2023-01-25", "2023-02-27")
//// def prices = CcbCommonUtils.findPersonPrice(city, "2022-01-01", "2022-11-22")
// if(prices){
// def distMap = getDistrictMap(city)
// def rets = createCityDatas(cityCodeDatas, distCodeMap, distMap, prices)
// rows.addAll(rets)
// println city + " " + rets.size()
def citys = CcbCommonUtils.getRunningCitys(args)
def rows = []
CcbCommonUtils.deleteGuidedPrice(curDate)
for (def city : citys) {
def cityCodeDatas = CcbCommonUtils.findCityCodeValue()
def distCodeMap = CcbCommonUtils.findAllDistrictCodeValue(city)
//添加自己库中的人工指导价
def prices = CcbCommonUtils.findPersonPrice(city, "2023-03-21", "2023-04-21")
// def prices = CcbCommonUtils.findPersonPrice(city, "2022-01-01", "2022-11-22")
if(prices){
def distMap = getDistrictMap(city)
def rets = createCityDatas(cityCodeDatas, distCodeMap, distMap, prices)
rows.addAll(rets)
println city + " " + rets.size()
}
//添加搜房的参考价
// def districts = CcbCommonUtils.findAllDistrictByCity(city, "district", ["city", "region", "name", "lng","estate_type2","name_cat", "alias"]);
// def datas = findFangDatas(districts)
// def fangRets = createDatas(cityCodeDatas, distCodeMap, datas)
// rows.addAll(fangRets)
//添加保亭文昌的指导价
// def cityDatas = ExcelUtils.read("D:\\数据\\建行\\房产估值\\文昌-保亭待调查小区价格 - 210902(1).xlsx")
// def cityDataMap = [:]
// for(def d : cityDatas){
// cityDataMap.put(d['A'], d['E'])
// }
//
// //添加搜房的参考价
//// def districts = CcbCommonUtils.findAllDistrictByCity(city, "district", ["city", "region", "name", "lng","estate_type2","name_cat", "alias"]);
//// def datas = findFangDatas(districts)
//// def fangRets = createDatas(cityCodeDatas, distCodeMap, datas)
//// rows.addAll(fangRets)
//
// //添加保亭文昌的指导价
//// def cityDatas = ExcelUtils.read("D:\\数据\\建行\\房产估值\\文昌-保亭待调查小区价格 - 210902(1).xlsx")
//// def cityDataMap = [:]
//// for(def d : cityDatas){
//// cityDataMap.put(d['A'], d['E'])
//// }
//// def personDatas = findPersonDatas(districts, cityDataMap);
//// def personRets = createDatas(cityCodeDatas, distCodeMap, personDatas)
//// rows.addAll(personRets)
//
// }
//
// def headers = []//["第三方均价ID","楼盘ID","小区名称","城市ID","城市名称","行政区ID","行政区名称","指导日期","指导价格","添加人","备注","创建时间","更新时间","来源公司"]
// FileUtils.batchCreateFile(rows, "d:\\数据\\建行\\房产估值\\数据文件\\txt\\GUIDED_PRICE_GJ.dat", headers, "utf-8", false);
//
// saveToPgSql(rows)
// def personDatas = findPersonDatas(districts, cityDataMap);
// def personRets = createDatas(cityCodeDatas, distCodeMap, personDatas)
// rows.addAll(personRets)
}
def headers = []//["第三方均价ID","楼盘ID","小区名称","城市ID","城市名称","行政区ID","行政区名称","指导日期","指导价格","添加人","备注","创建时间","更新时间","来源公司"]
FileUtils.batchCreateFile(rows, "d:\\数据\\建行\\房产估值\\数据文件\\txt\\GUIDED_PRICE_GJ.dat", headers, "utf-8", false);
saveToPgSql(rows)
//更新静态数据表
updateVersion(DateUtils.formatDateByPattern(new Date(), "yyyy-MM")+"-28")
@@ -22,9 +22,9 @@ import java.util.concurrent.ConcurrentHashMap
@BatchOwner(Watcher.GaoJuan)
class ThirdPartyPriceBatch extends BaseBatch {
def sDate= 202302//Integer.parseInt(DateUtils.addMonth(DateUtils.formatDateByPattern(new Date(), "yyyyMM"), -1, "yyyyMM"));
def startDate = 202212
def endDate = 202302
def sDate= 202303//Integer.parseInt(DateUtils.addMonth(DateUtils.formatDateByPattern(new Date(), "yyyyMM"), -1, "yyyyMM"));
def startDate = 202301
def endDate = 202303
// def curDate = Integer.parseInt(DateUtils.addMonth(DateUtils.formatDateByPattern(new Date(), "yyyyMM"), -6, "yyyyMM"));
static final DBCollection AVERAGE_STATISTICS = MongoUtils.getCollectionByName("fangjia", "average_statistics", "192.168.0.43")
@@ -46,6 +46,15 @@ class ThirdPartyPriceBatch extends BaseBatch {
@Override
public void process(Object args) {
// def gocPrices = CcbCommonUtils.findDistGovPrice("ÉîÛÚ")
// def sql = "delete from base.t0831_bigdata_third_party_price_gj_h where gujiabds_avprc_dt_val=202303 and gujia_bds_id=?"
// pgsqlInstance.withBatch(500, sql){ ps->
// for(def id : gocPrices){
// ps.addBatch(id)
// }
// }
def citys = CcbCommonUtils.getRunningCitys(args)
def rows = []
def index = 0
@@ -53,13 +62,20 @@ class ThirdPartyPriceBatch extends BaseBatch {
def cityCodeDatas = CcbCommonUtils.findCityCodeValue()
for(def city : citys){
index++
def gocIdsPrices = []
if(city == "ÉîÛÚ"){
gocIdsPrices = CcbCommonUtils.findDistGovPrice(city)
}
def statMap = getDistrictStatByCity(city, weekend)
def distCodeMap = CcbCommonUtils.findAllDistrictCodeValue(city)
def dists = CcbCommonUtils.findAllDistrictByCity(city, "district", ["city", "region", "name","name_cat", "estate_type2","lng"])
def thirdPriceMap = findThirdPartyPrice(city, statMap)
//def rets = createCityDatas(cityCodeDatas, distCodeMap, dists, thirdPriceMap)//老第三方均价表(现不用)
def rets = createCityDatas1(cityCodeDatas, distCodeMap, dists, thirdPriceMap)
def rets = createCityDatas1(cityCodeDatas, distCodeMap, dists, thirdPriceMap, gocIdsPrices)
// def rets = createData3(cityCodeDatas.get(city))//新第三方均价表,要做2步,麻烦
rows.addAll(rets)
println index+" "+city+" "+rets.size() +" "+rows.size()
@@ -187,10 +203,12 @@ class ThirdPartyPriceBatch extends BaseBatch {
}
def createCityDatas1(cityCodeDatas, distCodeMap, dists, thirdPriceMap){
def createCityDatas1(cityCodeDatas, distCodeMap, dists, thirdPriceMap, gocPrices){
def allRows = []
for(def d : dists){
if(gocPrices && gocPrices.contains(d._id.toString())){
continue;
}
def third = thirdPriceMap.get(d.region+"##"+d.name)
if(third){
def data = distCodeMap.get(d.region)
@@ -92,13 +92,13 @@ class TradeStatLog {
def run(){
def citys = CcbCommonUtils.citys_all;
def rets = []
rets << ["城市","11月总量","12月总量","23年1月总量","占比","贝壳","链家", "我爱我家","房天下","中原"]
rets << ["城市","12月总量","23年1月总量","23年2月总量","占比","贝壳","链家", "我爱我家","房天下","中原"]
def sources = ["贝壳找房","链家在线","我爱我家","房天下","中原地产"]
//def startDate = "2021-05-01"
def startDate = "2022-11-01"
def date = "2022-12-01"
def endDate = "2023-01-01"
def newDate = "2023-02-01"
def startDate = "2022-12-01"
def date = "2023-01-01"
def endDate = "2023-02-01"
def newDate = "2023-03-01"
for(def city : citys){
def lastMonthCount = findTradesCount(city, null, DateUtils.parseFromTightByPattern(startDate,"yyyy-MM-dd"), DateUtils.parseFromTightByPattern(date,"yyyy-MM-dd"))
@@ -390,7 +390,7 @@ class ExportPgsqlEvaluationResult {
//
// FileUtils.batchCreateFile(allRows, fileName, [], "utf-8", false);
// }
FileUtils.batchCreateFile(allRows, fileName, [], "utf-8", false);
FileUtils.batchCreateFile([], fileName, [], "utf-8", false);
CcbFtpTestUtils.ftpUpload(null, fileName, curDate)
}
@@ -7,6 +7,7 @@ import com.fangjia.script.common.DataHandleUtils
import com.fangjia.script.gj.ccb.FileUtils
import com.fangjia.script.util.DateUtils
import com.fangjia.script.util.ElasticUtils
import com.fangjia.script.util.ExcelUtils
import com.mongodb.BasicDBObject
import com.mongodb.DBObject
import groovy.sql.Sql
@@ -28,25 +29,41 @@ class BigdataCitypriceBatch extends BaseBatch{
public static ExecutorService fixedThreadPool = Executors.newFixedThreadPool(80)
def curRunDate = DateUtils.formatDateByPattern(DateUtils.getFirstDayOfMonth(new Date(),-1), "yyyyMM").toInteger();
def curRunDate = null
def pgsqlInstance = Sql.newInstance("jdbc:postgresql://192.168.0.236:5432/warehouse?stringtype=unspecified",
"postgres", "postgres", "org.postgresql.Driver")
def oracleSqlInstance = Sql.newInstance("jdbc:oracle:thin:@192.168.0.236:1521:orcl",
"GOOJIA", "GOOJIA", "oracle.jdbc.driver.OracleDriver")
public static def cityCodeMap = CcbCommonUtils.findCityCodeValue()
static main(args) {
runBatch(new BigdataCitypriceBatch(), args)
}
@Override
void process(Object args) {
def citys = CcbCommonUtils.getRunningCitys(args)
def startDate = DateUtils.formatDateByPattern(DateUtils.getFirstDayOfMonth(new Date(),-1), "yyyyMMdd").toInteger();
def endDate = DateUtils.formatDateByPattern(DateUtils.getLastDayOfMonth(new Date(),-1), "yyyyMMdd").toInteger();
def cityCodeDataMap = CcbCommonUtils.findCityCodeValue()
cityRun(citys, startDate, endDate, cityCodeDataMap)
regionRun(citys, startDate, endDate, cityCodeDataMap)
districtRun(citys, startDate, endDate, cityCodeDataMap)
def curDate = new Date()
def citys = CcbCommonUtils.citys_all //CcbCommonUtils.getRunningCitys(args)
if(args){
def dateStr = args[0]
curDate = DateUtils.parseFromTightByPattern(dateStr,"yyyy-MM-dd")//2022-03-01
}
println "args 参数:"+args.toString() +" 城市数量:"+citys.size()+" curDate: "+ curDate
curRunDate = DateUtils.formatDateByPattern(DateUtils.getFirstDayOfMonth(curDate,-1), "yyyyMM").toInteger();
def startDate = DateUtils.formatDateByPattern(DateUtils.getFirstDayOfMonth(curDate,-1), "yyyyMMdd").toInteger();
def endDate = DateUtils.formatDateByPattern(DateUtils.getLastDayOfMonth(curDate,-1), "yyyyMMdd").toInteger();
def dealStartDate = DateUtils.addMonth(DateUtils.parseFromTightByPattern(startDate.toString(), "yyyyMMdd"), -1)
def lastYearDate = DateUtils.addMonth(startDate.toString(),-12, "yyyyMMdd").toInteger();
// cityRun(citys, startDate, endDate, cityCodeMap)
// regionRun(citys, startDate, endDate, cityCodeMap)
districtRun(citys, startDate, endDate, dealStartDate, lastYearDate, cityCodeMap)
}
def cityRun(citys, startDate, endDate, cityCodeDataMap){
@@ -177,11 +194,18 @@ class BigdataCitypriceBatch extends BaseBatch{
println "end: "+new Date()
}
def districtRun(citys, startDate, endDate, cityCodeDataMap){
def districtRun(citys, startDate, endDate, dealStartDate, lastYearDate, cityCodeDataMap){
def rets = []
def allDistricts = []
def allPriceMap = [:]
def allRentMap = [:]
def allDealCountMap = [:]
def allCityRankMap = [:]
def allRegionRankMap = [:]
def allDistCityPreMap = [:]
def allDistRegionPreMap = [:]
def allLastMonthMap = [:]
def allLastYearMap = [:]
for(def city : citys) {
def districts = CcbCommonUtils.findAllDistrictByCity(city, "district", ["city", "region", "name", "lng","estate_type2","name_cat","address", "alias"]);
allDistricts.addAll(districts)
@@ -192,9 +216,36 @@ class BigdataCitypriceBatch extends BaseBatch{
def rentMap = CommonDatautils.findSqmetreRentByCityAndDate(city, endDate)
allRentMap = allRentMap + rentMap
def cityCode = cityCodeMap.get(city)
def dealCountMap = findDealDatesByCity(cityCode, dealStartDate, startDate)
allDealCountMap = allDealCountMap + dealCountMap
def datas = findCommunityPriceByCity(cityCode, startDate.toString().substring(0,6))
def cityRankMap = findCommunityCityRank(datas)
allCityRankMap = allCityRankMap + cityRankMap
def regionRankMap = findCommunityRegionRank(datas)
allRegionRankMap = allRegionRankMap + regionRankMap
def cityPrice = findCcbCityPrice(cityCode, startDate.toString().substring(0,6))
def regionPriceMap = findCcbRegionPrice(cityCode, startDate.toString().substring(0,6))
def cityPreMap = districtCityPrictRate(cityPrice, datas)
allDistCityPreMap = allDistCityPreMap + cityPreMap
def regionPreMap = districtRegionPriceRate(regionPriceMap, datas)
allDistRegionPreMap = allDistRegionPreMap + regionPreMap
def lastMonthMap = findDistQuotations(cityCode, dealStartDate.replace("-","").substring(0,6))
allLastMonthMap = allLastMonthMap + lastMonthMap
def lastYearMonthMap = findDistQuotations(cityCode, lastYearDate.toString().substring(0,6))
allLastYearMap = allLastYearMap + lastYearMonthMap
}
def cityLists = districtRunningByCity(allDistricts, startDate, endDate, cityCodeDataMap, allPriceMap, allRentMap)
def cityLists = districtRunningByCity(allDistricts, startDate, endDate, cityCodeDataMap, allPriceMap, allRentMap, allDealCountMap, allCityRankMap, allRegionRankMap, allDistCityPreMap, allDistRegionPreMap, allLastMonthMap, allLastYearMap)
if(cityLists){
rets.addAll(cityLists)
}
@@ -212,7 +263,7 @@ class BigdataCitypriceBatch extends BaseBatch{
def districtRunningByCity(districts, startDate, endDate, cityCodeDataMap, allPriceMap, allRentMap){
def districtRunningByCity(districts, startDate, endDate, cityCodeDataMap, allPriceMap, allRentMap, dealCountMap, allCityRankMap, allRegionRankMap, allDistCityPreMap, allDistRegionPreMap, allLastMonthMap, allLastYearMap){
def totalCount = new AtomicLong()
def distCount = districts.size()
final CountDownLatch latch = new CountDownLatch(distCount)
@@ -220,11 +271,12 @@ class BigdataCitypriceBatch extends BaseBatch{
def rets = new CopyOnWriteArrayList()
for(def i=0;i<districts.size();i++){
final def dist = districts[i];
fixedThreadPool.execute(new Runnable() {
void run() {
try {
totalCount.addAndGet(1)
def row = createDistDate(dist, startDate, endDate, cityCodeDataMap, allPriceMap, allRentMap)
def row = createDistDate(dist, startDate, endDate, cityCodeDataMap, allPriceMap, allRentMap, dealCountMap, allCityRankMap, allRegionRankMap,allDistCityPreMap, allDistRegionPreMap, allLastMonthMap, allLastYearMap)
if(row){
rets << row
println totalCount.get() +"/"+distCount + dist.city+" "+dist.region+" "+dist.name+" "+row[4]+" "+row[6]
@@ -271,7 +323,7 @@ class BigdataCitypriceBatch extends BaseBatch{
}
def createDistDate(dist, startDate, endDate, cityCodeDataMap, allPriceMap, allRentMap){
def createDistDate(dist, startDate, endDate, cityCodeDataMap, allPriceMap, allRentMap, dealCountMap, allCityRankMap, allRegionRankMap, allDistCityPreMap, allDistRegionPreMap, allLastMonthMap, allLastYearMap){
def sellDataType = 1
def rentDataType = 1
def sellMap = findHouses(dist.city, dist.region, "sell", startDate, endDate, dist.name, dist.alias, dist.estate_type2)
@@ -400,6 +452,160 @@ class BigdataCitypriceBatch extends BaseBatch{
row << 1
row << 'FJW'
//成交样本量,成交样本量同比, 成交样本量环比
if(dealCountMap){
def dealCount = dealCountMap.get(dist._id.toString())
row << dealCount?dealCount:''
def dealMarkup = ''
def dealYoy = ''
if(allLastMonthMap){
def dealMarkupMap = allLastMonthMap.get(dist._id.toString())
try{
if(dealCount && dealMarkupMap && dealMarkupMap.deal_count && dealMarkupMap.deal_count>0){
def markup = (dealCount-dealMarkupMap.deal_count)*100/dealMarkupMap.deal_count
dealMarkup = DataHandleUtils.getDoubleRound(2, markup)
}
}catch(Exception e){
e.printStackTrace()
}
}
if(allLastYearMap){
def dealYoyMap = allLastYearMap.get(dist._id.toString())
if(dealCount && dealYoyMap && dealYoyMap.deal_count && dealYoyMap.deal_count>0){
def markup = (dealCount-dealYoyMap.deal_count)*100/dealYoyMap.deal_count
dealYoy = DataHandleUtils.getDoubleRound(2, markup)
}
}
row << dealYoy
row << dealMarkup
}else{
row << ''
row << ''
row << ''
}
//出售平均单价的同比,环比
if(sell_avg_price){
def markup = ''
if(allLastMonthMap){
def dataMap = allLastMonthMap.get(dist._id.toString())
if(dataMap && dataMap.saleprice){
markup = (sell_avg_price - dataMap.saleprice)*100/dataMap.saleprice
markup = DataHandleUtils.getDoubleRound(2, markup)
}
}
def yoy = ''
if(allLastYearMap){
def dataMap = allLastYearMap.get(dist._id.toString())
if(dataMap && dataMap.saleprice){
yoy = (sell_avg_price - dataMap.saleprice)*100/dataMap.saleprice
yoy = DataHandleUtils.getDoubleRound(2, yoy)
}
}
row << yoy
row << markup
}else{
row << ''
row << ''
}
//出售样本量同比,环比
if(sell_count){
def markup = ''
if(allLastMonthMap){
def dataMap = allLastMonthMap.get(dist._id.toString())
if(dataMap && dataMap.salecount){
markup = (sell_count - dataMap.salecount)*100/dataMap.salecount
markup = DataHandleUtils.getDoubleRound(2, markup)
}
}
def yoy = ''
if(allLastYearMap){
def dataMap = allLastYearMap.get(dist._id.toString())
if(dataMap && dataMap.salecount){
yoy = (sell_count - dataMap.salecount)*100/dataMap.salecount
yoy = DataHandleUtils.getDoubleRound(2, yoy)
}
}
row << yoy
row << markup
}else{
row << ''
row << ''
}
//出租房源量同比,环比
if(rent_count){
def markup = ''
if(allLastMonthMap){
def dataMap = allLastMonthMap.get(dist._id.toString())
if(dataMap && dataMap.salecount && dataMap.rentcount>0){
markup = (rent_count - dataMap.rentcount)*100/dataMap.rentcount
markup = DataHandleUtils.getDoubleRound(2, markup)
}
}
def yoy = ''
if(allLastYearMap){
def dataMap = allLastYearMap.get(dist._id.toString())
if(dataMap && dataMap.salecount && dataMap.rentcount>0){
yoy = (rent_count - dataMap.rentcount)*100/dataMap.rentcount
yoy = DataHandleUtils.getDoubleRound(2, yoy)
}
}
row << yoy
row << markup
}else{
row << ''
row << ''
}
//小区价格城市排名
if(allCityRankMap){
def cityRank = allCityRankMap.get(dist._id.toString())
if(cityRank){
row << cityRank
}else{
row << ''
}
}else{
row << ''
}
//小区价格区域排名
if(allRegionRankMap){
def regionRank = allRegionRankMap.get(dist._id.toString())
if(regionRank){
row << regionRank
}else{
row << ''
}
}else{
row << ''
}
//高于区县平均价比率
if(allDistRegionPreMap){
def regionRadio = allDistRegionPreMap.get(dist._id.toString())
if(regionRadio){
row << regionRadio
}else{
row << ''
}
}else{
row << ''
}
//高于城市平均价比率
if(allDistCityPreMap){
def cityRadio = allDistCityPreMap.get(dist._id.toString())
if(cityRadio){
row << cityRadio
}else{
row << ''
}
}else{
row << ''
}
return row
}
return null
@@ -723,6 +929,135 @@ class BigdataCitypriceBatch extends BaseBatch{
}
def findDealDatesByCity(cityCode, startDate, endDate){
def sql = "SELECT gujia_comm_id,count(1) from base.t0831_bigdata_deal_gj_h WHERE urbn_id='${cityCode}' and txn_dt>='${startDate}' and txn_dt<'${endDate}' GROUP BY gujia_comm_id";
def rMap = [:]
pgsqlInstance.eachRow(sql, { r ->
rMap.put(r.gujia_comm_id, r.count)
})
return rMap;
}
def findCommunityCityRank(datas){
def values = []
for(def m : datas){
values << m.avg_price
}
values = values.sort().reverse()
def resMap = [:]
def total = values.size()
for(def m : datas){
// def index = 0
// for(def v : values){
// index++
// if(m.avg_price == v){
// break;
// }
// }
def index = values.indexOf(m.avg_price)+1
resMap.put(m.comm_id, index+"|"+total)
}
return resMap
}
def findCommunityRegionRank(datas){
def regionMap = [:]
for(def m : datas){
def prices = regionMap.get(m.region)
if(!prices){
prices = []
regionMap.put(m.region, prices)
}
prices << m.avg_price
prices.sort().reverse()
}
def resMap = [:]
for(def m : datas){
def prices = regionMap.get(m.region)
def total = prices.size()
def index = prices.indexOf(m.avg_price)+1
// for(def v : prices){
// index++
// if(m.avg_price == v){
// break;
// }
// }
resMap.put(m.comm_id, index+"|"+total)
}
return resMap
}
def findCommunityPriceByCity(cityCode, month){
def sql = "select gujia_admndiv_nm,gujia_bds_id,gujia_bds_clc_avprc from t_app_p9pha_plda.avm_community_base_price_gj_h where urbn_id='${cityCode}' and gujiabds_clc_yrmo_val=${month}";
def datas = []
pgsqlInstance.eachRow(sql, { r ->
datas << ["comm_id":r.gujia_bds_id, "avg_price":r.gujia_bds_clc_avprc, "region":r.gujia_admndiv_nm]
})
return datas;
}
def findCcbCityPrice(cityCode, month){
def sql = "SELECT gujia_bds_clc_avprc from t_app_p9pha_plda.avm_city_price_gj_h where urbn_id='${cityCode}' and gujiabds_clc_yrmo_val=${month}";
def avgPrice = null
pgsqlInstance.eachRow(sql, { r ->
avgPrice = r.gujia_bds_clc_avprc
})
return avgPrice;
}
def findCcbRegionPrice(cityCode, month){
def sql = "SELECT gxda_admndiv_nm,gujia_bds_clc_avprc from t_app_p9pha_plda.avm_district_price_gj_h where urbn_id='${cityCode}' and gujiabds_clc_yrmo_val=${month}";
def regionPriceMap = [:]
pgsqlInstance.eachRow(sql, { r ->
regionPriceMap.put(r.gxda_admndiv_nm, r.gujia_bds_clc_avprc)
})
return regionPriceMap;
}
def districtCityPrictRate(cityPrice, datas){
def distCityRateMap = [:]
if(cityPrice){
for(def m : datas){
def val = (m.avg_price-cityPrice)*100/cityPrice
distCityRateMap.put(m.comm_id, DataHandleUtils.getDoubleRound(4, val))
}
}
return distCityRateMap;
}
def districtRegionPriceRate(regionPriceMap, datas){
def distRegionRateMap = [:]
if(regionPriceMap){
for(def m : datas){
def regionAvgPrice = regionPriceMap.get(m.region)
if(regionAvgPrice){
def val = (m.avg_price-regionAvgPrice)*100/regionAvgPrice
distRegionRateMap.put(m.comm_id, DataHandleUtils.getDoubleRound(4, val))
}else{
println m.region+" 无区域均价"
}
}
}
return distRegionRateMap;
}
def findDistQuotations(cityCode, month){
def sql = "select commid, deal_count, saleprice,salecount,rentcount from bigdata_commprice_fjw where ymid=${month} and cityid=${cityCode}";
def markupMap = [:]
oracleSqlInstance.eachRow(sql, { r ->
markupMap.put(r.commid, ["deal_count":r.DEAL_COUNT, "saleprice":r.SALEPRICE,"salecount":r.SALECOUNT,"rentcount":r.RENTCOUNT])
})
return markupMap;
}
@@ -66,10 +66,7 @@ class ExportDistrictRongHe extends BaseBatch{
exportBigdataDistPrice(queryDate)
exportBigdataCommPrice(queryDate)
//因为融合暂不切库,所以需要加传一张第三方均价表到融合中, 从1月10日开始传输,长期供
def thirdPartyMonth = Integer.parseInt(DateUtils.addMonth(DateUtils.formatDateByPattern(new Date(), "yyyyMM"), -2, "yyyyMM"));
// exportThirdPartyPrice2(thirdPartyMonth, new_dists)
exportPgThirdPartyPrice2(thirdPartyMonth, new_dists)
//1月10日 新增5张表,导92城,增量数据,2月10日导344城,其中252城所有历史数据,92城增量,3月后可能不用提供数据
// exportCommunityBasePrice(lastMonth)
@@ -78,14 +75,20 @@ class ExportDistrictRongHe extends BaseBatch{
// exportBigdataSupplierStatistics(lastMonth)
// exportBigdataModelingBase(lastMonth)
//2月8号 临时导出苏州一年的数据
exportPgBigdataForsale("2023-03-01",DateUtils.formatDateByPattern(DateUtils.getFirstDayOfMonth(new Date()), "yyyy-MM-dd"),new_dists)//融合按发布时间导,估值按updatetime导出
}
if(curDate.toString().endsWith("28")){
exportPgBigdataSupplierStatistics(lastMonth)
//因为融合暂不切库,所以需要加传一张第三方均价表到融合中, 从1月10日开始传输,长期供
def thirdPartyMonth = Integer.parseInt(DateUtils.addMonth(DateUtils.formatDateByPattern(new Date(), "yyyyMM"), -2, "yyyyMM"));
// exportThirdPartyPrice2(thirdPartyMonth, new_dists)
exportPgThirdPartyPrice2(thirdPartyMonth, new_dists)
exportPgCommunityBasePrice(lastMonth)
exportPgCommunityPdescribeGj(lastMonth)
exportPgGuideStatistics(lastMonth)
exportPgBigdataSupplierStatistics(lastMonth)
exportPgBigdataModelingBase(lastMonth)
//2月8号 临时导出苏州一年的数据
exportPgBigdataForsale("2023-01-01",DateUtils.formatDateByPattern(DateUtils.getFirstDayOfMonth(new Date()), "yyyy-MM-dd"),new_dists)//融合按发布时间导,估值按updatetime导出
exportPgGuideStatistics(lastMonth)
}
SSHHelper jschCommand = new SSHHelper();
@@ -1669,7 +1672,7 @@ class ExportDistrictRongHe extends BaseBatch{
def allRows = []
for(def city : citys) {
def cityCode = cityCodeMap.get(city)
def sql = "select CITYID, YMID,COMMID, SALEPRICE,RENTPRICE,SALECOUNT,RENTCOUNT, to_char(UPDATETIME,'yyyy-mm-dd hh24:mi:ss') as UPDATETIME, HOUSEUSE,SALEBLDGAREA,RENTBLDGAREA,SALETOTALPRICE,RENTTOTALPRICE,DATATYPE,SDATERANGE,RDATERANGE,SOURCECODE from BIGDATA_COMMPRICE_FJW where CITYID='${cityCode}' and YMID=${queryDate} ";//
def sql = "select CITYID, YMID,COMMID, SALEPRICE,RENTPRICE,SALECOUNT,RENTCOUNT, to_char(UPDATETIME,'yyyy-mm-dd hh24:mi:ss') as UPDATETIME, HOUSEUSE,SALEBLDGAREA,RENTBLDGAREA,SALETOTALPRICE,RENTTOTALPRICE,DATATYPE,SDATERANGE,RDATERANGE,SOURCECODE,DEAL_COUNT,DEAL_COUNT_YOY,DEAL_COUNT_MOM,NETLIST_PRICE_YOY,NETLIST_PRICE_MOM,NETLIST_COUNT_YOY,NETLIST_COUNT_MOM,RENT_COUNT_YOY,RENT_COUNT_MOM,CITY_RANK,AREA_RANK,DISTRICT_PRICE_THAN,CITY_PRICE_THAN from BIGDATA_COMMPRICE_FJW where CITYID='${cityCode}' and YMID=${queryDate} ";//
sqlInstance.eachRow(sql,{r->
def data = []
data << r.CITYID
@@ -1697,6 +1700,19 @@ class ExportDistrictRongHe extends BaseBatch{
data << r.RDATERANGE
data << r.DATATYPE
data << r.SOURCECODE
data << r.DEAL_COUNT
data << r.DEAL_COUNT_YOY
data << r.DEAL_COUNT_MOM
data << r.NETLIST_PRICE_YOY
data << r.NETLIST_PRICE_MOM
data << r.NETLIST_COUNT_YOY
data << r.NETLIST_COUNT_MOM
data << r.RENT_COUNT_YOY
data << r.RENT_COUNT_MOM
data << r.CITY_RANK
data << r.AREA_RANK
data << r.DISTRICT_PRICE_THAN
data << r.CITY_PRICE_THAN
allRows << data
});
}
@@ -5,6 +5,7 @@ import com.fangjia.script.BatchOwner
import com.fangjia.script.Watcher
import com.fangjia.script.ccbevaluation.CcbCommonUtils
import com.fangjia.script.ccbevaluation.CcbFtpTestUtils
import com.fangjia.script.ccbevaluation.CcbFtpUtils
import com.fangjia.script.commData.CommonDatautils
import com.fangjia.script.gj.ccb.FileUtils
import com.fangjia.script.util.DateUtils
@@ -14,6 +15,9 @@ import groovy.sql.Sql
@BatchOwner(Watcher.GaoJuan)
class ExportDistrictRongHeTest extends BaseBatch{
def pgsqlInstance = Sql.newInstance("jdbc:postgresql://192.168.0.236:5432/warehouse",
"postgres", "postgres", "org.postgresql.Driver")
def sqlInstance = Sql.newInstance("jdbc:oracle:thin:@192.168.0.236:1521:orcl",
"GOOJIA", "GOOJIA", "oracle.jdbc.driver.OracleDriver")
static main(args) {
@@ -26,36 +30,37 @@ class ExportDistrictRongHeTest extends BaseBatch{
@Override
void process(Object args) {
citys = CcbCommonUtils.getRunningCitys(args)
def curDate = "20221210"//DateUtils.formatDateByPattern(new Date()+1, "yyyyMMdd")
def curDate = DateUtils.formatDateByPattern(new Date()+1, "yyyyMMdd")
def new_dists = []//["350604","350605","410307","410308","450181"]
//按天导(每天一个文件夹)
exportBigdataDealFJW2(curDate, DateUtils.formatDateByPattern(DateUtils.getFirstDayOfMonth(new Date()+1,-1), "yyyy-MM-dd"), new_dists)
// exportBigdataDealFJW2(curDate, DateUtils.formatDateByPattern(DateUtils.getFirstDayOfMonth(new Date()+1,-1), "yyyy-MM-dd"), new_dists)
exportPgBigdataDealFJW(curDate, DateUtils.formatDateByPattern(DateUtils.getFirstDayOfMonth(new Date()+1,-2), "yyyy-MM-dd"), new_dists)
// if(curDate.toString().endsWith("10")){
exportEvaluateRate()
exportBigdataBuildprojFjw()
exportBigdataCommlayoutpicFjw()
exportBigdataCommunityGJRH()//
exportBigdataBuildingFJW()//
exportBigdataCommfeeGj()//
exportBigdataCommbuildstruGJ()//
exportBigdataCommhousetypeGJ()//
exportBigdataCommbuildyearGj()//
exportBigdataCommhouseuseGJ()//
exportBigdataPositionGJ()//
exportBigdataDistrictFJW()//
exportBigdataAliasFJW()//
//本12.10上传10,11月所有数据,23年1月需改为所有城市按日期同步一期数据
def queryDate = DateUtils.addMonth(DateUtils.formatDateByPattern(new Date(), "yyyyMM"), -1, "yyyyMM").toInteger()
exportBigdataCityPrice(queryDate)
exportBigdataDistPrice(queryDate)
exportBigdataCommPrice(queryDate)
// exportEvaluateRate()
// exportBigdataBuildprojFjw()
// exportBigdataCommlayoutpicFjw()
//
//
// exportBigdataCommunityGJRH()/
// exportBigdataBuildingFJW()//
// exportBigdataCommfeeGj()//
//
// exportBigdataCommbuildstruGJ()//
// exportBigdataCommhousetypeGJ()//
// exportBigdataCommbuildyearGj()//
// exportBigdataCommhouseuseGJ()//
// exportBigdataPositionGJ()//
// exportBigdataDistrictFJW()//
// exportBigdataAliasFJW()//
//
//
// //本12.10上传10,11月所有数据,23年1月需改为所有城市按日期同步一期数据
// def queryDate = DateUtils.addMonth(DateUtils.formatDateByPattern(new Date(), "yyyyMM"), -1, "yyyyMM").toInteger()
// exportBigdataCityPrice(queryDate)
// exportBigdataDistPrice(queryDate)
// exportBigdataCommPrice(queryDate)
exportInOk()
@@ -528,6 +533,50 @@ class ExportDistrictRongHeTest extends BaseBatch{
println "BIGDATA_DEAL_FJW 上传Ftp完成......${endDateStr}"
}
def exportPgBigdataDealFJW(curDate, dealdate, new_dists){
def startDateStr = DateUtils.formatDateByPattern(DateUtils.getFirstDayOfMonth(DateUtils.parseFromTightYYYYMMDD(dealdate)), "yyyy-MM-dd")
def endDateStr = DateUtils.formatDateByPattern(DateUtils.getLastDayOfMonth(DateUtils.parseFromTightYYYYMMDD(dealdate)), "yyyy-MM-dd")
def fileName = "/ccb_ronghe/${curDate}/FJW_000000_000000_BIGDATA_DEAL_FJW_ADD_${curDate}_0001.dat"
if(CommonDatautils.isWindow()){
fileName = "D:\\数据\\建行\\房产估值\\数据文件\\txt\\ccb_ronghe\\${curDate}\\FJW_000000_000000_BIGDATA_DEAL_FJW_ADD_${curDate}_0001.dat"
}
def allRows = []
for(def city : citys) {
def cityCode = cityCodeMap.get(city)
if(curDate.toString().endsWith("10")){
if(new_dists){
def newstr = "('"+new_dists.join("','")+"')"
def sql1 = "select urbn_id,gujia_bds_mdl_id,urbn_nm,gujia_admndiv_id,gujia_admndiv_nm,gujia_str,gujia_hsno,gujia_comm_id,comm_nm,gujia_bld_id,bld_id,gujia_bld_nm,gujia_unit_id,unit_id,gujia_unit_nm,gujia_acc_id,gujia_dtl_adr,gujia_bds_bld_yr_rc,gujia_own_val,gujia_own_yrlmt_val,gujia_prd_val,gujia_bds_wbt_floor,gujia_lyr_tp_val,gujiabdstot_floor_num,gujia_bld_tp_val,gujia_bld_stc,guiabconstructionarea,gujiabdsset_innr_area,gujia_acc_tp_val,gujia_bds_room_num,gujia_bds_dept_num,gujia_bds_ktch_num,gujia_bds_hlt_btw_num,gujia_hs_use,gujia_indr_stc_val,gujia_twrd_val,gujia_dcrt_sttn,gujia_ases_bt_ln_num,gujia_bds_trdtckt_prc,gujia_bds_mdl_tot_prc,gujia_bds_dcl_tot_prc,gujiabds_ases_tot_prc,gujiasigntonlinectrid,to_char(txn_dt,'yyyy-mm-dd') as txn_dt,gujia_txn_tp_val,gujia_sell_pymtmod,gujia_bds_mdl_cyc,gujiawthrext_lift_ind,gujiabdslndfgrngvarea,gujiabdslutbl_gv_area,gujiabdssuntblgv_area,gujiabdsbayindowgarea,gujiabdstowerfrgvarea,gujia_bds_grg_gv_area,gujiabdsundgdrmgvarea,gujiabds_othr_gv_area,gujia_hs_src_dtsrc,intr_co_id,intr_co_nm,rmrk_dsc,to_char(data_crt_tm,'yyyy-mm-dd hh24:mi:ss') as data_crt_tm,to_char(data_udt_tm,'yyyy-mm-dd hh24:mi:ss') as data_udt_tm,gujia_src_co,gujia_bds_mkdam,gujia_bds_data_tm_val " +
"from base.t0831_bigdata_deal_gj_h where urbn_id='${cityCode}' and txn_dt>=to_date('${dealdate}','yyyy-MM-dd') and gujia_admndiv_id not in ${newstr}"
def rets1 = dealData(sql1)
def sql2 = "select urbn_id,gujia_bds_mdl_id,urbn_nm,gujia_admndiv_id,gujia_admndiv_nm,gujia_str,gujia_hsno,gujia_comm_id,comm_nm,gujia_bld_id,bld_id,gujia_bld_nm,gujia_unit_id,unit_id,gujia_unit_nm,gujia_acc_id,gujia_dtl_adr,gujia_bds_bld_yr_rc,gujia_own_val,gujia_own_yrlmt_val,gujia_prd_val,gujia_bds_wbt_floor,gujia_lyr_tp_val,gujiabdstot_floor_num,gujia_bld_tp_val,gujia_bld_stc,guiabconstructionarea,gujiabdsset_innr_area,gujia_acc_tp_val,gujia_bds_room_num,gujia_bds_dept_num,gujia_bds_ktch_num,gujia_bds_hlt_btw_num,gujia_hs_use,gujia_indr_stc_val,gujia_twrd_val,gujia_dcrt_sttn,gujia_ases_bt_ln_num,gujia_bds_trdtckt_prc,gujia_bds_mdl_tot_prc,gujia_bds_dcl_tot_prc,gujiabds_ases_tot_prc,gujiasigntonlinectrid,to_char(txn_dt,'yyyy-mm-dd') as txn_dt,gujia_txn_tp_val,gujia_sell_pymtmod,gujia_bds_mdl_cyc,gujiawthrext_lift_ind,gujiabdslndfgrngvarea,gujiabdslutbl_gv_area,gujiabdssuntblgv_area,gujiabdsbayindowgarea,gujiabdstowerfrgvarea,gujia_bds_grg_gv_area,gujiabdsundgdrmgvarea,gujiabds_othr_gv_area,gujia_hs_src_dtsrc,intr_co_id,intr_co_nm,rmrk_dsc,to_char(data_crt_tm,'yyyy-mm-dd hh24:mi:ss') as data_crt_tm,to_char(data_udt_tm,'yyyy-mm-dd hh24:mi:ss') as data_udt_tm,gujia_src_co,gujia_bds_mkdam,gujia_bds_data_tm_val " +
"from base.t0831_bigdata_deal_gj_h where urbn_id='${cityCode}' and gujia_admndiv_id in ${newstr}"
def rets2 = dealData(sql2)
allRows.addAll(rets1)
allRows.addAll(rets2)
}else{
def sql = "select urbn_id,gujia_bds_mdl_id,urbn_nm,gujia_admndiv_id,gujia_admndiv_nm,gujia_str,gujia_hsno,gujia_comm_id,comm_nm,gujia_bld_id,bld_id,gujia_bld_nm,gujia_unit_id,unit_id,gujia_unit_nm,gujia_acc_id,gujia_dtl_adr,gujia_bds_bld_yr_rc,gujia_own_val,gujia_own_yrlmt_val,gujia_prd_val,gujia_bds_wbt_floor,gujia_lyr_tp_val,gujiabdstot_floor_num,gujia_bld_tp_val,gujia_bld_stc,guiabconstructionarea,gujiabdsset_innr_area,gujia_acc_tp_val,gujia_bds_room_num,gujia_bds_dept_num,gujia_bds_ktch_num,gujia_bds_hlt_btw_num,gujia_hs_use,gujia_indr_stc_val,gujia_twrd_val,gujia_dcrt_sttn,gujia_ases_bt_ln_num,gujia_bds_trdtckt_prc,gujia_bds_mdl_tot_prc,gujia_bds_dcl_tot_prc,gujiabds_ases_tot_prc,gujiasigntonlinectrid,to_char(txn_dt,'yyyy-mm-dd') as txn_dt,gujia_txn_tp_val,gujia_sell_pymtmod,gujia_bds_mdl_cyc,gujiawthrext_lift_ind,gujiabdslndfgrngvarea,gujiabdslutbl_gv_area,gujiabdssuntblgv_area,gujiabdsbayindowgarea,gujiabdstowerfrgvarea,gujia_bds_grg_gv_area,gujiabdsundgdrmgvarea,gujiabds_othr_gv_area,gujia_hs_src_dtsrc,intr_co_id,intr_co_nm,rmrk_dsc,to_char(data_crt_tm,'yyyy-mm-dd hh24:mi:ss') as data_crt_tm,to_char(data_udt_tm,'yyyy-mm-dd hh24:mi:ss') as data_udt_tm,gujia_src_co,gujia_bds_mkdam,gujia_bds_data_tm_val " +
"from base.t0831_bigdata_deal_gj_h where urbn_id='${cityCode}'";// and txn_dt>='${dealdate}'
allRows.addAll(dealData(sql))
}
}
}
FileUtils.batchCreateFile(allRows, fileName, [], "utf-8", false);
CcbFtpTestUtils.ftpUpload("rh",fileName, curDate)
println "BIGDATA_DEAL_FJW 上传Ftp完成......${endDateStr}"
}
def createDeal(sql){
def allRows = []
sqlInstance.eachRow(sql,{r->
@@ -607,6 +656,87 @@ class ExportDistrictRongHeTest extends BaseBatch{
return allRows;
}
def dealData(def sql){
def allRows = []
pgsqlInstance.eachRow(sql, { r ->
def data = []
data << r.urbn_id
data << r.gujia_bds_mdl_id
data << r.urbn_nm
data << r.gujia_admndiv_id
data << r.gujia_admndiv_nm
data << r.gujia_str
data << r.gujia_hsno
data << r.gujia_comm_id
data << r.comm_nm
data << r.gujia_bld_id
data << r.bld_id
data << r.gujia_bld_nm
data << r.gujia_unit_id
data << r.unit_id
data << r.gujia_unit_nm
data << r.gujia_acc_id
data << r.gujia_dtl_adr
data << r.gujia_bds_bld_yr_rc
data << r.gujia_own_val
data << r.gujia_own_yrlmt_val
data << r.gujia_prd_val
data << r.gujia_bds_wbt_floor
data << r.gujia_lyr_tp_val
data << r.gujiabdstot_floor_num
if(r.gujia_bld_tp_val){
def arrs = r.gujia_bld_tp_val.replace("[","").replace("]","").split(",")
data << arrs[0].trim()
}else{
data << ''
}
data << r.gujia_bld_stc
data << r.guiabconstructionarea
data << r.gujiabdsset_innr_area
data << r.gujia_acc_tp_val
data << r.gujia_bds_room_num
data << r.gujia_bds_dept_num
data << r.gujia_bds_ktch_num
data << r.gujia_bds_hlt_btw_num
data << r.gujia_hs_use
data << r.gujia_indr_stc_val
data << r.gujia_twrd_val
data << r.gujia_dcrt_sttn
data << r.gujia_ases_bt_ln_num
data << r.gujia_bds_trdtckt_prc
data << r.gujia_bds_mdl_tot_prc
data << r.gujia_bds_dcl_tot_prc
data << r.gujiabds_ases_tot_prc
data << r.gujiasigntonlinectrid
data << r.txn_dt
data << r.gujia_txn_tp_val
data << r.gujia_sell_pymtmod
data << r.gujia_bds_mdl_cyc
data << r.gujiawthrext_lift_ind
data << r.gujiabdslndfgrngvarea
data << r.gujiabdslutbl_gv_area
data << r.gujiabdssuntblgv_area
data << r.gujiabdsbayindowgarea
data << r.gujiabdstowerfrgvarea
data << r.gujia_bds_grg_gv_area
data << r.gujiabdsundgdrmgvarea
data << r.gujiabds_othr_gv_area
data << r.gujia_hs_src_dtsrc
data << r.intr_co_id
data << r.intr_co_nm
data << r.rmrk_dsc
data << r.data_crt_tm
data << r.data_udt_tm
data << r.gujia_src_co
// data << r.gujia_bds_mkdam
data << r.gujia_bds_data_tm_val
allRows << data
});
return allRows
}
def exportAllBigdataDealFJW(){
def sql = "select CITYID, DEALID, CITYNAME, DISTID, DISTNAME, STREET, STREETNO, COMMID, COMMNAME, BUILDID, BUILDNO, BUILDNAME, UNITID, UNITNO, UNITNAME, HOUSEID, ADDRESS, BUILDYEAR, PROPTYPE, PROPYEARS, PERIODNUM, FLOORNUM, FLOORTYPE, FLOORCNT, BUILDTYPE, BUILDSTRU, BUILDAREA, LIVINGAREA, HOUSESTYLE, ROOMCNT, LIVINGROOMCNT, KITCHENCNT, BATHROOMCNT, HOUSEUSE, HOUSESTRU, HOUSEASPECT, FITMENT, EVALUATENO, DEALUNITPRICE, DEALTOTALPRICE, DECLAREPRICE, EVALUATEPRICE, CONTRACTNO, to_char(DEALDATE,'yyyy-mm-dd') as DEALDATE, DEALTYPE, PAYTYPE, DEALPERIOD, IFELEVATOR, COMPAREAGARDEN, COMPAREATERRACE, COMPAREABALCONY, COMPAREABAYWINDOW, COMPAREAATTIC, COMPAREAGARAGE, COMPAREABASEMENT, COMPAREAOTHER, DATASOURCE, AGENCYID, AGENCYNAME, REMARK, CREATETIME, UPDATETIME, to_char(CREATETIME,'yyyy-mm-dd hh24:mi:ss') as CREATETIME1,to_char(UPDATETIME,'yyyy-mm-dd hh24:mi:ss') as UPDATETIME1,SOURCECODE,WORKDATE from BIGDATA_DEAL_GJ where DEALDATE<to_date('2021-12-01','yyyy-MM-dd')";
def allRows = []
@@ -760,7 +890,7 @@ class ExportDistrictRongHeTest extends BaseBatch{
for(def city : citys) {
def cityCode = cityCodeMap.get(city)
// def sql = "select CITYID, YMID, SALEPRICE,RENTPRICE,SALECOUNT,RENTCOUNT, to_char(UPDATETIME,'yyyy-mm-dd hh24:mi:ss') as UPDATETIME, HOUSEUSE,SALEBLDGAREA,RENTBLDGAREA,SALETOTALPRICE,RENTTOTALPRICE,DATATYPE,SDATERANGE,RDATERANGE,SOURCECODE from BIGDATA_CITYPRICE where CITYID='${cityCode}' and YMID=${queryDate}";//
def sql = "select CITYID, YMID, SALEPRICE,RENTPRICE,SALECOUNT,RENTCOUNT, to_char(UPDATETIME,'yyyy-mm-dd hh24:mi:ss') as UPDATETIME, HOUSEUSE,SALEBLDGAREA,RENTBLDGAREA,SALETOTALPRICE,RENTTOTALPRICE,DATATYPE,SDATERANGE,RDATERANGE,SOURCECODE from BIGDATA_CITYPRICE where CITYID='${cityCode}'";//
def sql = "select CITYID, YMID, SALEPRICE,RENTPRICE,SALECOUNT,RENTCOUNT, to_char(UPDATETIME,'yyyy-mm-dd hh24:mi:ss') as UPDATETIME, HOUSEUSE,SALEBLDGAREA,RENTBLDGAREA,SALETOTALPRICE,RENTTOTALPRICE,DATATYPE,SDATERANGE,RDATERANGE,SOURCECODE from BIGDATA_CITYPRICE_FJW where CITYID='${cityCode}'";//
sqlInstance.eachRow(sql,{r->
def data = []
@@ -807,7 +937,7 @@ class ExportDistrictRongHeTest extends BaseBatch{
def allRows = []
for(def city : citys) {
def cityCode = cityCodeMap.get(city)
def sql = "select CITYID,DISTID, YMID, SALEPRICE,RENTPRICE,SALECOUNT,RENTCOUNT, to_char(UPDATETIME,'yyyy-mm-dd hh24:mi:ss') as UPDATETIME, HOUSEUSE,SALEBLDGAREA,RENTBLDGAREA,SALETOTALPRICE,RENTTOTALPRICE,DATATYPE,SDATERANGE,RDATERANGE,SOURCECODE from BIGDATA_DISTPRICE where CITYID='${cityCode}'";// and YMID=${queryDate}
def sql = "select CITYID,DISTID, YMID, SALEPRICE,RENTPRICE,SALECOUNT,RENTCOUNT, to_char(UPDATETIME,'yyyy-mm-dd hh24:mi:ss') as UPDATETIME, HOUSEUSE,SALEBLDGAREA,RENTBLDGAREA,SALETOTALPRICE,RENTTOTALPRICE,DATATYPE,SDATERANGE,RDATERANGE,SOURCECODE from BIGDATA_DISTPRICE_FJW where CITYID='${cityCode}'";// and YMID=${queryDate}
sqlInstance.eachRow(sql,{r->
def data = []
data << r.CITYID
@@ -854,7 +984,7 @@ class ExportDistrictRongHeTest extends BaseBatch{
def allRows = []
for(def city : citys) {
def cityCode = cityCodeMap.get(city)
def sql = "select CITYID, YMID,COMMID, SALEPRICE,RENTPRICE,SALECOUNT,RENTCOUNT, to_char(UPDATETIME,'yyyy-mm-dd hh24:mi:ss') as UPDATETIME, HOUSEUSE,SALEBLDGAREA,RENTBLDGAREA,SALETOTALPRICE,RENTTOTALPRICE,DATATYPE,SDATERANGE,RDATERANGE,SOURCECODE from BIGDATA_COMMPRICE where CITYID='${cityCode}' ";// and YMID=${queryDate}
def sql = "select CITYID, YMID,COMMID, SALEPRICE,RENTPRICE,SALECOUNT,RENTCOUNT, to_char(UPDATETIME,'yyyy-mm-dd hh24:mi:ss') as UPDATETIME, HOUSEUSE,SALEBLDGAREA,RENTBLDGAREA,SALETOTALPRICE,RENTTOTALPRICE,DATATYPE,SDATERANGE,RDATERANGE,SOURCECODE from BIGDATA_COMMPRICE_FJW where CITYID='${cityCode}' and YMID>=202210";// and YMID=${queryDate}
sqlInstance.eachRow(sql,{r->
def data = []
data << r.CITYID
@@ -0,0 +1,74 @@
package com.fangjia.script.ccbevaluation.ronghe
import com.fangjia.script.ccbevaluation.CcbCommonUtils
import com.fangjia.script.commData.CommonDatautils
import com.fangjia.script.util.DateUtils
import groovy.sql.Sql
class UpdateCommPrice {
def pgsqlInstance = Sql.newInstance("jdbc:postgresql://192.168.0.236:5432/warehouse?stringtype=unspecified",
"postgres", "postgres", "org.postgresql.Driver")
def oracleSqlInstance = Sql.newInstance("jdbc:oracle:thin:@192.168.0.236:1521:orcl",
"GOOJIA", "GOOJIA", "oracle.jdbc.driver.OracleDriver")
public static def cityCodeMap = CcbCommonUtils.findCityCodeValue()
static main(args) {
def task = new UpdateCommPrice()
task.run(args)
}
def run(Object args){
def citys = CcbCommonUtils.citys_all
def curDate = new Date()
if(args){
def dateStr = args[0]
curDate = DateUtils.parseFromTightByPattern(dateStr,"yyyy-MM-dd")//2022-03-01
}
def curRunDate = DateUtils.formatDateByPattern(DateUtils.getFirstDayOfMonth(curDate,-1), "yyyyMM").toInteger();
def startDate = DateUtils.formatDateByPattern(DateUtils.getFirstDayOfMonth(curDate,-1), "yyyyMMdd").toInteger();
def dealStartDate = DateUtils.addMonth(DateUtils.parseFromTightByPattern(startDate.toString(), "yyyyMMdd"), -1)
process(citys, dealStartDate, startDate, curRunDate)
}
def process(citys, dealStartDate, startDate, curRunDate){
def rets = []
def allDistricts = []
def allDealCountMap = [:]
for(def city : citys) {
def districts = CcbCommonUtils.findAllDistrictByCity(city, "district", ["city", "region", "name", "lng", "estate_type2", "name_cat", "address", "alias"]);
allDistricts.addAll(districts)
def cityCode = cityCodeMap.get(city)
def dealCountMap = findDealDatesByCity(cityCode, dealStartDate, startDate)
allDealCountMap = allDealCountMap + dealCountMap
}
for(def i=0;i<allDistricts.size();i++) {
final def dist = allDistricts[i];
def dealCount = allDealCountMap.get(dist._id.toString())
if(dealCount){
updateDealCount(dist._id.toString(), dealCount, curRunDate)
}
}
}
def updateDealCount(def dist_id, count, month){
def sql = "update bigdata_commprice_fjw set deal_count=${count} where ymid=${month} and commid='${dist_id}'"
oracleSqlInstance.execute(sql)
}
def findDealDatesByCity(cityCode, startDate, endDate){
def sql = "SELECT gujia_comm_id,count(1) from base.t0831_bigdata_deal_gj_h WHERE urbn_id='${cityCode}' and txn_dt>='${startDate}' and txn_dt<'${endDate}' GROUP BY gujia_comm_id";
def rMap = [:]
pgsqlInstance.eachRow(sql, { r ->
rMap.put(r.gujia_comm_id, r.count)
})
return rMap;
}
}
@@ -886,7 +886,7 @@ class CommonDatautils {
keys.put("mapping_alias", 1)
keys.put("sid", 1)
keys.put("status", 1)
keys.put("name_cat", 1)
try{
DSCursor cursor = getDataStoreConnection().find(q, keys);
if(cursor){
@@ -50,6 +50,7 @@ class CityInfoAnaBatch extends BaseBatch {
final static DBCollection HOUSE_LOUDONG_CONN = MongoUtils.getCollectionByName("fangjia", "house_loudong", MongoUtils.MongoDB_Domain_mongo);
final static DBCollection LOUDONG_CONN = MongoUtils.getCollectionByName("fangjia_base", "loudong", MongoUtils.MongoDB_Domain_mongo);
final static DBCollection fsDB = MongoUtils.getCollectionByName("fangjia_fs", "files", MongoUtils.MongoDB_Domain_fs_mongo, 27000);
final static DBCollection FACILITY_CONN = MongoUtils.getCollectionByName("fangjia", "district_facilitys", MongoUtils.MongoDB_Domain_mongo)
static Jms jms = Jms.create('tcp://jms.db.fangjia.com:61616')
final static DSCollection SEAWEED = DbUtils.seaweed
public static ExecutorService fixedThreadPool = Executors.newFixedThreadPool(20)
@@ -62,35 +63,41 @@ class CityInfoAnaBatch extends BaseBatch {
car_site :'carSite',estate_charge :'estateCharge',floorplan_pics :'floorplanPics',out_pics :'outPics',finish_building_date :'finishBuildingDate',business_quarter :'businessQuarter',
start_building_date :'startBuildingDate',loop_line_info :'loopLineInfo',property_life :'propertyLife',house_property :'houseProperty',licence :'licence',build_structure :'buildStructure',
lat : 'lat',lng : 'lng',lat2 : 'lat2',lng2 : 'lng2', out_pics : 'outPics', pics : 'pics',street_community:'streetCommunity',committee:'committee',schools:'schools',house_structure:'houseStructure',
alias:'alias',addr_alias:'addrAlias'
alias:'alias',addr_alias:'addrAlias','main_type_area':'mainTypeArea',loudong_count:'loudongCount'
]
public static final def OFFICE_FIELDS_MAP = [
name :'name',region :'region',block :'block',address :'address',estate_type2 :'estateType2',household_count :'householdCount',open_date :'openDate',live_date :'liveDate',
all_area :'allArea',build_area :'buildArea',build_type :'buildType',developer :'developer',estate_company :'estateCompany',cubage_percent :'cubagePercent',virescence_percent :'virescencePercent',
car_site :'carSite',estate_charge :'estateCharge',finish_building_date :'finishBuildingDate',start_building_date :'startBuildingDate',build_structure :'buildStructure',
facilities : 'facilities',characteristic:'characteristic',car_site_count :'carSiteCount',bed_kind:'bedKind',
lat : 'lat',lng : 'lng',lat2 : 'lat2',lng2 : 'lng2', out_pics : 'outPics', pics : 'pics'
name :'name',region :'region',block :'block',address :'address',estate_type2 :'estateType2',household_count :'householdCount',open_date :'openDate',live_date :'liveDate',
all_area :'allArea',build_area :'buildArea',build_type :'buildType',developer :'developer',estate_company :'estateCompany',cubage_percent :'cubagePercent',virescence_percent :'virescencePercent',
car_site :'carSite',estate_charge :'estateCharge',finish_building_date :'finishBuildingDate',start_building_date :'startBuildingDate',build_structure :'buildStructure',
facilities : 'facilities',characteristic:'characteristic',car_site_count :'carSiteCount',bed_kind:'bedKind',alias:'alias',
lat : 'lat',lng : 'lng',lat2 : 'lat2',lng2 : 'lng2', out_pics : 'outPics', pics : 'pics',addr_alias:'addrAlias',business_quarter:'businessQuarter',loop_line_info:'loopLineInfo',licence:'licence',
sideset:'sideset',real_use_percent:'realUsePercent',build_designer:'buildDesigner',cons_company:'consCompany',estate_charge:'estateCharge',
floor_info:'floorInfo',underground_car_site:'undergroundCarSite',land_car_site:'landCarSite',parking_fee:'parkingFee',sight:'sight',property_life:'propertyLife',
conditioner_time:'conditionerTime',elevators_count:'elevatorsCount',person_elevators_count:'personElevatorsCount',
goods_elevator_count:'goodsElevatorCount',network_way:'networkWay',fitment_level:'fitmentLevel',standard_height:'standardHeight',clear_height:'clearHeight',standard_area:'standardArea',
is_foreign:'foreign',is_register:'register',lighting_ventilation:'lightingVentilation',lobby_height:'lobbyHeight'
]
public static final def SHOP_FIELDS_MAP = [
name :'name',region :'region',block :'block',address :'address',estate_type2 :'estateType2',open_date :'openDate',live_date :'liveDate',
all_area :'allArea',build_area :'buildArea',build_type :'buildType',developer :'developer',estate_company :'estateCompany',
rent_type :'rentType',lease_term :'leaseTerm',car_site :'carSite',estate_charge :'estateCharge',divisible :'divisible',floor :'floor',
finish_building_date :'finishBuildingDate',business_quarter :'businessQuarter',start_building_date :'startBuildingDate',
bay_area :'bayArea', property_life :'propertyLife',unified_manage :'unifiedManage',licence :'licence',business_status :'businessStatus',
lat : 'lat',lng : 'lng',lat2 : 'lat2',lng2 : 'lng2', out_pics : 'outPics', pics : 'pics',bed_kind:'bedKind',floor_info:'floorInfo',car_site_count :'carSiteCount',
lat : 'lat',lng : 'lng',lat2 : 'lat2',lng2 : 'lng2', out_pics : 'outPics', pics : 'pics'
]
public static CITY_GRADE_MAP = [1000: "一线" , 1500 : "新一线" , 2000 : "二线" , 3000:"三线" ,4000 : "四线" ,5000 : "五线"]
final static def COUNT_CITYS = ["滁州","黄山","马鞍山","芜湖","宿州","宣城","北京","白银","定西","甘南","金昌","兰州","临夏","陇南","平凉","庆阳","天水","武威","张掖","东莞","佛山","广州","惠州","江门","梅州","清远","深圳","玉林","安顺","贵阳","铜仁","三亚","海口","承德","邯郸","衡水","廊坊","秦皇岛","石家庄","开封","洛阳","大庆","鄂州","黄冈","十堰","武汉","宜昌","常德","长沙","常州","淮安","连云港","南京","南通","苏州","泰州","无锡","宿迁","徐州","盐城","扬州","镇江","景德镇","九江","上饶","鹰潭","抚顺","辽阳","盘锦","沈阳","铁岭","营口","呼和浩特","石嘴山","银川","海东","西宁","滨州","德州","济南","济宁","青岛","潍坊","淄博","太原","宝鸡","渭南","西安","咸阳","上海","成都","达州","德阳","乐山","凉山州","泸州","眉山","绵阳","南充","内江","遂宁","雅安","宜宾","资阳","自贡","天津","丽江","昭通","杭州","湖州","嘉兴","金华","丽水","宁波","衢州","绍兴","台州","温州","舟山","重庆"];
final static def DIST_FACILITY_LIST = ["bank", "hospital", "bus", "shop", "university", "middle_school", "primary_school", "kindergarten", "food_shop", "supermarket","atm","school","subway"]
/**
* 统计结果接收邮箱列表
*/
final static def receivers = [
"puxueli@fangjia.com",
"wangchencen@fangjia.com",
"gaojuan@fangjia.com",
"caoyuyan@fangjia.com",
"muliangshu@fangjia.com"
]
@@ -116,7 +123,9 @@ class CityInfoAnaBatch extends BaseBatch {
SERVER_AREA_CONN.find(cityQuery).each { allCitys.put(it.display, it); }
allCitys.each {k,v ->
CITYS << k.toString();
// if(["上海","深圳","北京","广州","杭州","苏州","重庆","成都"].contains(k.toString())){
CITYS << k.toString();
// }
}
// 所有城市的人口信息
@@ -146,7 +155,7 @@ class CityInfoAnaBatch extends BaseBatch {
allCityDisCount.put(it.name, it.count.intValue());
}
}
// 城市新盘数
def allCityNewDisCount = [:];
disQuery = new BasicDBObject();
@@ -162,7 +171,7 @@ class CityInfoAnaBatch extends BaseBatch {
allCityNewDisCount.put(it.name, it.count.intValue());
}
}
// 城市写字楼数
def allCityOfficeCount = [:];
disQuery = new BasicDBObject();
@@ -178,8 +187,8 @@ class CityInfoAnaBatch extends BaseBatch {
allCityOfficeCount.put(it.name, it.count.intValue());
}
}
// 城市商铺数
def allCityShopCount = [:];
disQuery = new BasicDBObject();
@@ -503,7 +512,7 @@ class CityInfoAnaBatch extends BaseBatch {
entity.put('official_population', curInfo.official_population);
entity.put('district_avg_population', curInfo.district_avg_population);
entity.put('rate', curInfo.rate);
removeCurInfo(cityName, weekend);
} else {
def cityHouseStat = allHouseStats.get(cityName);
@@ -513,13 +522,13 @@ class CityInfoAnaBatch extends BaseBatch {
} else if (cityHouseStat && cityHouseStat.standard_people_count) {
entity.put('official_population', cityHouseStat.standard_people_count);
}
if (lastInfo && lastInfo.district_avg_population) {
entity.put('district_avg_population', lastInfo.district_avg_population);
} else if (cityHouseStat && cityHouseStat.district_avg_population) {
entity.put('district_avg_population', cityHouseStat.district_avg_population);
}
if (lastInfo && lastInfo.rate) {
entity.put('rate', lastInfo.rate.toDouble());
} else if (cityHouseStat) {
@@ -565,6 +574,8 @@ class CityInfoAnaBatch extends BaseBatch {
entity.put("price_credit_gte_00_coverage", DataUtil.roundDouble(creditGte00Count/count, 4))
}
entity.put('district_detail', districtDetail(disCount, cityName));
entity.put('district_facilitys_detail', districtFacilitysDetail(disCount, cityName));
} else {
entity.put('district_detail', [:]);
}
@@ -1079,6 +1090,75 @@ class CityInfoAnaBatch extends BaseBatch {
districtDetail.put('rentPrice', roundDouble(pc, disCount));
return districtDetail;
}
def districtFacilitysDetail(def disCount, def cityName){
DBObject query = new BasicDBObject();
query.put('city', cityName);
query.put('cat', 'district');
query.put('visible', 0);
DBObject fields = new BasicDBObject()
fields.put("city", 1)
fields.put("region", 1)
fields.put("name", 1)
def facilityMap = findFacilityByCity(cityName)
DSCursor cur = SEAWEED.find(query, fields).batchSize(2000)
Iterator<DBObject> iter = cur.iterator()
def countMap = [:]
while(iter.hasNext()) {
def dbo = iter.next()
def facilityCountMap = facilityMap.get(dbo.city+"##"+dbo.region+"##"+dbo.name)
if(facilityCountMap){
DIST_FACILITY_LIST.each() {
def count = facilityCountMap.get(it)
if (count) {
if(countMap.containsKey(it)) {
def tempCount = countMap.get(it) + 1
countMap.put(it, tempCount)
}else {
countMap.put(it, 1)
}
}
}
}
}
def facilityDetail = [:];
DIST_FACILITY_LIST.each() {it->
if(countMap.containsKey(it)) {
facilityDetail.put(it, roundDouble(countMap.get(it), disCount))
}else {
facilityDetail.put(it, 0)
}
}
return facilityDetail;
}
def findFacilityByCity(city){
DBObject query = new BasicDBObject();
query.put('city', city);
DBCursor cur = FACILITY_CONN.find(query).batchSize(2000)
Iterator<DBObject> iter = cur.iterator()
def distMap = [:]
while(iter.hasNext()) {
def dbo = iter.next()
def countMap = [:]
DIST_FACILITY_LIST.each {
def values = dbo.get(it)
def count = 0
if(values){
count = values.size()
countMap.put(it, count)
}
}
if(countMap){
distMap.put(dbo.city+"##"+dbo.region+"##"+dbo.district_name, countMap)
}
}
return distMap;
}
double roundDouble(int a, int base) {
if(a == 0 || base == 0) {
@@ -1177,7 +1257,7 @@ class CityInfoAnaBatch extends BaseBatch {
DBObject query = new BasicDBObject();
query.put('city', cityName);
query.put('cat', 'office');
query.put('visible', 0);
query.put('status', 0);
DBObject fields = new BasicDBObject()
OFFICE_FIELDS_MAP.each() {key,skey->
@@ -1187,7 +1267,7 @@ class CityInfoAnaBatch extends BaseBatch {
DSCursor cur = SEAWEED.find(query, fields).batchSize(2000)
Iterator<DBObject> iter = cur.iterator()
def countMap = [:]
println cur.count()
while(iter.hasNext()) {
def dbo = iter.next()
OFFICE_FIELDS_MAP.each() {key,skey->
@@ -60,7 +60,7 @@ class DistrictSellStatBatch extends BaseBatch {
}
def calcMonthlyPrice(){
def citys = ["¸£ÖÝ"]//CommonUtils.findAllCity()
def citys = CommonUtils.findAllCity()
def keys = new BasicDBObject("city", 1).append("name", 1).append("region", 1).append("estate_type2", 1)
def lastMonthWeekend = DateUtils.truncateDay(DateUtils.getLastSundayInWeekOfLastMonth(new Date()))
@@ -75,7 +75,7 @@ class DistrictSellStatBatch extends BaseBatch {
index++
def districts = []
if(city == "¸ŁÖÝ"){
districts = FZ_DIST_COLL.find(new BasicDBObject("city", city).append("name","Ïèӥɽׯ"), keys).toList()
districts = FZ_DIST_COLL.find(new BasicDBObject("city", city), keys).toList()
}else{
districts = DbUtils.seaweed.find(new BasicDBObject("city", city).append("cat", "district").append("visible", 0), keys).batchSize(2000)
}
@@ -124,7 +124,7 @@ class ThirdPriceExportBatch extends BaseBatch{
add = true;
}
def tc_price = getLastThirdPrice(o.get("58tc_esf_price"), curPrice)
def tc_price = getLastThirdPrice(o.anjuke_esf_price, curPrice)//58tc_esf_price
row << tc_price
if(tc_price){
add = true;
@@ -18,13 +18,13 @@ class AddAvgpriceBatch {
public static final DBCollection DIST_STAT_COLL = MongoUtils.getCollectionByName("fangjia_stat", "district_stat", "mongo.db.fangjia.com")
static {
citys = CommonDatautils.findAllCity()
citys = ["徐州"]//CommonDatautils.findAllCity()
println "加载城市完成:"+citys.size()
}
static main(args) {
def task = new AddAvgpriceBatch();
task.run();
task.run1();
}
def run(){
@@ -63,6 +63,45 @@ class AddAvgpriceBatch {
def run1(){
def totalCount = 0;
citys.each{city->
if(city!="全国"){
def districtKeysMap = CommonDatautils.findAllDistrictKeys(city, "district")
println "------------------------------------------------------------"
println "${city}小区量:"+districtKeysMap.size()
if(districtKeysMap){
def lastWeekendStats = queryAllDistrictPriceByWeekend(city, DateUtils.parseFromTightYYYYMMDD("2023-03-26"))
println "【2023-03-26】共计均价小区:"+lastWeekendStats.size()
//库中小区没有计算过均价的小区
def districtKeys = districtKeysMap.keySet();
def rets1 = findNoCaluteDistrict(districtKeys, lastWeekendStats);
println "【2023-03-26】共 "+rets1.size()+" 个小区无均价"
if(rets1){
for(def disKey : rets1){
def array = disKey.split("##");
def estateType2 = districtKeysMap.get(disKey)
//发重算均价命令
addPrice(array[0], array[1], array[2], estateType2, DateUtils.parseFromTightByPattern('2023-03-01','yyyy-MM-dd'),DateUtils.parseFromTightByPattern('2023-04-03','yyyy-MM-dd'))
}
}
}
}
}
println "共补:"+totalCount
}
def addPrice(city, region, name, estateType2,startDate, endDate){
def weekends = DateUtils.getWeekendBetweenDates(startDate, endDate)
for(def weekend : weekends){
CommonUtils.recalculationAverage(city, region, name, estateType2, weekend,false,0)
}
}
def findHavePrice(lastAgoWeekendStats, rets){
def disKeys = [];
for(def key : rets){
@@ -0,0 +1,76 @@
package com.fangjia.script.gj
import com.fangjia.core.util.BaiDuApiUtils
import com.fangjia.script.util.DbUtils
import com.fangjia.script.util.ExcelUtils
import com.mongodb.BasicDBObject
class AddDistrictTemp {
static main(args) {
def task = new AddDistrictTemp();
task.run();
}
def run() {
def datas = ExcelUtils.read("D:\\数据\\小区\\新增小区.xlsx", 0, 1)
def index = 0
for (def d : datas) {
index ++
def q = new BasicDBObject()
q.put("city", d['A'])
q.put("name", d['C'])
q.put("cat","district")
q.put("status", 0)
def obj = DbUtils.seaweed.findOne(q)
if(!obj){
def dbo = new BasicDBObject()
dbo.city = d['A'];
dbo.region = d['B'];
dbo.name = d['C']
dbo.address = d['F']
dbo.estate_type2 = "普通住宅"
dbo.status = 0;
dbo.cat ="district"
dbo.name_cat = 0
dbo.c_date = new Date()
dbo.m_date = new Date()
def markMap = [:]
markMap.put("data_source", "机器入库")
dbo.mark_map = markMap
// 高德转百度
def baidu = BaiDuApiUtils.geoconv(d['G'].toString().toDouble(), d['H'].toString().toDouble(), 3)
def lng2 = baidu.x
def lat2 = baidu.y
Long lng_new = d['G'].toString().toDouble() *10000000000L
Long lat_new = d['H'].toString().toDouble() *10000000000L
dbo.put("lng", lng_new)
dbo.put("lat", lat_new)
if(lng2){
Long lng2_new = lng2 *10000000000L
Long lat2_new = lat2 *10000000000L
dbo.put("lng2", lng2_new)
dbo.put("lat2", lat2_new)
}
def alias = []
if(d['D'] && d['D']!=d['C'] && !alias.contains(d['D'])){
alias << d['D']
}
if(d['F'] && d['F']!=d['C'] && !alias.contains(d['F'])){
alias << d['F']
}
if(alias){
dbo.put("alias", alias)
}
println "[${index}]"+dbo
DbUtils.seaweed.save(dbo);
}else{
println d['C']+" 已存在"
}
}
}
}
@@ -539,4 +539,20 @@ class OpenApiUtils {
}
static def searchDistrictRank(def city, def region, def name){
def url = "http://localhost:8080/fangjia-open/property/rank?city="+city+"&district="+region+"&name="+name+"&token=F54F52381C49BB9EB4A33EB1B65604AE4B71A28AEE53518A94A2F360408B9056D57553931D15CE6DDE765562DAD286BA38E05A4CDAFC51C3D527A4959BF8E75A3B95DB7108FCEA340DDE61925616DB55118E1851E67D83EAD800460D100D6B667A4ED8EE67C8F7FB"
String content = new HttpRequest().get(url, "utf-8");
def dto = []
if(content){
def doc = new JsonSlurper().parseText(content)
if(doc && doc.code ==200 && doc.result){
def dtos = doc.result
return dtos
}
}
return null;
}
}
@@ -0,0 +1,40 @@
package com.fangjia.script.gj
import com.fangjia.core.Constants
import com.fangjia.core.util.DateUtil
import com.fangjia.core.util.Mongo3Utils
import com.fangjia.script.util.ExcelUtils
import com.mongodb.BasicDBObject
import com.mongodb.client.MongoCollection
import net.sf.json.JSONObject
import org.bson.Document
import static com.mongodb.client.model.Filters.*
MongoCollection<Document> OPEN_URI_LOG = Mongo3Utils.getDbCollection(Constants.SEAWATER_MONGO_URI, "business", "open_uri_log")
def startDate = DateUtil.parseDate("20210301", "yyyyMMdd")
def endDate = DateUtil.parseDate("20230401", "yyyyMMdd")
Calendar calendar = Calendar.getInstance()
calendar.setTime(startDate)
def data = [[ "公司名称","访问链接", "访问时间", "总量"]]
def rMap = [:]
def index = 0
OPEN_URI_LOG.find(and(eq("user_id", "1007569"), eq("request_uri", "/address/risk"), eq("code", 200))).each { Document doc ->
index++
def day = doc.c_date.format("yyyy-MM-dd")
def count = rMap.get(day)
if (!count) {
rMap.put(day, 1)
} else {
rMap.put(day, count + 1)
}
if(index%10000==0){
println index+" "+new Date().toString()
}
}
rMap.each {k,val->
println k+" "+val
}
@@ -1,23 +1,86 @@
package com.fangjia.script.gj.crawl
import com.fangjia.core.RegionData
import com.fangjia.script.commData.CommonDatautils
import com.fangjia.script.gj.EsUtils
import com.fangjia.script.linxsh.util.AddressUtil
import com.fangjia.script.temp.shenjian.util.SeaweedUtils
import com.fangjia.script.util.DbUtils
import com.fangjia.script.util.ElasticUtils
import com.fangjia.script.util.ExcelUtils
import com.fangjia.script.util.OpenApiClient
import com.mongodb.BasicDBList
import com.mongodb.BasicDBObject
import groovy.sql.Sql
import org.apache.commons.lang.StringUtils
import org.apache.lucene.index.Term
import org.apache.lucene.search.BooleanClause
import org.apache.lucene.search.BooleanQuery
import org.apache.lucene.search.TermQuery
import org.bson.types.ObjectId
import java.util.concurrent.CopyOnWriteArrayList
import java.util.concurrent.CountDownLatch
import java.util.concurrent.ExecutorService
import java.util.concurrent.Executors
import java.util.concurrent.atomic.AtomicLong
class AnjukeDistrictMatch {
public static ExecutorService fixedThreadPool = Executors.newFixedThreadPool(10)
def pgsqlInstance = Sql.newInstance("jdbc:postgresql://192.168.0.236:5432/warehouse",
"postgres", "postgres", "org.postgresql.Driver")
static main(args) {
def task = new AnjukeDistrictMatch();
// task.run();
// task.runCsv();
// task.updateCredit()
// task.matchCommunity()//查询es小区数据
// task.run1()
// task.updateField()
task.fenQiRun()
// task.updateGreenRateField()//根据第三方数据填补库中字段
// task.updteGreenRateFieldByCsv()
// task.fenQiRun()
// task.findAliasDatas("淮安","水沐未来印象花园")//模糊查找Es别名数据
// task.repeatDistByAlias()//根据第三方网站别名查找重复数据
// task.matchCommunityByCsv()
// task.updteBuildAreaFieldByCsv()
// task.updadteAllAreaFieldByCsv()
// task.updatePlotRateFieldByCsv()
task.updateFinishDateFieldByCsv()
}
def updateCredit(){
def datas = readTxt("D:\\数据\\建行\\二期\\第三方小区字段补充\\第三方网站绿化率 (匹配).csv")
def results = []
for(def i=0;i<datas.size();i++) {
final def data = datas[i]
def row = data as List
if(row[24] && row[24].contains("接口")){
def inputName = row[2]
def matchName = row[27]
if(inputName.toString().endsWith("小区") || inputName.toString().endsWith("院")){
inputName = inputName.replace("小区","").replace("院","")
}
if(matchName.toString().endsWith("小区") || matchName.toString().endsWith("院")){
matchName = matchName.replace("小区","").replace("院","")
}
if(inputName == matchName && row[1]==row[26]){
row[30] = 1
}
}
results << row
}
batchCreateFile(results, "D:\\数据\\建行\\二期\\第三方小区字段补充\\第三方网站绿化率 (匹配)-1.csv",null,"GBK")
batchCreateFile(datas, "D:\\数据\\建行\\二期\\第三方小区字段补充\\第三方网站绿化率 (匹配)-2.csv",null,"GBK")
}
def fenQiRun(){
def citys = ['苏州','杭州','宁波','温州','嘉兴','湖州','绍兴','金华','衢州','舟山','台州','丽水']
for(def c : citys){
@@ -79,7 +142,7 @@ class AnjukeDistrictMatch {
}
def updateField(){
def updateGreenRateField(){
def filePath = "D:\\数据\\建行\\二期\\第三方小区字段补充\\绿化率.xlsx"
ExcelUtils.multiThreadingModify(filePath, { row ->
if(row['Q'] && !row['Q'].contains("接口")){
@@ -138,26 +201,551 @@ class AnjukeDistrictMatch {
})
}
def matchCommunityByCsv(){
def datas = readTxt("D:\\数据\\建行\\二期\\第三方小区字段补充\\第三方网站容积率(匹配)-2.csv")
def map = [:]
for(def i=0;i<datas.size();i++) {
final def data = datas[i]
def row = data as List
map.put(row[0]+"#"+row[1]+"#"+row[2], row[24]+"#"+row[25]+"#"+row[26]+"#"+row[27]+"#"+row[28])
}
def datas1 = readTxt("D:\\数据\\建行\\二期\\第三方小区字段补充\\第三方网站竣工时间.csv")
def lastRets = []
for(def i=0;i<datas1.size();i++) {
final def data = datas1[i]
def row = data as List
def resultStr = map.get(row[0]+"#"+row[1]+"#"+row[2])
if(resultStr){
def arrs = resultStr.split("#")
if(arrs){
row << arrs[0]
if(arrs.size()>1){
row << arrs[1]
}
if(arrs.size()>2){
row << arrs[2]
}
if(arrs.size()>3){
row << arrs[3]
}
if(arrs.size()>4){
row << arrs[4]
}
}
}
lastRets << row
}
batchCreateFile(lastRets, "D:\\数据\\建行\\二期\\第三方小区字段补充\\第三方网站竣工时间(匹配).csv",null,"GBK")
}
def updteGreenRateFieldByCsv(){
def datas = readTxt("D:\\数据\\建行\\二期\\第三方小区字段补充\\测试.csv")
for(def i=0;i<datas.size();i++) {
final def data = datas[i]
def row = data as List
if(row[24] && (row[24]=="名称匹配"||row[24]=="映射别名匹配" || (row[24].contains("接口") && row[28] && row[28].toString().isNumber() && row[28].toString().toDouble()>=0.9))){
def dist = CommonDatautils.findSeaweedById(row[25], ["virescence_percent"])
if(dist && !dist.virescence_percent){
def val = row[12]
if(!val){
val = row[13]
}
if(!val){
val = row[14]
}
if(!val){
val = row[11]
}
if(!val){
val = row[21]
}
if(!val){
val = row[22]
}
if(!val){
val = row[6]
}
if(!val){
val = row[10]
}
if(!val){
val = row[9]
}
if(!val){
val = row[5]
}
if(!val){
val = row[16]
}
if(!val){
val = row[15]
}
if(!val){
val = row[23]
}
if(!val){
val = row[19]
}
if(!val){
val = row[17]
}
if(!val){
val = row[8]
}
if(!val){
val = row[18]
}
if(!val){
val = row[20]
}
if(!val){
val = row[3]
}
if(!val){
val = row[4]
}
if(!val){
val = row[7]
}
if(val){
if(val.toString().toDouble().toInteger()==val.toString().toDouble()){
val = val.toString().toDouble().toInteger()
}
def udata = new BasicDBObject()
udata.put("virescence_percent", val.toString())
udata.put("m_date",new Date())
def q = new BasicDBObject()
q.put("_id", new ObjectId(dist._id.toString()))
DbUtils.seaweed.update(q, new BasicDBObject('$set', udata))
println row[25] +" "+val.toString()
}
}
}
}
}
def updteBuildAreaFieldByCsv(){
def datas = readTxt("D:\\数据\\建行\\二期\\第三方小区字段补充\\第三方网站建筑面积(匹配).csv")
for(def i=0;i<datas.size();i++) {
final def data = datas[i]
def row = data as List
if(row[16] && (row[16]=="名称匹配"||row[16]=="映射别名匹配" || (row[16].contains("接口") && row[20] && row[20].toString().isNumber() && row[20].toString().toDouble()>=0.9))){
def dist = CommonDatautils.findSeaweedById(row[17], ["build_area"])
if(dist && !dist.build_area){
def val = row[8]
if(!val){
val = row[7]
}
if(!val){
val = row[9]
}
if(!val){
val = row[14]
}
if(!val){
val = row[15]
}
if(!val){
val = row[12]
}
if(!val){
val = row[5]
}
if(!val){
val = row[6]
}
if(!val){
val = row[3]
}
if(!val){
val = row[13]
}
if(!val){
val = row[4]
}
if(!val){
val = row[10]
}
if(!val){
val = row[11]
}
if(val){
if(val.toString().toDouble().toInteger()==val.toString().toDouble()){
val = val.toString().toDouble().toInteger()
}
def udata = new BasicDBObject()
udata.put("build_area", val.toString())
udata.put("m_date",new Date())
def q = new BasicDBObject()
q.put("_id", new ObjectId(dist._id.toString()))
DbUtils.seaweed.update(q, new BasicDBObject('$set', udata))
println row[17] +" "+val.toString()
}
}
}
}
}
def updadteAllAreaFieldByCsv(){
def datas = readTxt("D:\\数据\\建行\\二期\\第三方小区字段补充\\第三方网站占地面积(匹配).csv")
for(def i=0;i<datas.size();i++) {
final def data = datas[i]
def row = data as List
if(row[12] && (row[12]=="名称匹配"||row[12]=="映射别名匹配" || (row[12].contains("接口") && row[16] && row[16].toString().isNumber() && row[16].toString().toDouble()>=0.9))){
def dist = CommonDatautils.findSeaweedById(row[13], ["all_area"])
if(dist && !dist.all_area){
def val = row[3]
if(!val){
val = row[4]
}
if(!val){
val = row[5]
}
if(!val){
val = row[8]
}
if(!val){
val = row[9]
}
if(!val){
val = row[10]
}
if(!val){
val = row[11]
}
if(!val){
val = row[6]
}
if(!val){
val = row[7]
}
if(val){
if(val.toString().toDouble().toInteger()==val.toString().toDouble()){
val = val.toString().toDouble().toInteger()
}
def udata = new BasicDBObject()
udata.put("all_area", val.toString())
udata.put("m_date",new Date())
def q = new BasicDBObject()
q.put("_id", new ObjectId(dist._id.toString()))
DbUtils.seaweed.update(q, new BasicDBObject('$set', udata))
println row[13] +" "+val.toString()
}
}
}
}
}
def updatePlotRateFieldByCsv(){
def datas = readTxt("D:\\数据\\建行\\二期\\第三方小区字段补充\\第三方网站容积率(匹配)-2.csv")
for(def i=0;i<datas.size();i++) {
final def data = datas[i]
def row = data as List
if(row[22] && (row[22]=="名称匹配"||row[22]=="映射别名匹配" || (row[22].contains("接口") && row[26] && row[26].toString().isNumber() && row[26].toString().toDouble()>=0.9))){
def dist = CommonDatautils.findSeaweedById(row[23], ["cubage_percent"])
if(dist && !dist.cubage_percent){
def val = row[10]
if(!val){
val = row[11]
}
if(!val){
val = row[12]
}
if(!val){
val = row[19]
}
if(!val){
val = row[20]
}
if(!val){
val = row[21]
}
if(!val){
val = row[6]
}
if(!val){
val = row[8]
}
if(!val){
val = row[9]
}
if(!val){
val = row[13]
}
if(!val){
val = row[14]
}
if(!val){
val = row[17]
}
if(!val){
val = row[3]
}
if(!val){
val = row[4]
}
if(!val){
val = row[5]
}
if(!val){
val = row[15]
}
if(!val){
val = row[16]
}
if(!val){
val = row[18]
}
if(val){
if(val.toString().toDouble().toInteger()==val.toString().toDouble()){
val = val.toString().toDouble().toInteger()
}
def udata = new BasicDBObject()
udata.put("cubage_percent", val.toString())
udata.put("m_date",new Date())
def q = new BasicDBObject()
q.put("_id", new ObjectId(dist._id.toString()))
DbUtils.seaweed.update(q, new BasicDBObject('$set', udata))
println row[23] +" "+val.toString()
}
}
}
}
}
// def run1(){
// def regionPointsMap = findRegionRange("重庆")
// def flag = isInArea(dist.lng/10000000000.0, dist.lat/10000000000.0, regionPointsMap.get(dist.region))
// }
def updateFinishDateFieldByCsv(){
def datas = readTxt("D:\\数据\\建行\\二期\\第三方小区字段补充\\竣工时间.csv")
for(def i=0;i<datas.size();i++) {
final def data = datas[i]
def row = data as List
if(row[22] && (row[22]=="名称匹配"||row[22]=="映射别名匹配" || (row[22].contains("接口") && row[26] && row[26].toString().isNumber() && row[26].toString().toDouble()>=0.9))){
def dist = CommonDatautils.findSeaweedById(row[23], ["finish_building_date"])
if(dist && !dist.finish_building_date){
def val = row[10]
if(!val){
val = row[11]
}
if(!val){
val = row[12]
}
if(!val){
val = row[19]
}
if(!val){
val = row[20]
}
if(!val){
val = row[21]
}
if(!val){
val = row[6]
}
if(!val){
val = row[8]
}
if(!val){
val = row[9]
}
if(!val){
val = row[13]
}
if(!val){
val = row[14]
}
if(!val){
val = row[17]
}
if(!val){
val = row[3]
}
if(!val){
val = row[4]
}
if(!val){
val = row[5]
}
if(!val){
val = row[15]
}
if(!val){
val = row[16]
}
if(!val){
val = row[18]
}
if(val){
if(val.toString().toDouble().toInteger()==val.toString().toDouble()){
val = val.toString().toDouble().toInteger()
}
def udata = new BasicDBObject()
udata.put("finish_building_date", val.toString())
udata.put("m_date",new Date())
def q = new BasicDBObject()
q.put("_id", new ObjectId(dist._id.toString()))
DbUtils.seaweed.update(q, new BasicDBObject('$set', udata))
println row[23] +" "+val.toString()
}
}
}
}
}
def runCsv(){
def datas = readTxt("D:\\数据\\建行\\二期\\第三方小区字段补充\\容积率未匹配.csv")//第三方网站绿化率 (3).csv
def results = batchMatch(datas)
batchCreateFile(results, "D:\\数据\\建行\\二期\\第三方小区字段补充\\容积率未匹配-2.csv",null,"GBK")
}
def batchMatch(datas){
def results = new CopyOnWriteArrayList()
def totalCount = new AtomicLong()
final CountDownLatch latch = new CountDownLatch(datas.size())
for(def i=0;i<datas.size();i++){
final def data = datas[i]
def row = data as List
fixedThreadPool.execute(new Runnable() {
void run() {
try{
totalCount.addAndGet(1)
if (row[0] && row[1] && !row[22]) {
def city = row[0]
def region = row[1]
def name = row[2]
region = RegionData.formatRegion(city, region)
if(region){
if (name && name.contains("·")) {
name = name.replace("·", "")
}
def flag = "名称匹配"
def dist = matchDist(city, region, name)
if (!dist) {
dist = CommonDatautils.findSeaweedByMappingAlias(city, region, name, "district")
flag = "映射别名匹配"
}
if (!dist) {
def rets = CommonDatautils.findDistrictByAlias(city, region, name, "district")
if (rets && rets.size() == 1) {
dist = rets[0]
}
}
if (dist) {
row << flag
row << dist._id.toString()
row << dist.region
row << dist.name
results << row
} else {
def jsonObject = OpenApiClient.addressMatch(city, name, "property", false, region, null)
if (jsonObject != null && jsonObject.precise != -1) {
row << "匹配接口"
row << jsonObject.get("id")
row << jsonObject.get("district")
row << jsonObject.get("name")
row << jsonObject.get("credit")
results << row
}
}
}
}
println totalCount.get()
} catch (Exception e) {
e.printStackTrace()
} finally {
latch.countDown()
}
}
});
}
latch.await()
return results;
}
def run(){
def filePath = "D:\\数据\\建行\\二期\\第三方小区字段补充\\绿化率.xlsx"
def datas = readTxt("D:\\数据\\建行\\二期\\第三方小区字段补充\\第三方网站绿化率 (3).csv")
def filePath = "D:\\数据\\建行\\二期\\第三方小区字段补充\\全国绿化率.xlsx"
def index = 0
ExcelUtils.multiThreadingModify(filePath,{row->
if(row['A'] && !row['Q']){
def city = row['B']
def region = row['C']
def name = row['D']
index++
if(row['A'] && row['B']){
def city = row['A']
def name = row['C']
def region = row['B']
if(name && name.contains("·")){
name = name.replace("·", "")
}
def flag = "名称匹配"
def dist = matchDist(city, region, name)
if(!row['D'] && name.contains("(")){
name = name.replace("(${region})","").replace("(","").replace(")","")
flag = "去括号匹配"
dist = matchDist(city, region, name)
}
if(!dist){
dist = CommonDatautils.findSeaweedByMappingAlias(city, region, name,"district")
flag = "映射别名匹配"
@@ -183,20 +771,59 @@ class AnjukeDistrictMatch {
// }
if(dist){
row['Q'] = flag
row['R'] = dist._id.toString()
row['S'] = dist.region
row['T'] = dist.name
row['F'] = flag
row['G'] = dist._id.toString()
row['D'] = dist.region
row['C'] = dist.name
}else{
def jsonObject = OpenApiClient.addressMatch(city, name, "property", false,region, null)
if(jsonObject != null && jsonObject.precise!=-1) {
row['Q'] = "匹配接口"
row['R'] = jsonObject.get("id")
row['S'] = jsonObject.get("district")
row['T'] = jsonObject.get("name")
row['Y'] = "匹配接口"
row['Z'] = jsonObject.get("id")
row['AA'] = jsonObject.get("district")
row['AB'] = jsonObject.get("name")
row['AC'] = jsonObject.get("credit")
}
}
println index +" "+row['Y']
// if(row['G']){
// def dbo = CommonDatautils.findDistrictById(row['G'])
// if(dbo){
// row['H'] = dbo.estate_type2
// row['I'] = dbo.name_cat
//
// def count = findBigdataCommunity(row['G'])
// if(count){
// row['E'] = "是"
// }
// }
// }
}
})
}
def matchCommunity(){
def filePath = "D:\\数据\\小区\\押品发现新增小区确认(结果)3.24_2.xlsx"
ExcelUtils.modify(filePath, { row ->
if (row['A'] && row['B'] && row['I']) {
def rets = findAllEsData(row['A'], row['B'])
if(rets){
def dbo = rets[0]
row['J'] = dbo.city
row['K'] = dbo.region
row['L'] = dbo.name
row['M'] = dbo.alias
row['N'] = dbo.source
row['O'] = dbo.score
if(dbo.address){
row['P'] = AddressUtil.formatAddress(dbo.city, dbo.address)
}
if(dbo.location){
row['Q'] = dbo.location.lon
row['R'] = dbo.location.lat
}
}
}
})
}
@@ -205,4 +832,152 @@ class AnjukeDistrictMatch {
def dist = CommonDatautils.findDistrict(city, region, name, "district")
return dist;
}
def findBigdataCommunity(comm_id){
def sql = "select count(1) as count from base.t0831_bigdata_community_gj_h where gujia_comm_id='${comm_id}' ";//where cityId in (350200,150100)
def count = 0
pgsqlInstance.eachRow(sql,{r->
count = r.count
});
return count
}
def findAllEsData(city,name){
def rets = []
def sql = "select * from community where city='${city}' and name='${name}'"
rets = findDatas(sql)
if(!rets){
rets = findAliasDatas(city,name)
}
return rets;
}
def findDatas(sql){
def rets = []
ElasticUtils.executeSqlQuery(sql, { d->
rets << ["city":d.city, "region":d.region, "name":d.name, "source":d.source, "alias":d.alias, "address":d.address, "location":d.location]
})
return rets;
}
def repeatDistByAlias(){
def rets = findAliasDist()
// def datas = []
// for(def r : rets){
// datas << [r.city, r.region, r.name, r.alias]
// }
// ExcelUtils.write("D:\\数据\\小区\\第三方有别名的小区.xlsx", datas, "test")
def districts = CommonDatautils.findAllDistrictByCity("常州", "district", ["city","region","name"])
def distKeys = []
for(def d : districts){
distKeys << d.region+"#"+d.name
}
def results = []
for(def t : rets){
def names = []
names << t.region + "#" +t.name
def arrs = t.alias.split(",|,")
for(def a : arrs){
names << t.region + "#" + a
if(a.contains("(")){
names << t.region + "#" + a.replace("(","").replace(")", "")
}
}
def set = new HashSet()
for(def n : names){
if(distKeys.contains(n)){
set << n
}
}
if(set.size()>1){
results << [t.city, t.region, t.name, set.join(" "),t.url]
}
}
ExcelUtils.write("D:\\数据\\小区\\第三方别名验证重复小区.xlsx", results, "test")
}
def findAliasDist(){
def rets = []
def sql = "select * from community where city='常州'"
ElasticUtils.executeSqlQuery(sql, { d->
if(d.alias){
rets << ["city":d.city, "region":d.region, "name":d.name, "source":d.source, "alias":d.alias, "url":d.url]
}
})
return rets;
}
def findAliasDatas(city, name){
def must = []
def term1 = ["match":["city":city]]
must << term1
def should = []
should << ["match":["alias":name]]
def params = ["query":["bool":["must":must, "should":should]]]
def s = EsUtils.httpSaveData(params, "http://192.168.0.206:9200/community/_doc/_search");
def rets = [];
if(s) {
def doc = new groovy.json.JsonSlurper().parseText(s)
def hits = doc.hits
if(hits){
hits = hits.hits
for(def h : hits){
def d = h._source
rets << ["city":d.city, "region":d.region, "name":d.name, "source":d.source, "alias":d.alias, "score":h._score, "address":d.address, "location":d.location]
}
}
}
return rets;
}
def readTxt(def fileName){
File file = new File(fileName);
def rows = [];
file.eachLine{
def row = it.split(",",-1)
rows << row
}
return rows;
}
def batchCreateFile(ret, fileName, headers, charset){
OutputStream out = new FileOutputStream(fileName);
def sb = new StringBuffer();
// sb.append(headers.join("@|@"))
// sb.append(System.getProperty("line.separator"));
out.write(sb.toString().getBytes(charset));
sb.setLength(0)
def index = 0
for(def row : ret){
index++
sb.append(StringUtils.join(row, ","))
sb.append(System.getProperty("line.separator"));
println index
if(index%10000==0){
println index+"开始写入CSV "+new Date().toLocaleString()
out.write(sb.toString().getBytes(charset));
sb.setLength(0)
println index+"结束写入CSV "+new Date().toLocaleString()
}
}
if(sb.length()>0){
out.write(sb.toString().getBytes(charset));
sb.setLength(0)
}
out.close();
}
}
@@ -0,0 +1,530 @@
package com.fangjia.script.gj.crawl
import com.fangjia.core.RegionData
import com.fangjia.core.util.DataUtil
import com.fangjia.script.commData.CommonDatautils
import com.fangjia.script.gj.ccb.FileUtils
import com.fangjia.script.looplineinfo.InsidePolygon
import com.fangjia.script.looplineinfo.Point
import com.fangjia.script.util.CosineSimilarAlgorithm
import com.fangjia.script.util.ExcelUtils
import com.fangjia.script.util.MongoUtils
import com.fangjia.script.util.OpenApiClient
import com.mongodb.BasicDBObject
import com.mongodb.Bytes
import com.mongodb.DBCollection
import groovy.sql.Sql
import java.sql.Connection
import java.sql.DriverManager
import java.sql.PreparedStatement
import java.sql.Statement
import java.util.regex.Pattern
class OfficeProcess {
static DBCollection POLYLINECOLL = MongoUtils.getCollectionByAuth20190102("fangjia_crawl", "region_polyline")
def sqlInstance = Sql.newInstance("jdbc:clickhouse://192.168.0.216:8123/etl?max_memory_usage=50000000",
"goojia", "goojia123456", "ru.yandex.clickhouse.ClickHouseDriver")
static main(args) {
def filePath = "/home/goojia/gj/6城未匹配上的写字楼.xlsx"
if(CommonDatautils.isWindow()){
filePath = "D:\\数据\\写字楼\\6城未匹配上的写字楼.xlsx"
}
def task = new OfficeProcess();
// task.run("D:\\数据\\写字楼\\6城合并写字楼.xlsx")
// task.addPropertyType2("深圳")
// task.standardName(filePath)
// task.nameRepeatFiter(filePath)
// task.addressFiter(filePath)
// task.nameFiter(filePath)
// task.typeFiter(filePath)
// task.nameFlag(filePath)
// task.updateFlagToDB(filePath)
// task.updateFlagToDB2(filePath)
task.checkRegion()
}
def nameRepeatFiter(filePath){
def keys = []
ExcelUtils.modify(filePath, { row ->
if (!row['L'] && row['B']) {
def city = row['B']
def region = row['C']
def name = ""
if(row['K']){
name = row['K']
}else{
name = row['D']
}
def key = city+"##"+region+"##"+name
if(keys.contains(key)){
row['L'] = "名称去重"
println key
}else{
keys << key
}
}
})
}
def nameFiter(filePath){
ExcelUtils.modify(filePath, { row ->
def name = row['K']
if(!row['L'] && !name){
row['L'] = "名称过滤"
}
if(!row['L'] && name){
if(name.contains("公司")){
row['L'] = "名称过滤"
}
}
if(!row['L'] && name){
if(isStandardRoad(name)){
row['L'] = "名称过滤"
}
}
if(!row['L'] && name){
def fiters = ["厂房","测试", "服务","综合服务","酒店","深圳特专","工业","经济","产业","居委会","宿舍","购物","休闲","文化","训练","出租","浙菜","值班岗","招租","商住","办公室","配套","美食","博物馆","物流","商铺","公社","商城","值班室","暂停","创业社区","招商","宾馆","器材","教育","门诊","妇产科","商贸城","电子城","超市","零售"]
for(def key : fiters){
if(name.contains(key)){
row['L'] = "名称过滤"
break;
}
}
}
if(!row['L'] && name){
def fiters = ["大厦","裙楼",'花园','大楼','大堂','南塔','北京','大道','主楼','中国','中心','广场','鸟巢','小区','单位','办公','北塔'
,'写字楼','检验楼','办公楼','接待区','商务楼','文体楼','市中心','产业园','科技楼','行政楼','病房43、44、45','律己楼','调度楼','辉腾楼','总务楼'
,'7幢货梯','现厂B栋','(马连道南街)','中央电视台','后座','西大楼','B&C','商业用楼','财务中心','地铁','一瓶','外贸楼','业务楼','研发大楼','结算中心','马场','商务']
for(def key : fiters){
if(name == key){
row['L'] = "名称过滤"
break;
}
}
}
if(!row['L'] && row['J'] && name){
if(row['J'].toString().contains("商务写字楼") && name.contains("公寓")){
row['L'] = "名称过滤"
}
}
if(!row['L'] && name){
if(findPattern(name,'^[A-Za-z0-9]+$') && name.toString().length()<=3){
row['L'] = "名称过滤"
}else if(name.toString().length()<2){
row['L'] = "名称过滤"
}
}
if(!row['L'] && name){
def filters = ['筹备组','小区','家属房','家属院','家属楼','自编','市场','项目','批发城','传达室','梯','型材','学院','工地','冷冻厂','机关楼','阅读室','议事厅','电脑城','童装城','派出所','保安室','散盘','店','工作站',"物业楼",'物业','驿站','锅炉房','处理中心',"销售中心",'政府','馆','捐赠点','百货','工厂','工场','检测场','职工之家','移动','中心站','楼门','职场','鲜花基地','医院','装饰城','实训楼','业务楼','科研楼','学校','交易城','管理楼','考场','通道','团购','楼上','运营中心','商业城']
for(def key : filters){
if(name.toString().endsWith(key)){
row['L'] = "名称过滤"
break;
}
}
}
})
}
def typeFiter(filePath){
ExcelUtils.modify(filePath, { row ->
if(!row['L'] && row['J']){
def fiters = ["商住","服务","住宅小区","酒店","商业综合体","住宅底商"]
for(def key : fiters){
if(row['J'].toString().contains(key)){
row['L'] = "类型过滤"
break;
}
}
}
if(!row['L'] && row['B'] && !row['J']){
row['L'] = "类型空白过滤"
}
})
}
def nameFlag(filePath){
ExcelUtils.modify(filePath, { row ->
if(!row['L'] && row['D']) {
def fiters = ["大厦","大楼","商务楼","商务中心","广场","写字楼","办公楼","科技园","国际大厦","商务大厦","商务广场","创园","创意","中心","营销中心"]
for(def key : fiters){
if(row['D'].toString().contains(key)){
if(row['D']=="广场"){
}
row['L'] = "名称关键字[添加]"
break;
}
}
}
if(!row['L'] && row['J']){
if(row['J'].toString().contains("园区") || row['J'].toString().trim()=="纯写字楼" || row['J'].toString().trim()=="标准写字楼"){
row['L'] = "类型[添加]"
}
if(!row['L'] && row['J'].toString().trim()=="纯写字楼 标准写字楼" || row['J'].toString().trim()=="商务中心" || row['J'].toString().trim()=="商务中心 标准写字楼"){
row['L'] = "类型[添加]"
}
}
if(!row['L'] && row['J'] && row['D']){
if(row['J'].toString().contains("商务写字楼") && !row['D'].toString().contains("公寓")){
row['L'] = "类型[添加]"
}
}
if(!row['L'] && row['J'] && row['D']){
if(row['J'].toString().contains("纯写字楼")){
row['L'] = "类型[添加]"
}
}
})
}
def addressFiter(filePath){
def keyMap = [:]
ExcelUtils.modify(filePath, { row ->
if(!row['L'] && row['F']){
def city = row['B']
def region = row['C']
def name = ""
if(row['K']){
name = row['K']
}else{
name = row['D']
}
def address = row['F']
def key = city+"##"+region+"##"+address
def keys = keyMap.keySet()
if(keys.contains(key)){
def values = keyMap.get(key)
if(values){
for(def n : values){
def score = CosineSimilarAlgorithm.getSimilarityRatio(name, n)
if(score>=0.8){
row['L'] = "地址去重"
break;
}
println address +" "+ name+" "+n +" "+score
}
}
}else{
def values = keyMap.get(key)
if(!values){
values = []
keyMap.put(key, values)
}
values << name
}
}
});
}
def standardName(filePath){
def index = 0
ExcelUtils.modify(filePath, { row ->
index++
if(!row['K'] && row['D']){
def name = row['D']
def newName = name.replaceAll("-|·|(|)|//|\\?|“|”","").replaceAll("\\w+幢\\w+座","").replaceAll(" ","").replaceAll("\\.","").replaceAll("丨","")
newName = newName.replaceAll("-?\\w+号商业楼","").replaceAll("\\?","")
newName = newName.replaceAll("\\w+楼\\w+室","")
newName = newName.replaceAll("\\w+号\\w+(座|幢)","")
newName = newName.replaceAll("(一|二|三|四|五|六|七|八|九|十)号楼(一|二|三|四|五|六|七|八|九|十)单元","")
newName = newName.replaceAll("(一|二|三|四|五|六|七|八|九|十|十一)?幢?(一|二|三|四|五|六|七|八|九|十|东|南|西|北)(塔楼|楼)","")
newName = newName.replaceAll("-?(第)?\\w+(号写字楼|号楼|号大楼|楼|座|栋|南楼|北楼|东楼|西楼|区|单元)","")
newName = newName.replaceAll("(一|二|三|四|五|六|七|八|九|十|壹|贰|叁|肆|伍|陆|柒|捌|玖|拾)栋","")
newName = newName.replaceAll('(东|南|西|北)座$',"")
newName = newName.replaceAll("1期","一期").replaceAll("2期","二期").replaceAll("3期","三期").replaceAll("4期","四期").replaceAll("5期","五期").replaceAll("6期","六期").replaceAll("7期","七期").replaceAll("8期","八期").replaceAll("9期","九期").replaceAll("10期","十期").replaceAll("1-5期","一-五期").replaceAll("5-6期","六-七期")
newName = newName.toUpperCase().replaceAll("(装修中)","").replaceAll("\\(\\)","")
if(newName){
def md = DataUtil.match(newName, Pattern.compile("^[0-9|a-z|A-Z|一|二|三|四|五|六|七|八|九|十|零|壹|贰|叁|肆|伍|陆|柒|捌|玖|拾|东|南|西|北|中]{0,1}[写字|办公|楼|座|区|栋|组|幢|0-9|东|南|西|北|中|号]?[0-9|a-z|A-Z|一|二|三|四|五|六|七|八|九|十|零|壹|贰|叁|肆|伍|陆|柒|捌|玖|拾|东|南|西|北|中|办公|写字]?[楼|座|区|栋|组|幢|0-9|东|南|西|北|中]\$"))
if(md){
newName = ''
}
}
row['K'] = newName
}
})
}
def addPropertyType2(runCity){
def map = [:]
def datas = ExcelUtils.read("D:\\数据\\写字楼\\6城未匹配写字楼.xlsx",0,1)
if(datas){
for(def d : datas){
def key = d['B']+"##"+d['C']+"##"+d['D']
def list = map.get(key)
if(!list){
list = []
map.put(key, list)
}
if(d['M'] && !list.contains(d['M'])){
list << d['M']
}
if(d['U'] && !list.contains(d['U'])){
list << d['U']
}
}
}
def index = 0
ExcelUtils.multiThreadingModify("D:\\数据\\写字楼\\6城未匹配上的写字楼.xlsx", { row ->
index++
def city = row['B']
def region = row['C']
def name = row['D']
def types = map.get(city+"##"+region+"##"+name)
if(types){
row['J'] = types.join(" ")
}
})
}
def addPropertyType(){
def index = 0
ExcelUtils.modify("D:\\数据\\写字楼\\未匹配写字楼.xlsx", { row ->
index++
def city = row['B']
def region = row['C']
def name = row['D']
def types = findDatasByDB(city, region, name)
if(types){
row['J'] = types.join(" ")
}
println index
})
}
def findDatasByDB(city, region, name){
def sql = "select * from office where city='${city}' and region='${region}' and name='${name}'"
def types = []
sqlInstance.eachRow(sql, {r->
if(r.property_type && !types.contains(r.property_type)){
types << r.property_type
}
})
return types
}
def run(filepath){
def index = 0
ExcelUtils.multiThreadingModify(filepath,{row->
index++
def city = row['B']
def region = row['C']
def name = row['D']
def address = row['I']
if(city ){
def jsonObject = OpenApiClient.addressMatch(city, name, "office", false, region, null)
// if(jsonObject && jsonObject.precise == -1){
// jsonObject = OpenApiClient.addressMatch(city, address, "office", false, region, name)
// }
if (jsonObject != null && jsonObject.precise != -1) {
row['J'] = jsonObject.get("id")
row['K'] = jsonObject.get("city")
row['L'] = jsonObject.get("district")
row['M'] = jsonObject.get("name")
row['N'] = jsonObject.get("credit")
row['O'] = jsonObject.get("propertyType")
}
}
println index
})
}
def isStandardRoad(def s){
def pattern = Pattern.compile("[路|街|大道|巷]\\d+(号|弄)?");
def matcher = pattern.matcher(s)
if(matcher.find()){
return true;
}
if(s.toString().endsWith("路")||s.toString().endsWith("街")){
return true;
}
return false
}
def findPattern(def address, def regex) {
Pattern pattern = Pattern.compile(regex);
def matcher = pattern.matcher(address)
if (matcher.find()) {
return true
}
return false;
}
def updateFlagToDB(filePath){
def datas = ExcelUtils.read(filePath,0,1)
def total = datas.size()
println total
def index = 0
def rets = []
for(def d : datas){
def sql = "alter table office update option='${d['L']}', format_name='${d['K']}' where city='${d['B']}' and region='${d['C']}' and name='${d['D']}';"
index++
rets << sql
//sqlInstance.executeUpdate(sql)
//println index+"/"+ total
println sql
}
def filePath1 = "d:\\Data1.txt"
File file = new File(filePath1)
def s = new StringBuffer()
for(def r : rets){
s.append(r+"\n")
}
file.write(s.toString())
}
def updateOption(city, region, name, source, flag){
def sql = "alter table office update region_fence='${flag}' where city='${city}' and region='${region}' and name='${name}' and source='${source}';"
sqlInstance.executeUpdate(sql)
}
def batchUpdate(rets){
// 初始化驱动
Class.forName("ru.yandex.clickhouse.ClickHouseDriver");
// url
String url = "jdbc:clickhouse://192.168.0.216:8123/etl";
// 用户名密码
String user = "goojia";
String password = "goojia123456";
// 登录
Connection connection = DriverManager.getConnection(url, user, password);
Statement stmt = connection.createStatement();
def count = 0
def sql = "alter table office update region_fence=? where city=? and region=? and name=? and source=?;"
PreparedStatement pstmt = connection.prepareStatement(sql)
for(def d : rets){
count++
pstmt.setString(1, d.flag)
pstmt.setString(2, d.city)
pstmt.setString(3, d.region)
pstmt.setString(4, d.name)
pstmt.setString(5, d.source)
println count+" "+d.city+" "+d.name
pstmt.addBatch()
if(count % 1 ==0) {
try {
pstmt.executeBatch()
} catch (Exception e) {
e.printStackTrace()
}
}
}
pstmt.executeBatch()
}
def updateFlagToDB2(filePath){
// 初始化驱动
Class.forName("ru.yandex.clickhouse.ClickHouseDriver");
// url
String url = "jdbc:clickhouse://192.168.0.216:8123/etl";
// 用户名密码
String user = "goojia";
String password = "goojia123456";
// 登录
Connection connection = DriverManager.getConnection(url, user, password);
Statement stmt = connection.createStatement();
def count = 0
def datas = ExcelUtils.read(filePath,0,1)
def sql = "alter table office update option=?, format_name=? where city=? and region=? and name=?;"
PreparedStatement pstmt = connection.prepareStatement(sql)
for(def d : datas){
if(d['B']){
count++
pstmt.setString(1, d['L'])
pstmt.setString(2, d['K'])
pstmt.setString(3, d['B'])
pstmt.setString(4, d['C'])
pstmt.setString(5, d['D'])
println count+" "+d['L']+" "+d['K']+" "+d['B']+" "+d['C']+" "+d['D']
pstmt.addBatch()
if(count % 100 ==0) {
pstmt.executeBatch()
}
}
}
pstmt.executeBatch()
}
def checkRegion(){
def citys = ["北京","广州","重庆","天津","成都","南京"]//"上海","深圳",
for(def city : citys){
def regionPointsMap = findRegionRange(city)
def addDatas = findAddDatasByClickhouse(city)
println "需处理的区域围栏:"+addDatas.size()
def index = 0
def rets = []
for(def data : addDatas){
index ++
if(data.lng){
def flag = isInArea(data.lng.toString().toDouble(), data.lat.toString().toDouble(), regionPointsMap.get(data.region))
def mark = flag?'T':'F'
// rets << ["city":data.city, "region":data.region, "name":data.name, "source":data.source, "flag":mark]
updateOption(data.city, data.region, data.name, data.source, mark)
println index+" "+data.region + " "+data.name+" "+ flag
}
}
// batchUpdate(rets)
}
}
def findAddDatasByClickhouse(city){
def sql = "select city,region, name,option,lng,lat,source from office where city='${city}' and option like '%添加%'"
def datas = []
sqlInstance.eachRow(sql, {r->
datas << ["city":r.city,"region":r.region,"name":r.name, "lat":r.lat, "lng":r.lng, "option":r.option,"source":r.source]
})
return datas
}
def findRegionRange(city){
def q = new BasicDBObject()
q.put("city",city)
def dbcursor = POLYLINECOLL.find(q)
def regionMap = [:]
for(def d : dbcursor){
def region = RegionData.formatRegion(city,d.region)
regionMap.put(region, d.polyline)
}
return regionMap
}
def isInArea(lng, lat, points){
List<Point> pointList = InsidePolygon.createPoint2(points);
def flag = InsidePolygon.isPtInPoly(lng, lat, pointList)
return flag;
}
}
@@ -0,0 +1,94 @@
package com.fangjia.script.gj.district
import com.fangjia.script.commData.CommonDatautils
import com.fangjia.script.util.DateUtils
import com.fangjia.script.util.ElasticUtils
import com.fangjia.script.util.ExcelUtils
import com.fangjia.script.util.MongoUtils
import com.mongodb.BasicDBObject
import com.mongodb.DBCollection
import java.util.concurrent.CopyOnWriteArrayList
import java.util.concurrent.CountDownLatch
import java.util.concurrent.ExecutorService
import java.util.concurrent.Executors
import java.util.concurrent.atomic.AtomicLong
class priceRank {
public static final DBCollection DISTRICT_ANALY_DATA_COLL = MongoUtils.getCollectionByName("fangjia_stat", "district_analy_data", "mongo.db.fangjia.com")
public static ExecutorService fixedThreadPool = Executors.newFixedThreadPool(10)
static main(args) {
def task = new priceRank()
task.run()
}
def run(){
def dists = CommonDatautils.findAllDistrictByCity("上海","district", ["city","region","name"])
//def dists = CommonDatautils.findDistrictByCityAndRegions("上海","district", ["浦东"], ["city","region","name"])
def rets = createCityDatas(dists)
for(def r : rets){
println r
}
ExcelUtils.write("d:\\数据\\浦东小区排名.xlsx", rets, "测试")
}
def createCityDatas(def dists){
def rets = new CopyOnWriteArrayList()
def totalCount = new AtomicLong()
final CountDownLatch latch = new CountDownLatch(dists.size())
for(def i=0;i<dists.size();i++){
final def d = dists[i]
fixedThreadPool.execute(new Runnable() {
void run() {
try{
totalCount.addAndGet(1)
def ret = []
def priceDbo = CommonDatautils.queryDistrictPrice(d.city, d.region, d.name, DateUtils.parseFromTightByPattern('2023-03-19','yyyy-MM-dd'))
def rankDbo = com.fangjia.script.gj.OpenApiUtils.searchDistrictRank(d.city, d.region, d.name)//findDistrictRank(d.city, d.region, d.name)
ret << d.city
ret << d.region
ret << d.name
if(priceDbo){
ret << priceDbo.avg_price
}else{
ret << ""
}
if(rankDbo){
ret << rankDbo.relativeRank
ret << rankDbo.regionRelativeRank
}else{
ret << ""
ret << ""
}
rets << ret
} catch (Exception e) {
e.printStackTrace()
} finally {
latch.countDown()
}
}
});
}
latch.await()
return rets;
}
def findDistrictRank(city, region, name){
def q = new BasicDBObject()
q.put("city", city)
q.put("region", region)
q.put("district_name", name)
def dbo = DISTRICT_ANALY_DATA_COLL.findOne(q)
return dbo
}
}
@@ -474,11 +474,11 @@ public class LianjiaCrawlByChrome {
def cityDoc = Jsoup.parse(driver.getPageSource());
def cityEles = JQueryUtils.select(".city_province a", cityDoc)
def cityMap = [:]
def citys= ["¸£ÖÝ"]
def citys= ["ËÕÖÝ"]
if(cityEles){
for(def e : cityEles) {
def href = e.attr("href")
if (!href.contains("fang.lianjia") ){
if (!href.contains("fang.lianjia") && citys.contains(e.text())){
cityMap.put(e.text(), href)
}
}
@@ -0,0 +1,131 @@
package com.fangjia.script.gj.poc
import com.fangjia.script.ccbevaluation.CcbCommonUtils
import com.fangjia.script.commData.CommonDatautils
import com.fangjia.script.util.ExcelUtils
import com.fangjia.script.util.MongoUtils
import com.mongodb.BasicDBObject
import com.mongodb.DBCollection
import groovy.sql.Sql
class AddPriceTest {
def pgsqlInstance = Sql.newInstance("jdbc:postgresql://192.168.0.236:5432/warehouse",
"postgres", "postgres", "org.postgresql.Driver")
static final DBCollection AVERAGE_STATISTICS = MongoUtils.getCollectionByName("fangjia", "average_statistics", "192.168.0.43")
public static final DBCollection confirm_price_date = MongoUtils.getCollectionByName("fangjia", "confirm_price_data", "mongo.db.fangjia.com")
static main(args) {
def task = new AddPriceTest();
task.run();
}
def run(){
def filePath = "D:\\数据\\招商\\招商.xlsx"
// addGXDPrice(filePath)
// addCcbPrice(filePath)
addThirdPrice(filePath)
}
def addCcbPrice(filepath){
def cityCodeDataMap = CcbCommonUtils.findCityCodeValue()
ExcelUtils.multiThreadingModify(filepath,{ d->
if(d['M']){
def cityId = cityCodeDataMap.get(d['N'])
def map = findAvgPrice(d['M'], cityId)
if(map){
d['AK'] = map.avg_price
d['AL'] = map.calc_type
d['AM'] = map.credit_value
}
}
})
}
def findAvgPrice(def commid, def cityid){
def sql = "SELECT gujia_bds_clc_avprc,gujia_bds_clmtd,gujiabds_clc_yrmo_val,gujia_bds_cfdc_dgr from t_app_p9pha_plda.avm_community_base_price_gj_h where urbn_id='${cityid}' and gujia_bds_id='${commid}' order by gujiabds_clc_yrmo_val desc limit 1"
def map = [:]
pgsqlInstance.eachRow(sql, { r ->
map.avg_price = r.gujia_bds_clc_avprc
map.type = r.gujia_bds_clmtd
map.month = r.gujiabds_clc_yrmo_val
map.credit_value = r.gujia_bds_cfdc_dgr
if(r.gujia_bds_clmtd == 1){
map.calc_type = "人工估值"
}else if(r.gujia_bds_clmtd == 2){
map.calc_type = "样本计算"
}else if(r.gujia_bds_clmtd == 3){
map.calc_type = "神经网络"
}
})
return map
}
def addThirdPrice(filepath){
ExcelUtils.multiThreadingModify(filepath, { d ->
if (d['M']) {
def dist = CommonDatautils.findDistrictById(d['M'])
if(dist){
def thirdPrice = findThirdPartyPrice(dist.city, dist.region, dist.name)
d['AN'] = thirdPrice
}
}
})
}
def findThirdPartyPrice(def city, def region, def name){
def q = new BasicDBObject()
q.put("city", city)
q.put("region", region)
q.put("name", name)
q.put("s_date", new BasicDBObject('$gte', 202212).append('$lte',202302))
def dbcursor = AVERAGE_STATISTICS.find(q).sort(new BasicDBObject("s_date", -1))
def price = null
for(def db : dbcursor){
if(!price && db.lianjia_esf_price && db.lianjia_esf_price>2000){
price = db.lianjia_esf_price
break;
}
if(!price && db.beike_esf_price && db.beike_esf_price>2000){
price = db.beike_esf_price
break
}
}
return price
}
def addGXDPrice(filepath){
ExcelUtils.multiThreadingModify(filepath, { d ->
if (d['M']) {
def dist = CommonDatautils.findDistrictById(d['M'])
if(dist){
def gxdPrice = findGXDPrice(dist.city, dist.region, dist.name)
d['AO'] = gxdPrice
}
}
})
}
def findGXDPrice(def city, region, name){
def q = new BasicDBObject()
q.put("city", city)
q.put("region", region)
q.put("district_name", name)
q.put("source", "GXD")
def dbcursor = confirm_price_date.find(q).sort(new BasicDBObject("c_date", -1)).limit(1)
def price = null
for(def d : dbcursor){
price = d.price
}
return price
}
}
@@ -0,0 +1,84 @@
package com.fangjia.script.gj.poc
import com.fangjia.script.commData.CommonDatautils
import com.fangjia.script.util.ElasticUtils
import com.fangjia.script.util.ExcelUtils
import org.elasticsearch.index.query.BoolQueryBuilder
import org.elasticsearch.index.query.QueryBuilder
import org.elasticsearch.index.query.QueryBuilders
class RentPrice {
static main(args) {
def task = new RentPrice();
task.run("D:\\数据\\招商\\楼盘POC测试样例地址.xlsx");
}
def run(filepath){
def index = 0
ExcelUtils.multiThreadingModify(filepath, { d ->
index++
if(d['M']){
def dist = CommonDatautils.findDistrictById(d['M'])
if(dist){
d['AZ'] = findHouses(dist.city, dist.region, "rent", 20221201,20230330, dist.name, dist.alias)
}
println index + " "+ d['AZ']
}
})
}
def findHouses(def city, def region, def cat, def startDate, def endDate, def name, def alias){
QueryBuilder date_range = QueryBuilders.rangeQuery("p_date").from(startDate).to(endDate).includeLower(true).includeUpper(false);
QueryBuilder area_range = QueryBuilders.rangeQuery("area").from(20).to(500).includeLower(true).includeUpper(false);
QueryBuilder queryBuilder = QueryBuilders.boolQuery().must(QueryBuilders.termQuery("city", city)).must(QueryBuilders.termQuery("region", region)).must(QueryBuilders.termQuery("cat", cat))
.must(date_range).must(area_range)
if(!alias){
alias = []
}
if(!alias.contains(name)){
alias.add(name)
}
if(name.contains("弄小区")){
def newName = name.replace("弄小区","弄")
if(!alias.contains(newName)){
alias << newName
}
}
if(alias && alias.size()>0){
BoolQueryBuilder inBuilder = QueryBuilders.boolQuery();
for(def s : alias){
inBuilder.should(QueryBuilders.matchQuery("district_name", s));
}
queryBuilder.must(inBuilder)
}
// BoolQueryBuilder inBuilder = QueryBuilders.boolQuery();
// inBuilder.should(QueryBuilders.matchQuery("root", "lianjia.com"));
// inBuilder.should(QueryBuilders.matchQuery("root", "ke.com"));
// queryBuilder.must(inBuilder)
def houses = ElasticUtils.executeSimpleQuery("192.168.0.206", "seawater-20*", queryBuilder);
def prices = []
println city + " "+name+" "+houses.size()
for(def d : houses){
prices << d.avg_price
}
if(prices && prices.size()>=3){
return (int)(prices.sum()/prices.size())
}
return null
}
}
@@ -32,8 +32,9 @@ import java.util.regex.Pattern
@BatchOwner(Watcher.GaoJuan)
class CZDataBatch extends BaseBatch{
public static def dbUrl = "mongodb://developer:G00IDCDEV12385@mongo.db.fangjia.com:28017";
def fields = ["city","region","name", "address", "cat","lat2","lng2","alias","property_life","estate_type2","build_date","build_structure","build_type","finish_building_date","live_date","open_date","virescence_percent","cubage_percent","estate_company","estate_charge","car_site", "build_type"]
public static DBCollection DIST_COLL = MongoUtils.getCollectionByName2("business", "jn_bank_district", dbUrl)
//final def czIdMap = readCZDistrict("d:\\常州数据结果\\原始数据\\常州江南银行住宅编号.xls");
//final def czShopMap = readCZShop("d:\\常州数据结果\\原始数据\\常州江南银行商铺--更新ing(8).xls");
@@ -31,7 +31,13 @@ class FzDataUtils {
map.cat = "district";
// 楼盘名称
map.name = dist.name
map.alias = dist.alias
def alias = dist.alias
if(alias){
if(alias.size()>5){
alias = alias[0..4]
}
map.alias = alias
}
map.build_date = getBuildDate(dist);
//附属属性
map.build_type = dist.build_type
@@ -27,7 +27,7 @@ class SynchDistrictPrice extends BaseBatch{
// "吉屋":"吉屋","365淘房":"365淘房","我爱我家":"我爱我家","诸葛找房APP":"诸葛找房","贝壳":"贝壳找房","链家":"链家","Q房":"Q房","麦田":"麦田",
// "中原地产":"中原地产","安居客小程序":"安居客","搜房":"搜房","乐有家":"乐有家","C21":"C21","城市房产":"城市房产","兔博士PC端":"兔博士"
// def esSources = ["我爱我家":"我爱我家","兔博士PC端":"兔博士","吉屋":"吉屋","贝壳找房":"贝壳找房","乐有家":"乐有家","365淘房":"365淘房","诸葛找房APP":"诸葛找房","链家":"链家","Q房":"Q房","麦田":"麦田","中原地产":"中原地产","安居客小程序":"安居客","搜房":"搜房","C21":"C21","城市房产":"城市房产"]
def esSources = ["ËÑ·¿":"ËÑ·¿"]
def esSources = ["我爱我家":"我爱我家","兔博士PC端":"兔博士","吉屋":"吉屋","贝壳找房":"贝壳找房","乐有家":"乐有家","365淘房":"365淘房","诸葛找房APP":"诸葛找房","链家":"链家","Q房":"Q房","麦田":"麦田","中原地产":"中原地产","安居客小程序":"安居客","搜房":"搜房","C21":"C21","城市房产":"城市房产"]
static main(args) {
@@ -43,7 +43,7 @@ class SynchDistrictPrice extends BaseBatch{
println "starting......"
def mdate = DateUtils.formatDateByPattern(DateUtils.getFirstDayOfMonth(new Date(), -1), "yyyy-MM-dd")
def citys = ["Á¹É½ÖÝ"]//CommonUtils.findAllCity()
def citys = CommonUtils.findAllCity()
esSources.each{esSource, mgSource->
for(def city : citys){
def rets = findAllEsData(city, esSource, mgSource, mdate)
@@ -11,8 +11,8 @@ import org.bson.Document
import static com.mongodb.client.model.Filters.*
MongoCollection<Document> OPEN_URI_LOG = Mongo3Utils.getDbCollection(Constants.SEAWATER_MONGO_URI, "business", "open_uri_log")
def startDate = DateUtil.parseDate("20230101", "yyyyMMdd")
def endDate = DateUtil.parseDate("20230201", "yyyyMMdd")
def startDate = DateUtil.parseDate("20230301", "yyyyMMdd")
def endDate = DateUtil.parseDate("20230401", "yyyyMMdd")
Calendar calendar = Calendar.getInstance()
calendar.setTime(startDate)
def count = 0
@@ -38,6 +38,6 @@ while (startDate.before(endDate)) {
startDate = nextDate
}
ExcelUtils.write("D:\\数据\\东莞\\东莞银行总行(不去重).xlsx", data, "202301")
ExcelUtils.write("D:\\数据\\东莞\\东莞银行总行(不去重).xlsx", data, "202303")
@@ -41,3 +41,12 @@ while (startDate.before(endDate)) {
ExcelUtils.write("D:\\亲邻数据${startDate.format('yyyyMM')}.xlsx", data, "查询日志")
//def list = []
//OPEN_URI_LOG.find(and(eq("user_id", "1007777"), eq("request_uri", "/property/avgPrice"))).each { Document doc ->
// def result = doc.res_map.result
// def item = [ "泉果", doc.request_uri, doc.c_date.format("yyyy-MM-dd HH:mm:ss"), doc.data_status, doc.code, doc.msg, JSONObject.fromObject(doc.parameter_map).toString(), result.toString()]
// list << item
//}
//ExcelUtils.write("D:\\泉果接口查价.xlsx", list, "查询日志")
@@ -1,9 +1,6 @@
package com.fangjia.service.datastore;
import com.fangjia.core.util.BeanUtils;
import com.fangjia.core.util.DataUtil;
import com.fangjia.core.util.DateUtil;
import com.fangjia.core.util.HouseValidator;
import com.fangjia.core.util.*;
import com.fangjia.dal.QueryParam;
import com.fangjia.dal.SortParam;
import com.fangjia.dal.SrQuery;
@@ -51,7 +48,7 @@ public class CzbankSampleServiceImpl implements CzbankSampleService{
private static String[] HOUSE_FIELDS = new String[]{"city", "region", "districtName", "totalPrice", "avgPrice",
"area", "fitment", "direction", "floor", "height", "publishDate", "address", "estateType"};
public static String[] TAGS =new String[]{"独栋", "联排", "叠加", "双拼", "花园面积", "泳池", "别墅", "带花园", "洋房", "叠拼", "独院", "联体", "微墅", "大平墅"};
private DealPriceDao dealPriceDao;
private HouseDao houseDao;
@@ -191,7 +188,8 @@ public class CzbankSampleServiceImpl implements CzbankSampleService{
}
List<SampleWrapper> querySamples= new ArrayList<SampleWrapper>();
List<SampleWrapper> samples = findSampleByDistrict(district.getCity(), district.getRegion(), district.getName(), district.getAlias(), district.getMasterDistrictNname(), district.getEstateType2(),queryBean.getPropertyTypeCode(), queryBean.getUpdateDate(), districtStat);
scoreForSample(samples, target);
// scoreForSample(samples, target);
sortForSample(samples, target);
for(SampleWrapper sample : samples){
sample.setProperty(queryBean.getProperty());
}
@@ -205,7 +203,8 @@ public class CzbankSampleServiceImpl implements CzbankSampleService{
for(SampleWrapper sample : nearlySample){
sample.setProperty(d);
}
scoreForSample(nearlySample, target);
// scoreForSample(nearlySample, target);
sortForSample(samples, target);
querySamples.addAll(nearlySample);
if(querySamples.size() > max){
break;
@@ -481,6 +480,56 @@ public class CzbankSampleServiceImpl implements CzbankSampleService{
return samples;
}
private List<SampleWrapper> sortForSample(List<SampleWrapper> samples, final SampleWrapper targetSample){
if(samples.isEmpty()){
return samples;
}
// if(samples!=null && samples.size() < max){
// return samples;
// }
Collections.sort(samples, new Comparator<SampleWrapper>() {
public int compare(SampleWrapper o1, SampleWrapper o2) {
Double d1 = Math.abs(o1.getStrctureArea() - targetSample.getStrctureArea());
Double d2 = Math.abs(o2.getStrctureArea() - targetSample.getStrctureArea());
// return (int) (d1 - d2);
return d1.compareTo(d2);
}
});
List<Integer> prices = new ArrayList<Integer>();
for(SampleWrapper sample : samples){
if(!prices.contains(sample.getUnitPrice())){
prices.add(sample.getUnitPrice());
if(prices.size()>=10){
break;
}
}
}
final Integer midPrice = (int)median(prices);
Collections.sort(samples, new Comparator<SampleWrapper>() {
public int compare(SampleWrapper o1, SampleWrapper o2) {
Integer d1 = Math.abs(o1.getUnitPrice() - midPrice);
Integer d2 = Math.abs(o2.getUnitPrice() - midPrice);
return d1.compareTo(d2);
}
});
return samples;
}
private static double median(List<Integer> total) {
double j = 0;
Collections.sort(total);
int size = total.size();
if(size % 2 == 1){
j = total.get((size-1)/2);
}else {
j = (total.get(size/2-1) + total.get(size/2) + 0.0)/2;
}
return j;
}
/**
* ²éÕÒÐ¡ÇøÑù±¾
* @param city
@@ -514,8 +563,8 @@ public class CzbankSampleServiceImpl implements CzbankSampleService{
houseQuery.add(new QueryParam("region", region ));
if(districtStat != null && districtStat.getAvgPrice() > 0){
int avgPrice = districtStat.getAvgPrice();
houseQuery.add(new QueryParam("avgPrice", QueryParam.GREATER_THAN_EQUAL_OPERATOR, (int)(avgPrice * 0.85 )));
houseQuery.add(new QueryParam("avgPrice", QueryParam.LESS_THAN_EQUAL_OPERATOR, (int)(avgPrice * 1.15 )));
houseQuery.add(new QueryParam("avgPrice", QueryParam.GREATER_THAN_EQUAL_OPERATOR, (int)(avgPrice * 0.5 )));//0.85
houseQuery.add(new QueryParam("avgPrice", QueryParam.LESS_THAN_EQUAL_OPERATOR, (int)(avgPrice * 1.5 )));//1.15
}
BooleanQuery nameQuery = new BooleanQuery();
int c = 0;
@@ -548,6 +597,21 @@ public class CzbankSampleServiceImpl implements CzbankSampleService{
int maxFloor = 0;
boolean allSampleHasHeight = true;
for(House house : houses){
if(StringUtils.isNotBlank(estateType) && estateType.equals("01")){//01:普通住宅 02:别墅
if(StringUtils.isNotBlank(house.getEstateType()) && house.getEstateType().contains("别墅")){
continue;
}
if(isVilla(house.getArea(), house.getName(), house.getHeight(), house.getRoom())){
continue;
}
}else if(StringUtils.isNotBlank(estateType) && estateType.equals("02")){
if(house.getHeight()!=null && house.getHeight()>=10){
continue;
}
if(house.getFloor()!=null && house.getFloor()>=10){
continue;
}
}
SampleWrapper sample = convertHouse2Sample(house);
if(isAvailableSample(sample)){
@@ -859,6 +923,39 @@ public class CzbankSampleServiceImpl implements CzbankSampleService{
return null;
}
/**
* 是否是别墅
* @return
*/
public boolean isVilla(Double area, String name, Integer height, Integer 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;
}
public void setDealPriceDao(DealPriceDao dealPriceDao) {
this.dealPriceDao = dealPriceDao;
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 409 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 326 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 575 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 416 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 454 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

@@ -481,32 +481,34 @@ $("a:contains(申请试用)").click(function(){
function checkApply(mid, downUrl, newId){
var workCode = getCookie("w_n");
if(!workCode || mid=="1018"){
var url = Constants.wwwUrl+"/enquire?mid="+mid+"&backUrl="+encodeURIComponent(location.href);
if(downUrl){
url = url + "&downUrl="+encodeURIComponent(downUrl)+"&resourceId="+newId;
}
window.location.href = url;
}else if(mid=="1016" && workCode.indexOf("1018")>-1){
addDownRows(newId, mid, downUrl);
}else{
if(workCode.indexOf(mid)>-1){
if(downUrl){
addDownRows(newId, mid, downUrl);
}else{
$(".mask").show();
$(".dialogBox06").show();
$(".dialogBox06 p").text("您的申请已提交,稍后会有工作人员与您联系,请耐心等待!");
}
}else{
var url = Constants.wwwUrl+"/saleLeads/doAdd?mid="+mid+"&backUrl="+encodeURIComponent(location.href);
if(downUrl){
url = url + "&downUrl="+encodeURIComponent(downUrl)+"&resourceId="+newId;
}
window.location.href = url;
}
}
var url = Constants.wwwUrl+"/enquire?mid="+mid+"&backUrl="+encodeURIComponent(location.href);
window.location.href = url;
// var workCode = getCookie("w_n");
// if(!workCode || mid=="1018"){
// var url = Constants.wwwUrl+"/enquire?mid="+mid+"&backUrl="+encodeURIComponent(location.href);
// if(downUrl){
// url = url + "&downUrl="+encodeURIComponent(downUrl)+"&resourceId="+newId;
// }
// window.location.href = url;
// }else if(mid=="1016" && workCode.indexOf("1018")>-1){
// addDownRows(newId, mid, downUrl);
// }else{
// if(workCode.indexOf(mid)>-1){
// if(downUrl){
// addDownRows(newId, mid, downUrl);
// }else{
// $(".mask").show();
// $(".dialogBox06").show();
// $(".dialogBox06 p").text("您的申请已提交,稍后会有工作人员与您联系,请耐心等待!");
// }
// }else{
// var url = Constants.wwwUrl+"/saleLeads/doAdd?mid="+mid+"&backUrl="+encodeURIComponent(location.href);
// if(downUrl){
// url = url + "&downUrl="+encodeURIComponent(downUrl)+"&resourceId="+newId;
// }
// window.location.href = url;
// }
// }
}
function addDownRows(resourceId, mid, downUrl){
@@ -214,9 +214,34 @@ select{appearance:none;-webkit-appearance:none;-moz-appearance:none;-ms-appearan
.fixedNav ul li div.fixedNav03 img{width:120px;height:120px;margin:0 auto;margin-top:5px;margin-bottom:10px;}
.fixedNav ul li div.fixedNav03 span{color:#fff;text-align:center;display:block;}
.newblank{width: 100%;height: 55px;float:left;display: none;}
.newfooter{display: none;}
@media screen and (max-width:750px){
.newblank{display: block;}
.newfooter{left:0px;z-index:999;width: 100%;height:55px;position: fixed;bottom: 0;display: block;}
.newfooter-li{width:50%;height:100%;float:left;padding-top: 5px; padding-left: 3px;}
.newfooter-li a{width: 48%;height: 80%;display: inline-block;}
.newfooter-li img{width: 100%;}
}
.fu-btn {
background: #f08300;
border-radius: 100px;
font-size: 16px;
line-height: 46px;
position: absolute;
color: #fff;
text-align: center;
}
/* 自适应 */
@media(max-width:1200px){
.header,.header01,.footer{width:1200px;}
.vip{margin-right:20px;}
.footer_left {padding-right: 25px;padding-left: 25px;}
}
@@ -385,6 +385,7 @@
.banner,.columnBox,.adBox,.mask{width:1200px;}
.searchBox{margin-left:-250px;}
.prompt{margin-left:-295px;}
.columnBox{padding-left: 50px;padding-right: 50px;}
}
@@ -36,7 +36,7 @@
.option > div.agreement span a:hover{color:#f08300;}
.option > div.agreement .error{left:0;}
.user_btn{width:420px;height:40px;background:#f08300;text-align:center;line-height:40px;color:#fff;display:block;cursor:pointer;}
.user_btn{width:420px;height:40px;background:#f08300;text-align:center;line-height:40px;color:#fff;display:block;cursor:pointer;margin-top: 70px;}
.user_btn:hover{background:#df7900;}
.line{width:420px;height:1px;background:#e5e5e5;margin-top:40px;position:relative;}
.line span{position:absolute;top:-8px;left:50%;margin-left:-31px;display:block;background:#fff;padding:0 25px;font-size:12px;color:#999;}