Merge branch 'master' of http://gitlab.fangjia.com/dev0/main
This commit is contained in:
+10
-7
@@ -968,9 +968,6 @@ public class AverageStatisticsController {
|
||||
*/
|
||||
public Object baseAction(AverageStatisticsModel model){
|
||||
Pager pager = model.getPager(25);
|
||||
if (StringUtils.isBlank(model.getCityDisplay())) {
|
||||
return model;
|
||||
}
|
||||
pager.setTotalRows(avgBaseDao.count(model.getCityDisplay(), model.getRegion(), model.getName(),null, model.getStartDate(), model.getEndDate()));
|
||||
model.setBaseList(avgBaseDao.findAll(model.getCityDisplay(), model.getRegion(), model.getName(),null, model.getStartDate(), model.getEndDate(), pager));
|
||||
return model;
|
||||
@@ -987,6 +984,8 @@ public class AverageStatisticsController {
|
||||
list.add("是否加入指导价");
|
||||
list.add("调查时间");
|
||||
list.add("调查人");
|
||||
list.add("来源");
|
||||
list.add("来源小区名");
|
||||
data.add(list);
|
||||
HSSFWorkbook workbook = new HSSFWorkbook();
|
||||
HSSFSheet sheet = workbook.createSheet("导入模板");
|
||||
@@ -994,10 +993,12 @@ public class AverageStatisticsController {
|
||||
HSSFCell cell0 = row.createCell(0);
|
||||
HSSFCell cell1 = row.createCell(1);
|
||||
HSSFCell cell2 = row.createCell(2);
|
||||
HSSFCell cell3= row.createCell(3);
|
||||
HSSFCell cell4= row.createCell(4);
|
||||
HSSFCell cell5= row.createCell(5);
|
||||
HSSFCell cell6= row.createCell(6);
|
||||
HSSFCell cell3 = row.createCell(3);
|
||||
HSSFCell cell4 = row.createCell(4);
|
||||
HSSFCell cell5 = row.createCell(5);
|
||||
HSSFCell cell6 = row.createCell(6);
|
||||
HSSFCell cell7 = row.createCell(7);
|
||||
HSSFCell cell8 = row.createCell(8);
|
||||
cell0.setCellValue("城市");
|
||||
cell1.setCellValue("区域");
|
||||
cell2.setCellValue("小区名");
|
||||
@@ -1005,6 +1006,8 @@ public class AverageStatisticsController {
|
||||
cell4.setCellValue("是否加入指导价");
|
||||
cell5.setCellValue("调查时间");
|
||||
cell6.setCellValue("调查人");
|
||||
cell7.setCellValue("来源");
|
||||
cell8.setCellValue("来源小区名");
|
||||
HttpServletResponse response = ActionContext.getContext().getResponse();
|
||||
response.setCharacterEncoding("UTF-8");
|
||||
response.setContentType("application/x-download;charset=UTF-8");
|
||||
|
||||
+60
-19
@@ -1,6 +1,7 @@
|
||||
package com.fangjia.bkoff.util;
|
||||
|
||||
import com.fangjia.core.Constants;
|
||||
import com.fangjia.core.RegionData;
|
||||
import com.fangjia.core.util.DataUtil;
|
||||
import com.fangjia.core.util.DateUtil;
|
||||
import com.fangjia.core.util.HttpRequest;
|
||||
@@ -8,11 +9,13 @@ import com.fangjia.core.util.HttpRequestException;
|
||||
import com.fangjia.dal.QueryParam;
|
||||
import com.fangjia.dal.common.DistrictKey;
|
||||
import com.fangjia.dal.mongo.dao.AvgBaseDao;
|
||||
import com.fangjia.dal.mongo.model.AverageStatistics;
|
||||
import com.fangjia.dal.mongo.model.AvgBase;
|
||||
import com.fangjia.dal.mongo.model.bkoff.GuidingPrice;
|
||||
import com.fangjia.dal.seaweed.model.District;
|
||||
import com.fangjia.service.datastore.DistrictService;
|
||||
import com.fangjia.service.mongo.bkoff.GuidingPriceService;
|
||||
import com.fangjia.service.mongo.fangjia.AverageStatisticsService;
|
||||
import net.sf.json.JSONObject;
|
||||
import org.apache.commons.fileupload.FileItem;
|
||||
import org.apache.commons.fileupload.FileItemFactory;
|
||||
@@ -47,12 +50,12 @@ import java.util.*;
|
||||
|
||||
public class BaseAvgImportServlet extends HttpServlet {
|
||||
|
||||
private static final String[] columns = { "城市", "区域", "小区名", "价格", "是否加入指导价", "调查时间", "调查人" };
|
||||
private static final String[] columns = { "城市", "区域", "小区名", "价格", "是否加入指导价", "调查时间", "调查人" , "来源", "来源小区名"};
|
||||
|
||||
private AvgBaseDao avgBaseDao;
|
||||
private GuidingPriceService guidingPriceService;
|
||||
private DistrictService districtService;
|
||||
|
||||
private AverageStatisticsService averageStatisticsService;
|
||||
|
||||
@Override
|
||||
public void init(ServletConfig config) throws ServletException {
|
||||
@@ -62,6 +65,7 @@ public class BaseAvgImportServlet extends HttpServlet {
|
||||
avgBaseDao = (AvgBaseDao) context.getBean("avgBaseDao");
|
||||
guidingPriceService = (GuidingPriceService) context.getBean("guidingPriceService");
|
||||
districtService = (DistrictService) context.getBean("districtService");
|
||||
averageStatisticsService = (AverageStatisticsService) context.getBean("averageStatisticsService");
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
@@ -108,10 +112,6 @@ public class BaseAvgImportServlet extends HttpServlet {
|
||||
long version = new Date().getTime();
|
||||
infoMap = checkUploadData(sheet, name, version, infoMap, realName);
|
||||
infoMap.put("version", version);
|
||||
// String info = map.get("info");
|
||||
// if(StringUtils.isNotBlank(info) && info.equals("success")){
|
||||
// new CookieContext("fangjia.com").saveCookie(response, "upload_version", version);
|
||||
// }
|
||||
String json = JSONObject.fromObject(infoMap).toString();
|
||||
if (infoMap.containsKey("success")) {
|
||||
response.getWriter().write(infoMap.get("success").toString());
|
||||
@@ -174,7 +174,7 @@ public class BaseAvgImportServlet extends HttpServlet {
|
||||
}
|
||||
|
||||
private Map<String, Object> checkUploadData(Sheet sheet, String name, long version, Map<String, Object> infoMap,
|
||||
String realName) {
|
||||
String realName) {
|
||||
int totalNum = sheet.getLastRowNum();
|
||||
System.out.println("上传文件共:" + totalNum + "个");
|
||||
if (totalNum > 20000) {
|
||||
@@ -371,7 +371,8 @@ public class BaseAvgImportServlet extends HttpServlet {
|
||||
} else if (key.equals("价格") && map.get(key) != null) {
|
||||
String val = formatNumer(map.get(key));
|
||||
if (StringUtils.isNotBlank(val)) {
|
||||
int x = Integer.parseInt(val);
|
||||
double dd = Double.parseDouble(val);
|
||||
int x = (int) dd;
|
||||
avgBase.setPrice(x);
|
||||
}
|
||||
|
||||
@@ -385,23 +386,63 @@ public class BaseAvgImportServlet extends HttpServlet {
|
||||
Date applyDate = (DateUtil.parseDate(map.get(key), "yyyy-MM-dd"));
|
||||
avgBase.setCreationDate(applyDate == null ? curDate : applyDate);
|
||||
} else if (key.equals("调查人") && map.get(key) != null) {
|
||||
|
||||
avgBase.setUserName(map.get(key));
|
||||
} else if (key.equals("来源") && map.get(key) !=null){
|
||||
avgBase.setSource(map.get(key).replaceAll("\\s", ""));
|
||||
} else if (key.equals("来源小区名") && map.get(key) != null){
|
||||
avgBase.setSourceCommName(map.get(key).replaceAll("\\s", ""));
|
||||
}
|
||||
avgBase.setRegion(RegionData.formatRegion(avgBase.getCity(), avgBase.getRegion()));
|
||||
avgBase.setCategory("district");
|
||||
|
||||
}
|
||||
if (avgBase.getIsGuidancePrice() == 1) {
|
||||
|
||||
DistrictKey districtKey = new DistrictKey(avgBase.getCity(), avgBase.getRegion(),
|
||||
District dis = null;
|
||||
if(StringUtils.isNotBlank(avgBase.getSourceCommName()) && !avgBase.getSourceCommName().equals(avgBase.getDistrictName())){
|
||||
DistrictKey districtKey = new DistrictKey(avgBase.getCity(), RegionData.formatRegion(avgBase.getCity(), avgBase.getRegion()),
|
||||
avgBase.getDistrictName());
|
||||
District dis = districtService.findOneByKey(districtKey, "district");
|
||||
GuidingPrice price = guidingPriceService.findByBizKey(avgBase.getCity(), avgBase.getRegion(),
|
||||
dis = districtService.findOneByKey(districtKey, "district");
|
||||
if(dis.getAlias() == null){
|
||||
dis.setAlias(Collections.singletonList(avgBase.getSourceCommName()));
|
||||
}else if(!dis.getAlias().contains(avgBase.getSourceCommName())){
|
||||
dis.getAlias().add(avgBase.getSourceCommName());
|
||||
}
|
||||
if(dis.getMappingAlias() == null){
|
||||
dis.setMappingAlias(Collections.singletonList(avgBase.getSourceCommName()));
|
||||
}else if(!dis.getMappingAlias().contains(avgBase.getSourceCommName())){
|
||||
dis.getMappingAlias().add(avgBase.getSourceCommName());
|
||||
}
|
||||
districtService.save(dis);
|
||||
}
|
||||
if(StringUtils.isNotBlank(avgBase.getSource()) && avgBase.getSource().equalsIgnoreCase("GXD")){
|
||||
AverageStatistics averageStatistics = averageStatisticsService.findSecendAverageStatictics(avgBase.getCity(), avgBase.getRegion(), avgBase.getDistrictName(), "district");
|
||||
if(averageStatistics != null){
|
||||
averageStatistics.setGxdEsfPrice(avgBase.getPrice());
|
||||
}else{
|
||||
averageStatistics = new AverageStatistics();
|
||||
averageStatistics.setGxdEsfPrice(avgBase.getPrice());
|
||||
averageStatistics.setCategory("district");
|
||||
averageStatistics.setCity(avgBase.getCity());
|
||||
averageStatistics.setRegion(avgBase.getRegion());
|
||||
averageStatistics.setName(avgBase.getDistrictName());
|
||||
if(dis != null){
|
||||
averageStatistics.setMasterDistrictName(dis.getDistrictName());
|
||||
averageStatistics.setModificationDate(new Date());
|
||||
}
|
||||
}
|
||||
averageStatisticsService.save(averageStatistics);
|
||||
}
|
||||
|
||||
if (avgBase.getIsGuidancePrice() == 1) {
|
||||
if(dis == null){
|
||||
DistrictKey districtKey = new DistrictKey(avgBase.getCity(), avgBase.getRegion(), avgBase.getDistrictName());
|
||||
dis = districtService.findOneByKey(districtKey, "district");
|
||||
}
|
||||
GuidingPrice price = guidingPriceService.findByBizKey(avgBase.getCity(), RegionData.formatRegion(avgBase.getCity(), avgBase.getRegion()),
|
||||
avgBase.getDistrictName(),avgBase.getCreationDate());
|
||||
if (price != null) {
|
||||
price.setGuidingPerson(avgBase.getUserName());
|
||||
price.setGuidingDate(avgBase.getCreationDate());
|
||||
price.setGuidingValue(avgBase.getPrice());
|
||||
price.setModifyDate(new Date());
|
||||
guidingPriceService.save(price);
|
||||
|
||||
} else {
|
||||
@@ -414,8 +455,9 @@ public class BaseAvgImportServlet extends HttpServlet {
|
||||
price.setGuidingPerson(avgBase.getUserName());
|
||||
price.setGuidingDate(avgBase.getCreationDate());
|
||||
price.setGuidingValue(avgBase.getPrice());
|
||||
price.setEstateType(dis.getEstateType2().indexOf("别墅") > -1 ? "别墅" : "普通住宅");
|
||||
price.setEstateType(dis.getEstateType2().contains("别墅") ? "别墅" : "普通住宅");
|
||||
price.setCat("district");
|
||||
price.setModifyDate(new Date());
|
||||
guidingPriceService.save(price);
|
||||
HttpRequest request = new HttpRequest();
|
||||
HashMap<String, String> params = new HashMap<String, String>();
|
||||
@@ -430,11 +472,10 @@ public class BaseAvgImportServlet extends HttpServlet {
|
||||
} catch (HttpRequestException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}else{
|
||||
System.out.println("小区不存在"+ avgBase.getDistrictName());
|
||||
}
|
||||
}
|
||||
|
||||
if(dis !=null) {
|
||||
}
|
||||
}
|
||||
avgBases.add(avgBase);
|
||||
|
||||
|
||||
@@ -66,6 +66,8 @@
|
||||
<th style="width:10%;">是否加入指导价</th>
|
||||
<th style="width:10%;">调查时间</th>
|
||||
<th style="width:10%;">调查人</th>
|
||||
<th style="width:10%;">来源</th>
|
||||
<th style="width:10%;">来源小区名</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -94,7 +96,17 @@
|
||||
<#if it.userName??>
|
||||
${it.userName}
|
||||
</#if>
|
||||
</td>
|
||||
</td>
|
||||
<td align="center">
|
||||
<#if it.source??>
|
||||
${it.source}
|
||||
</#if>
|
||||
</td>
|
||||
<td align="center">
|
||||
<#if it.sourceCommName??>
|
||||
${it.sourceCommName}
|
||||
</#if>
|
||||
</td>
|
||||
</tr>
|
||||
</#list>
|
||||
</#if>
|
||||
|
||||
@@ -254,6 +254,9 @@
|
||||
<#if (it.tsfhouseNewPrice)?? || (it.tsfhouseEsfPrice)??>
|
||||
<td colspan="2"><b>365房产</b></td>
|
||||
</#if>
|
||||
<#if (it.gxdNewPrice)?? || (it.gxdEsfPrice)??>
|
||||
<td colspan="2"><b>GXD</b></td>
|
||||
</#if>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
@@ -345,7 +348,10 @@
|
||||
<td style="width:70px;color:#0C88C7">新房</td>
|
||||
<td style="width:70px;color:#D3750A">二手房</td>
|
||||
</#if>
|
||||
|
||||
<#if (it.gxdNewPrice)?? || (it.gxdEsfPrice)??>
|
||||
<td style="width:70px;color:#0C88C7">新房</td>
|
||||
<td style="width:70px;color:#D3750A">二手房</td>
|
||||
</#if>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
@@ -430,7 +436,7 @@
|
||||
<#if (it.ganjiNewPrice)?? || (it.ganjiEsfPrice)??>
|
||||
<td style ="color:#0C88C7">${it.ganjiNewPrice!}</td>
|
||||
<td style ="color:#D3750A">${it.ganjiEsfPrice!}</td>
|
||||
</#if>
|
||||
</#if>
|
||||
<#if (it.yungujiaNewPrice)?? || (it.yungujiaEsfPrice)??>
|
||||
<td style ="color:#0C88C7">${it.yungujiaNewPrice!}</td>
|
||||
<td style ="color:#D3750A">${it.yungujiaEsfPrice!}</td>
|
||||
@@ -443,6 +449,10 @@
|
||||
<td style ="color:#0C88C7">${it.tsfhouseNewPrice!}</td>
|
||||
<td style ="color:#D3750A">${it.tsfhouseEsfPrice!}</td>
|
||||
</#if>
|
||||
<#if (it.gxdNewPrice)?? || (it.gxdEsfPrice)??>
|
||||
<td style ="color:#0C88C7">${it.gxdNewPrice!}</td>
|
||||
<td style ="color:#D3750A">${it.gxdEsfPrice!}</td>
|
||||
</#if>
|
||||
|
||||
</tr>
|
||||
</#list>
|
||||
|
||||
@@ -8,6 +8,6 @@ public interface Constants {
|
||||
String LOG_MONGO_URI = "mongodb://192.168.0.42:52002";
|
||||
String SEABIRD_MONGO_URI = "mongodb://192.168.0.74:57007";
|
||||
String SEAWATER_MONGO_URI = "mongodb://192.168.0.206:27020";
|
||||
String MSVC_FANG_JIA_DATA_SERVICE_BASE_PATH ="http://192.168.0.19:38080/FangJiaDataService";
|
||||
String MSVC_FANG_JIA_DATA_SERVICE_BASE_PATH ="http://192.168.0.100:38080/FangJiaDataService";
|
||||
|
||||
}
|
||||
|
||||
@@ -1845,7 +1845,7 @@ public class DataUtil {
|
||||
//
|
||||
// System.out.println(FourUpSixInto("258.393", 2));
|
||||
|
||||
String href = encodePicUrl("635240149c21300bba5184e1", "o", "upload");
|
||||
String href = encodePicUrl("636b1be2303c3f7093fdf7a5", "o", "upload");
|
||||
String link = "http://static.fangjia.com/stc/fs/"+href;
|
||||
System.out.println(link);
|
||||
}
|
||||
|
||||
+7
@@ -35,4 +35,11 @@ public class CompanyController {
|
||||
public Object agreeMentAction(FangjiaModel model) {
|
||||
return model;
|
||||
}
|
||||
|
||||
/**
|
||||
* 客户
|
||||
*/
|
||||
public Object cstmAction(FangjiaModel model){
|
||||
return model;
|
||||
}
|
||||
}
|
||||
|
||||
+12
@@ -18,6 +18,7 @@ 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.coresite.model.FangjiaModel;
|
||||
import net.sf.json.JSONArray;
|
||||
import net.sf.json.JSONObject;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
@@ -301,6 +302,17 @@ public class SaleLeadsController {
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 数据能力
|
||||
* @param model
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
public Object dataAbilityAction(FangjiaModel model) {
|
||||
return model;
|
||||
}
|
||||
|
||||
public Object resultAction(SaleLeadsModel model) {
|
||||
return model;
|
||||
}
|
||||
|
||||
+40
@@ -114,4 +114,44 @@ public class SolutionController {
|
||||
*/
|
||||
public Object financialAction(FangjiaModel model){return model;}
|
||||
|
||||
/**
|
||||
* 一房一价
|
||||
* @param model
|
||||
* @return
|
||||
*/
|
||||
public Object onehouseAction(FangjiaModel model){return model;}
|
||||
|
||||
|
||||
/**
|
||||
* 楼盘评级
|
||||
* @param model
|
||||
* @return
|
||||
*/
|
||||
public Object levelAction(FangjiaModel model){return model;}
|
||||
|
||||
/**
|
||||
* 地址治理
|
||||
* @param model
|
||||
* @return
|
||||
*/
|
||||
public Object addrProAction(FangjiaModel model){return model;}
|
||||
|
||||
/**
|
||||
* 网点布局
|
||||
*/
|
||||
public Object outletsAction(FangjiaModel model){return model;}
|
||||
|
||||
/**
|
||||
* 信用卡
|
||||
* @param model
|
||||
* @return
|
||||
*/
|
||||
public Object cardAction(FangjiaModel model){return model;}
|
||||
|
||||
/**
|
||||
* 地数
|
||||
* @param model
|
||||
* @return
|
||||
*/
|
||||
public Object dishuAction(FangjiaModel model){return model;}
|
||||
}
|
||||
|
||||
+3
-4
@@ -13,6 +13,7 @@ import java.util.Map;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
import com.fangjia.coresite.model.*;
|
||||
import net.sf.json.JSONObject;
|
||||
|
||||
import org.apache.commons.collections.CollectionUtils;
|
||||
@@ -30,10 +31,6 @@ import com.fangjia.core.util.SecurityUtil;
|
||||
import com.fangjia.core.util.CacheUtils.CachePolicyEnum;
|
||||
import com.fangjia.core.util.DateUtil;
|
||||
import com.fangjia.coresite.FangjiaRudder;
|
||||
import com.fangjia.coresite.model.HighchartsModel;
|
||||
import com.fangjia.coresite.model.JsonModel;
|
||||
import com.fangjia.coresite.model.RestfulModelAndView;
|
||||
import com.fangjia.coresite.model.TrendModel;
|
||||
import com.fangjia.dal.FacetQueryResult;
|
||||
import com.fangjia.dal.SortParam;
|
||||
import com.fangjia.dal.common.DistrictKey;
|
||||
@@ -1157,6 +1154,8 @@ public class TrendController {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public final String getSimpleDomain(HttpServletRequest request, TrendModel model) {
|
||||
return StringUtils.substringBetween(request.getRequestURL().toString(), "http://", "." + model.getDomain());
|
||||
}
|
||||
|
||||
@@ -369,5 +369,11 @@
|
||||
<ladder>/</ladder>
|
||||
</ladders>
|
||||
</rule>
|
||||
|
||||
<rule controller="saleLeads" action="dataAbility" channel="data">
|
||||
<ladders>
|
||||
<ladder>/power</ladder>
|
||||
</ladders>
|
||||
</rule>
|
||||
</rules>
|
||||
</urlrewrite>
|
||||
@@ -38,22 +38,25 @@
|
||||
|
||||
<div class="banner mobile01" id="company" style="background:url(${staticUrl}/images/fangjia/v5/about_banner.jpg) no-repeat center center;">
|
||||
<div>
|
||||
<p style="margin-top:50px;"><label>发现 地址 价值</label></p>
|
||||
<p><small style="font-size:24px;">房价网——全国领先的房产大数据服务商</small></p>
|
||||
<p style="margin-top:20px;"><label>时空价值数字化技术的引领者</label></p>
|
||||
<p><small style="font-size:24px;">致力于建立最全面的时空价值图谱,发现人、物和场的深度关联,为政府、<br/>金融、零售
|
||||
等提供风控、营销、规划等场景的产品和解决方案</small></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="banner mobile02" id="company" style="background:url(${staticUrl}/images/fangjia/v5/about_banner_m.jpg) no-repeat center center;background-size:100%;">
|
||||
<div>
|
||||
<p><label>发现 地址 价值</label></p>
|
||||
<p><small style="font-size:24px;line-height:30px;">房价网——全国领先的房产大数据服务商</small></p>
|
||||
<p><label>时空价值数字化技术的引领者</label></p>
|
||||
<p><small style="font-size:24px;line-height:30px;">致力于建立最全面的时空价值图谱,发现人、物和场的深度关联,为政府、<br/>金融、零售
|
||||
等提供风控、营销、规划等场景的产品和解决方案</small></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="main">
|
||||
<div class="main_title">关于房价网</div>
|
||||
<div class="main_content">
|
||||
<p>房价网成立于2006年,隶属于上海估家网络科技有限公司,致力于建立中国领先的房产大数据库CPDB及推动基于地理位置的人工智能的发展和应用。公司以“发现地址价值”为使命,始终秉承客观严谨的态度为政府、银行、金融机构等客户提供大数据、建模、咨询等服务。目前,所积累的房产数据已覆盖全国367个城市及地区,技术力量强大,客户查询量行业领先。</p>
|
||||
<p>公司在贷前估值、内评系统、贷后批量复估、信贷授信、地址反欺诈、数据治理、精准营销等领域都有着丰富的经验,拥有多项专利,被评为高新技术企业,赢得了国家统计局、建设银行、农业银行、平安集团、微众银行等众多客户的信赖。</p>
|
||||
<p>上海估家网络科技有限公司自2006年成立以来,致力于建立中国领先的时空价值大数据库及推动基于地理位置价值的人工智能的发展和应用。公司以“发现地址价值”为使命,始终秉承客观严谨的态度为政府、银行、金融机构等客户提供技术支持、大数据、建模、咨询等服务。目前,所积累的数据库已覆盖全国367个城市及地区,技术综合实力强大,数据访问量行业领先。</p>
|
||||
<p>时空信息是万物互联的数字基底。估家科技致力于以人工智能等科技手段为驱动力,为现实世界中生产、生活的各种场景建立起大数据模型,将各种分散和分割的时空大数据汇聚在一起并发生聚合效应,通过数据多维融合和关联分析与数据挖掘,揭示事物的本质规律,对事物做出更加快捷、更加全面、更加精准和更加有效的研判和预测,从而推进数字经济的发展,赋能各领域建立产业发展新生态。</p>
|
||||
<p>估家科技已成为推动人工智能级时空价值挖掘领域发展的领跑者。近几年来,深耕各行业数字化建设与科技赋能,赢得了国家统计局、中国农业银行、中国建设银行、WeBank微众银行、平安集团、浙商银行、银联数据、美团金融等众多政府机构、金融、咨询客户的信赖。</p>
|
||||
</div>
|
||||
<div class="main_title"><small>数据为大众服务</small></div>
|
||||
<div class="main_content">
|
||||
@@ -77,7 +80,7 @@
|
||||
<p>
|
||||
<font>电 话: 4001883787(周一至周五 09:00-18:00)<br>
|
||||
邮 箱: gujia@fangjia.com</font>
|
||||
<font>地 址:上海市黄浦区黄陂北路227号中区广场1207室<br>
|
||||
<font>地 址:上海市黄浦区江宁路212号凯迪克大厦1709<br>
|
||||
邮 编: 200003</font>
|
||||
|
||||
</p>
|
||||
@@ -130,7 +133,7 @@
|
||||
<p class="office01 current"><i></i><a>上海</a></p>
|
||||
<p>电 话: 4001883787(周一至周五 09:00-18:00)<br>
|
||||
邮 箱: gujia@fangjia.com<br>
|
||||
地 址: 上海市黄浦区黄陂北路227号中区广场1207室<br>
|
||||
地 址: 上海市黄浦区江宁路212号凯迪克大厦1709<br>
|
||||
邮 编: 200003</p>
|
||||
</div>
|
||||
<div>
|
||||
@@ -153,7 +156,7 @@
|
||||
</div>
|
||||
<div class="main_title" id="partner" style="padding-top:100px;">他们都在和我们合作</div>
|
||||
<div class="main_content partner mobile01">
|
||||
<img src="${staticUrl}/images/fangjia/v5/company.png" style="width: 99%;"><br>
|
||||
<img src="${staticUrl}/images/fangjia/v5/company.png" style="width: 99%;height: 370px;"><br>
|
||||
<#-- <a class="partner11"></a>-->
|
||||
<#-- <a class="partner12"></a>-->
|
||||
<#-- <a class="partner13"></a>-->
|
||||
@@ -230,12 +233,12 @@ $(".office03").click(function(){
|
||||
$(document).ready(function(){
|
||||
//百度地图API功能
|
||||
var map = new BMap.Map('officeMap01');
|
||||
var poi = new BMap.Point(121.476903,31.235288);
|
||||
var poi = new BMap.Point(121.461133,31.237838);
|
||||
map.centerAndZoom(poi, 16);
|
||||
map.enableScrollWheelZoom();
|
||||
|
||||
var content = '<div>' +
|
||||
'地址:上海市黄浦区黄陂北路227号中区广场1207室' +
|
||||
'地址:上海市黄浦区江宁路212号凯迪克大厦1709' +
|
||||
'</div>';
|
||||
|
||||
//创建检索信息窗口对象
|
||||
@@ -268,7 +271,7 @@ $(document).ready(function(){
|
||||
map.enableScrollWheelZoom();
|
||||
|
||||
var content = '<div>' +
|
||||
'地址:上海市黄浦区黄陂北路227号中区广场1207室' +
|
||||
'地址:上海市黄浦区江宁路212号凯迪克大厦1709' +
|
||||
'</div>';
|
||||
|
||||
//创建检索信息窗口对象
|
||||
|
||||
@@ -0,0 +1,287 @@
|
||||
|
||||
<!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 {
|
||||
padding: 10px 0;
|
||||
}
|
||||
|
||||
.radius{
|
||||
height: 500px;
|
||||
width: 1200px;
|
||||
border: 1px solid #c2c2c2;
|
||||
border-radius: 20px 20px 20px 20px;
|
||||
/*box-shadow: 10px 10px 10px 10px rgba(0, 0, 0, .1);*/
|
||||
/*box-shadow: 0 0 10px rgba(0,0,0,0.3), 0 0 10px rgba(0,0,0,0.3) inset;*/
|
||||
|
||||
}
|
||||
|
||||
.radius:hover {
|
||||
box-shadow: 10px 10px 10px 10px rgba(0, 0, 0, .3);
|
||||
background-color:#F3F0F0;
|
||||
}
|
||||
|
||||
ul { list-style: none; margin: 0; padding: 0; }
|
||||
#menu3 { width: 160px; border: 1px solid #ccc; margin: 10px; text-align: center;}
|
||||
#menu3 li{border-bottom: 1px solid #ccc;height: 50px;line-height: 50px;}
|
||||
#menu3 li a { height: 40px; voice-family: "\"}\""; voice-family: inherit; height: 24px; text-decoration: none; font-size: 16px;}
|
||||
#menu3 li a:link, #menu3 li a:visited {
|
||||
color: #888;
|
||||
display: block;
|
||||
background-color: #f0f0f0;
|
||||
height: 100%;
|
||||
}
|
||||
/*#menu3 li a:hover, #menu3 li a:active {*/
|
||||
/* color: #ffffff;*/
|
||||
/* background-color: #f39c0f;*/
|
||||
/*}*/
|
||||
.column > div > div p small {
|
||||
line-height: 22px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
|
||||
.column > div p {
|
||||
width: 400px;
|
||||
font-size: 26px;
|
||||
}
|
||||
.column > div p label {
|
||||
line-height: 40px;
|
||||
font-size: 20px;
|
||||
}
|
||||
.p-title{
|
||||
text-align: center;
|
||||
line-height: 50px;
|
||||
font-size: 22px;
|
||||
font-weight: bold;
|
||||
color: #336699;
|
||||
}
|
||||
@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/consulting_banner.jpg) no-repeat center center;">
|
||||
<div>
|
||||
<p><label>助力客户成功 实力赢得信任</label></p>
|
||||
<p><small>估家科技为国家统计局、银联、建设银行、农业银行等众多政府机构、银行总行、零售等各个行业的头部客户提供优质的大数据、AI技术、建模咨询的服务,并参与制定数据规范与标准,用实力赢得信任
|
||||
</small></p>
|
||||
<div class="btnGroup">
|
||||
<a class="link_btn link01_btn large" data_id="1006" cat="solution">立即咨询专业顾问</a>
|
||||
</div>
|
||||
</div>
|
||||
</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><label>估家科技为国家统计局、银联、建设银行、农业银行等众多政府机构、银行总行、零售等各个行业的头部客户提供优质的大数据、AI技术、建模咨询的服务,并参与制定数据规范与标准,用实力赢得信任
|
||||
</label></p>
|
||||
<div class="btnGroup">
|
||||
<a class="link_btn link01_btn large" data_id="1006" cat="solution">立即咨询专业顾问</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="columnBox firstOneM">
|
||||
<div class="column">
|
||||
<div class="column_center2 mobile01">
|
||||
<p style="width: 100%;font-size: 24px;font-weight: bold;">典型客户</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<center>
|
||||
<div class="columnBox firstOne firstOneM" style="padding: 80px 0 80px 0;">
|
||||
<div class="column">
|
||||
<img src="${staticUrl}/images/fangjia/v5/company.png" style="width: 100%;height: 400px;"><br>
|
||||
</div>
|
||||
</div>
|
||||
</center>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="columnBox firstOne firstOneM" style="padding: 120px 0 20px 20px;">
|
||||
<div class="column">
|
||||
<div class="column_center2 mobile01">
|
||||
<p style="width: 100%;font-size: 24px;font-weight: bold;">合作案例</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="columnBox">
|
||||
<div class="column">
|
||||
<div class="column_left">
|
||||
<div id="menu3">
|
||||
<ul>
|
||||
<li onclick="showWin('cstm1')"><a href="javascript:;" id="cstm1-a">金 融</a></li>
|
||||
<li onclick="showWin('cstm2')"><a href="javascript:;" id="cstm2-a">政 府</a></li>
|
||||
<li onclick="showWin('cstm3')"><a href="javascript:;" id="cstm3-a">零 售</a></li>
|
||||
<li onclick="showWin('cstm4')" style="border-bottom:none;"><a href="javascript:;" id="cstm4-a">传 媒</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="column_left" style="margin-top: -10px;width: 84%;">
|
||||
<div id="cstm1" class="dn">
|
||||
<div style="display: flex;margin-left: 50px;">
|
||||
<div class="radius" style="width:420px; padding-left: 20px;height: 450px;">
|
||||
<p class="p-title" style="text-align: center;">地址治理项目</p>
|
||||
<p><label >客户</label></p>
|
||||
<p><small>某国有银行总行</small></p>
|
||||
<p><label >需求 </label></p>
|
||||
<p><small>完成存量地址与楼盘信息治理,对多来源数据进行融合和优化,建设一套行内自有的楼盘数据标准化平台和数据质量管理平台</small></p>
|
||||
<p><label >解决方案 </label></p>
|
||||
<p><small>通过处理不完整数据、去除重复数据、去除噪音数据、处理异常数据,完成房产数据的检验、治理、映射关联等工作,集各家所长,将源数据整合成一套新的行内标准数据。</small></p>
|
||||
<p><label >项目收益 </label></p>
|
||||
<p><small>1、楼盘字典</small></p>
|
||||
<p><small>2、样本数据库</small></p>
|
||||
<p><small>3、行政区划表及片区表</small></p>
|
||||
<p><small>4、供应商数据质量监测</small></p>
|
||||
</div>
|
||||
|
||||
<div class="radius" style="width:420px; padding-left: 20px;height: 450px;margin-left: 50px;">
|
||||
<p class="p-title" style="text-align: center;">信用卡地理营销</p>
|
||||
<p><label >客户</label></p>
|
||||
<p><small>某国有银行总行信用卡部</small></p>
|
||||
<p><label >需求 </label></p>
|
||||
<p><small>存量客户消费金额增长 沉寂客户营销促活 存量客户提额增信</small></p>
|
||||
<p><label >解决方案 </label></p>
|
||||
<p><small>地数平台批量处理信用卡客户的地址信息,自动建立消费潜力评分模型,输出客户进行消费潜力评分。 银行依据此评分对客户进行分层,锁定高消费潜力客户群体,有针对性地设计相关的营销策略,以提升营销成果。</small></p>
|
||||
<p><label >项目收益 </label></p>
|
||||
<p><small>1、信用卡地址标准化</small></p>
|
||||
<p><small>2、信用卡消费金额增长率明显提升</small></p>
|
||||
<p><small>3、精准促活高消费潜力睡眠客户</small></p>
|
||||
<p><small>4、降低营销成本,提升营销效果</small></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div style="display: flex;margin-top: 30px;margin-bottom: 50px;">
|
||||
<div class="radius" style="width: 420px;margin-left: 20px; padding-left: 20px;height: 480px;margin-left: 50px;">
|
||||
<p class="p-title" style="text-align: center;">押品线上估值与管理</p>
|
||||
<p><label >客户</label></p>
|
||||
<p><small>某国有银行各大分行</small></p>
|
||||
<p><label >需求 </label></p>
|
||||
<p><small>加快零售数字化建设,押品从贷前到贷后全生命周期AI级管理,贷前押品估值线上化,贷后押品价格波动监测及评级。</small></p>
|
||||
<p><label >解决方案 </label></p>
|
||||
<p><small>地数依托大数据+科学算法+专业模型计算,打造行业领先的AI估值系统,系统可实时在线进行抵押物估值,多渠道海量数据源参与计算,能得到最接近市场公允价的估值结果。同时,建立了一套非常完善的线上线下结合的押品估值体系,为银行押品数字化管理提供AI服务,大大提升效能,满足业务与风控的要求。</small></p>
|
||||
<p><label >项目收益 </label></p>
|
||||
<p><small>1、押品估值数字化转型</small></p>
|
||||
<p><small>2、房贷作业流程时效提升40%</small></p>
|
||||
<p><small>3、有效监控押品市值波动,提升风险防范</small></p>
|
||||
<p><small>4、大幅降低押品估值成本投入</small></p>
|
||||
</div>
|
||||
|
||||
<div class="radius" style="width: 420px;margin-left: 50px; padding-left: 20px;height: 480px;">
|
||||
<p class="p-title" style="text-align: center;">提额增信</p>
|
||||
<p><label >客户</label></p>
|
||||
<p><small>某知名互联网银行</small></p>
|
||||
<p><label >需求 </label></p>
|
||||
<p><small>某行对信保产品客户进行提额增信,实现差异化销售策略。在授信模型中增加房产估值、评级、房产大数据等维度,以综合判断申贷人的经济实力和消费能力,从而为调整额度提供客观的数据支持。</small></p>
|
||||
<p><label >解决方案 </label></p>
|
||||
<p><small>针对用户输入的房产地址信息,实时为用户地址对应的房产进行评估、评级和分类,通过用户地址的“物业类型”“价格评级”“周边消费”“周边配套详情”等维度分析,结合银行内部风控,快速预估用户授信等级。运用于客户已有信保产品的提额环节,通过了解申请人不动产的综合价值以及位于城市中水平,帮助判断审批授信额度。</small></p>
|
||||
<p><label >项目收益 </label></p>
|
||||
<p><small>1、实现精准提额</small></p>
|
||||
<p><small>2、提额后转化率明显上升</small></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="cstm2" class="dn">
|
||||
<img src="${staticUrl}/images/fangjia/v5/cstm-zf-1.png" style="float: left;width: 350px;height: 300px;">
|
||||
<img src="${staticUrl}/images/fangjia/v5/cstm-zf-2.png" style="float: left;width: 350px;height: 300px;margin-left: 50px;">
|
||||
</div>
|
||||
|
||||
<div id="cstm3" class="dn">
|
||||
<img src="${staticUrl}/images/fangjia/v5/cstm-ls-1.png" style="float: left;width: 320px;height: 300px;">
|
||||
<img src="${staticUrl}/images/fangjia/v5/cstm-ls-2.png" style="float: left;width: 320px;height: 300px;margin-left: 10px;">
|
||||
<img src="${staticUrl}/images/fangjia/v5/cstm-ls-3.png" style="float: left;width: 320px;height: 300px;margin-left: 10px;">
|
||||
</div>
|
||||
|
||||
<div id="cstm4" class="dn">
|
||||
<img src="${staticUrl}/images/fangjia/v5/cstm-cm-1.png" style="float: left;width: 350px;height: 300px;">
|
||||
<img src="${staticUrl}/images/fangjia/v5/cstm-cm-2.png" style="float: left;width: 350px;height: 300px;margin-left: 50px;">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<#include "/header/v5/_footer.ftl"/>
|
||||
|
||||
<script src="${staticUrl}/js/fangjia/v5/main.js?v=${version}"></script>
|
||||
<script type="application/javascript">
|
||||
$("#cstm1").removeClass("dn")
|
||||
$("#cstm1-a").css("background-color","#f39c0f")
|
||||
$("#cstm1-a").css("color","#ffffff")
|
||||
|
||||
function showWin(id){
|
||||
|
||||
$("div[id^='cstm']").each(function (i, el) {
|
||||
var v = el.getAttribute("id")
|
||||
if(v == id){
|
||||
$("#"+v).removeClass("dn")
|
||||
$("#"+v+"-a").css("background-color","#f39c0f")
|
||||
$("#"+v+"-a").css("color","#ffffff")
|
||||
|
||||
}else{
|
||||
$("#"+v).addClass("dn")
|
||||
$("#"+v+"-a").css("background-color","#f0f0f0")
|
||||
$("#"+v+"-a").css("color","#888")
|
||||
}
|
||||
});
|
||||
}
|
||||
// $("#menu3").hover(function(e){
|
||||
// var v = e.target.innerText
|
||||
// console.log(v)
|
||||
// if(v == "金 融"){
|
||||
// $("#cstm1").show()
|
||||
// $("#cstm2").hide()
|
||||
// $("#cstm3").hide()
|
||||
// $("#cstm4").hide()
|
||||
// }else if(v == "政 府"){
|
||||
// $("#cstm1").hide()
|
||||
// $("#cstm2").show()
|
||||
// $("#cstm3").hide()
|
||||
// $("#cstm4").hide()
|
||||
// }else if(v == "零 售"){
|
||||
// $("#cstm1").hide()
|
||||
// $("#cstm2").hide()
|
||||
// $("#cstm3").show()
|
||||
// $("#cstm4").hide()
|
||||
// }else if(v == "传 媒"){
|
||||
// $("#cstm1").hide()
|
||||
// $("#cstm2").hide()
|
||||
// $("#cstm3").hide()
|
||||
// $("#cstm4").show()
|
||||
// }
|
||||
// });
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -12,35 +12,36 @@
|
||||
<span>关于我们</span>
|
||||
<a href="${wwwUrl}/company/about" target="_blank">公司简介</a>
|
||||
<a href="${wwwUrl}/company/about#contact" target="_blank">联系我们</a>
|
||||
<a href="${wwwUrl}/company/about#partner" target="_blank">合作伙伴</a>
|
||||
<a href="${wwwUrl}/company/recruitment" target="_blank">人才招募</a>
|
||||
</li>
|
||||
<li>
|
||||
<span>解决方案</span>
|
||||
<a href="${wwwUrl}/solution/appraisal" target="_blank">贷前估值</a>
|
||||
<a href="${wwwUrl}/solution/irb" target="_blank">内评缓释</a>
|
||||
<a href="${wwwUrl}/solution/finance" target="_blank">房生活</a>
|
||||
<a href="${wwwUrl}/solution/marketing" target="_blank">营销获客</a>
|
||||
<a href="${wwwUrl}/solution/location" target="_blank">地址精准营销</a>
|
||||
<a href="${wwwUrl}/solution/standardization" target="_blank">地址标准化</a>
|
||||
|
||||
<li>
|
||||
<span>产品</span>
|
||||
<a href="${wwwUrl}/solution/standardization">地址标准化</a>
|
||||
<a href="${wwwUrl}/solution/addrPro">地址数据治理</a>
|
||||
<a href="${wwwUrl}/solution/onehouse">一房一价</a>
|
||||
<a href="${wwwUrl}/solution/financial">财力评级</a>
|
||||
<a href="${wwwUrl}/solution/level">楼盘评级</a>
|
||||
<a href="${wwwUrl}/solution/dishu">地数平台</a>
|
||||
<a href="${wwwUrl}/product/ptas">房价通</a>
|
||||
<a href="${wwwUrl}/solution/api">API</a>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<span>行业应用</span>
|
||||
<span>解决方案</span>
|
||||
<a href="${wwwUrl}/solution/card" target="_blank">信用卡</a>
|
||||
<a href="${wwwUrl}/solution/outlets" target="_blank">网点布局规划</a>
|
||||
<a href="${wwwUrl}/solution/appraisal" target="_blank">押品价值管理</a>
|
||||
<a href="${wwwUrl}/solution/location" target="_blank">位置营销</a>
|
||||
<a href="${wwwUrl}/industry/bank" target="_blank">银行</a>
|
||||
<a href="${wwwUrl}/industry/itfin" target="_blank">互联网金融</a>
|
||||
<a href="${wwwUrl}/industry/appraisal" target="_blank">评估机构</a>
|
||||
<a href="${wwwUrl}/industry/government" target="_blank">政府部门</a>
|
||||
<a href="${wwwUrl}/industry/dmp" target="_blank">大数据行业</a>
|
||||
<a href="${wwwUrl}/industry/corporation" target="_blank">行业企业</a>
|
||||
<a href="${wwwUrl}/industry/itfin" target="_blank">互金</a>
|
||||
<a href="${wwwUrl}/industry/government" target="_blank">政府机构</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<span>快速链接</span>
|
||||
<a href="${wwwUrl}/resource/industry" target="_blank">行业动态</a>
|
||||
<a href="${wwwUrl}/resource/analysis" target="_blank">数据分析</a>
|
||||
<a href="${wwwUrl}/resource/case" target="_blank">成功案例</a>
|
||||
<a href="https://sh.fangjia.com/" target="_blank">各路客</a>
|
||||
<a href="http://user.fangjia.com/" target="_blank">房价通</a>
|
||||
<a href="https://www.didatai.com/" target="_blank">地数</a>
|
||||
<a href="${wwwUrl}/data/power" target="_blank">行业动态</a>
|
||||
<a href="${wwwUrl}/company/cstm#cstm1" target="_blank">典型案例</a>
|
||||
<a href="${wwwUrl}/industry/consulting" target="_blank">咨询研究</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -8,60 +8,134 @@
|
||||
<ul class="nav">
|
||||
<li class="<#if controllerName == ''>current</#if>"><a href="${wwwUrl}">首页</a></li>
|
||||
<#--<li class="<#if controllerName == 'apartment'>current</#if>" ><a href="${cityUrl}/apartment/list">精品公寓</a></li>-->
|
||||
<li class="subnav01 <#if controllerName == 'evaluation' || controllerName == 'report' || actionName == 'trend'>current</#if>">
|
||||
<a href="${cityUrl}/gujia">房产评估</a>
|
||||
<div class="dn">
|
||||
<ul>
|
||||
<li><a href="${cityUrl}/gujia">房产评估</a></li>
|
||||
<li><a href="${cityUrl}/zoushi">房价走势</a></li>
|
||||
<li><a href="${wwwUrl}/report/appraisal">房调报告</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</li>
|
||||
<li class="<#if controllerName=='resource'>current</#if>"><a href="${wwwUrl}/resource/" >最新资讯</a></li>
|
||||
<li class="subnav03 <#if controllerName == 'industry' || (controllerName == 'solution' && actionName != 'apiDoc')>current</#if>">
|
||||
<a>解决方案</a>
|
||||
<div class="dn" style="width:340px;">
|
||||
<ul>
|
||||
<li><a href="${wwwUrl}/industry/bank">银行</a></li>
|
||||
<li><a href="${wwwUrl}/industry/itfin">互联网金融</a></li>
|
||||
<li><a href="${wwwUrl}/industry/dmp">大数据行业</a></li>
|
||||
<li><a href="${wwwUrl}/industry/appraisal">评估机构</a></li>
|
||||
<li><a href="${wwwUrl}/industry/government">政府部门</a></li>
|
||||
<li><a href="${wwwUrl}/industry/credit">征信机构</a></li>
|
||||
<li><a href="${wwwUrl}/industry/corporation">行业企业</a></li>
|
||||
<li><a href="${wwwUrl}/industry/consulting">咨询研究</a></li>
|
||||
<li><a href="${wwwUrl}/solution/paimai">司法拍卖</a></li>
|
||||
<li><a href="${wwwUrl}/solution/paimai">财力评级</a></li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li><a href="${wwwUrl}/solution/appraisal">贷前估值解决方案</a></li>
|
||||
<li><a href="${wwwUrl}/solution/irb">银行内评系统解决方案</a></li>
|
||||
<li><a href="${wwwUrl}/solution/post-loan">贷后管理解决方案</a></li>
|
||||
<li><a href="${wwwUrl}/solution/finance">房生活金融客户端营销解决方案</a></li>
|
||||
<li><a href="${wwwUrl}/solution/marketing">房贷业务获客解决方案</a></li>
|
||||
<li><a href="${wwwUrl}/solution/location">地址精准营销解决方案</a></li>
|
||||
<li><a href="${wwwUrl}/solution/standardization">地址标准化解决方案</a></li>
|
||||
<li><a href="${wwwUrl}/solution/api">API数据接口解决方案</a></li>
|
||||
<li><a href="${wwwUrl}/solution/paimai">法拍房数据解决方案</a></li>
|
||||
<li><a href="${wwwUrl}/solution/financial">财力评级解决方案</a></li>
|
||||
</div>
|
||||
</li>
|
||||
<li class="subnav05 <#if controllerName == 'product' || controllerName == 'cpdb' || (controllerName == 'solution' && actionName == 'apiDoc')>current</#if>">
|
||||
<a>产品与服务</a>
|
||||
<div class="dn" style="width:320px;">
|
||||
<ul>
|
||||
<li><a href="${wwwUrl}/product/amp">AMP</a></li>
|
||||
<li><a href="${wwwUrl}/product/pds">PDS</a></li>
|
||||
<li><a href="${wwwUrl}/product/ptas">房价通</a></li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li><a href="${wwwUrl}/solution/api">API数据接口</a></li>
|
||||
<!-- <li><a href="${wwwUrl}/solution/api/doc">API数据接口技术文档</a></li> -->
|
||||
<li><a href="${wwwUrl}/cpdb/index">CPDB中国房产大数据库</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</li>
|
||||
<#-- <li class="subnav01 <#if controllerName == 'evaluation' || controllerName == 'report' || actionName == 'trend'>current</#if>">-->
|
||||
<#-- <a href="${cityUrl}/gujia">房产评估</a>-->
|
||||
<#-- <div class="dn">-->
|
||||
<#-- <ul>-->
|
||||
<#-- <li><a href="${cityUrl}/gujia">房产评估</a></li>-->
|
||||
<#-- <li><a href="${cityUrl}/zoushi">房价走势</a></li>-->
|
||||
<#-- <li><a href="${wwwUrl}/report/appraisal">房调报告</a></li>-->
|
||||
<#-- </ul>-->
|
||||
<#-- </div>-->
|
||||
<#-- </li>-->
|
||||
<#-- <li class="subnav06 <#if controllerName == 'resource'>current</#if>"><a href="${wwwUrl}/resource/industry">行业动态</a></li>-->
|
||||
<#-- <li class="subnav03 <#if controllerName == 'industry' || (controllerName == 'solution' && actionName != 'apiDoc')>current</#if>">-->
|
||||
<#-- <a>解决方案</a>-->
|
||||
<#-- <div class="dn" style="width:340px;">-->
|
||||
<#-- <ul>-->
|
||||
<#-- <li><a href="${wwwUrl}/industry/bank">银行</a></li>-->
|
||||
<#-- <li><a href="${wwwUrl}/industry/itfin">互联网金融</a></li>-->
|
||||
<#-- <li><a href="${wwwUrl}/industry/dmp">大数据行业</a></li>-->
|
||||
<#-- <li><a href="${wwwUrl}/industry/appraisal">评估机构</a></li>-->
|
||||
<#-- <li><a href="${wwwUrl}/industry/government">政府部门</a></li>-->
|
||||
<#-- <li><a href="${wwwUrl}/industry/credit">征信机构</a></li>-->
|
||||
<#-- <li><a href="${wwwUrl}/industry/corporation">行业企业</a></li>-->
|
||||
<#-- <li><a href="${wwwUrl}/industry/consulting">咨询研究</a></li>-->
|
||||
<#-- <li><a href="${wwwUrl}/solution/paimai">司法拍卖</a></li>-->
|
||||
<#-- <li><a href="${wwwUrl}/solution/paimai">财力评级</a></li>-->
|
||||
<#-- </ul>-->
|
||||
<#-- <ul>-->
|
||||
<#-- <li><a href="${wwwUrl}/solution/appraisal">贷前估值解决方案</a></li>-->
|
||||
<#-- <li><a href="${wwwUrl}/solution/irb">银行内评系统解决方案</a></li>-->
|
||||
<#-- <li><a href="${wwwUrl}/solution/post-loan">贷后管理解决方案</a></li>-->
|
||||
<#-- <li><a href="${wwwUrl}/solution/finance">房生活金融客户端营销解决方案</a></li>-->
|
||||
<#-- <li><a href="${wwwUrl}/solution/marketing">房贷业务获客解决方案</a></li>-->
|
||||
<#-- <li><a href="${wwwUrl}/solution/location">地址精准营销解决方案</a></li>-->
|
||||
<#-- <li><a href="${wwwUrl}/solution/standardization">地址标准化解决方案</a></li>-->
|
||||
<#-- <li><a href="${wwwUrl}/solution/api">API数据接口解决方案</a></li>-->
|
||||
<#-- <li><a href="${wwwUrl}/solution/paimai">法拍房数据解决方案</a></li>-->
|
||||
<#-- <li><a href="${wwwUrl}/solution/financial">财力评级解决方案</a></li>-->
|
||||
<#-- </div> -->
|
||||
<#-- </li>-->
|
||||
<#-- <li class="subnav05 <#if controllerName == 'product' || controllerName == 'cpdb' || (controllerName == 'solution' && actionName == 'apiDoc')>current</#if>">-->
|
||||
<#-- <a>产品与服务</a>-->
|
||||
<#-- <div class="dn" style="width:320px;">-->
|
||||
<#-- <ul>-->
|
||||
<#-- <li><a href="${wwwUrl}/product/amp">AMP</a></li>-->
|
||||
<#-- <li><a href="${wwwUrl}/product/pds">PDS</a></li>-->
|
||||
<#-- <li><a href="${wwwUrl}/product/ptas">房价通</a></li>-->
|
||||
<#-- </ul>-->
|
||||
<#-- <ul>-->
|
||||
<#-- <li><a href="${wwwUrl}/solution/api">API数据接口</a></li>-->
|
||||
<#-- <!-- <li><a href="${wwwUrl}/solution/api/doc">API数据接口技术文档</a></li> –>-->
|
||||
<#-- <li><a href="${wwwUrl}/cpdb/index">CPDB中国房产大数据库</a></li>-->
|
||||
<#-- </ul>-->
|
||||
<#-- </div>-->
|
||||
<#-- </li>-->
|
||||
|
||||
<li class="subnav01 <#if (controllerName == 'solution' && ["standardization","addrPro","onehouse","financial","level","dishu","api"]?seq_contains(actionName)) || (controllerName == 'product' && actionName=="ptas")>current</#if>">
|
||||
<a>产品</a>
|
||||
<div class="dn" style="width:320px;">
|
||||
<ul style="padding-right: 50px;">
|
||||
<li><p class="menu-heading">产品能力</p></li>
|
||||
<li><a href="${wwwUrl}/solution/standardization">地址标准化</a></li>
|
||||
<li><a href="${wwwUrl}/solution/addrPro">地址数据治理</a></li>
|
||||
<li><a href="${wwwUrl}/solution/onehouse">一房一价</a></li>
|
||||
<li><a href="${wwwUrl}/solution/financial">财力评级</a></li>
|
||||
<li><a href="${wwwUrl}/solution/level">楼盘评级</a></li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li><p class="menu-heading">系统</p></li>
|
||||
<li><a href="${wwwUrl}/solution/dishu">地数平台</a></li>
|
||||
<li><a href="${wwwUrl}/product/ptas">房价通</a></li>
|
||||
<li><a href="${wwwUrl}/solution/api">API</a></li>
|
||||
</ul>
|
||||
</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>">
|
||||
<a>解决方案</a>
|
||||
<div class="dn" style="width:320px;">
|
||||
<ul style="padding-right: 50px;">
|
||||
<li><p class="menu-heading">场景</p></li>
|
||||
<li><a href="${wwwUrl}/solution/card">信用卡</a></li>
|
||||
<li><a href="${wwwUrl}/solution/outlets">网点布局规划</a></li>
|
||||
<li><a href="${wwwUrl}/solution/appraisal">押品价值管理</a></li>
|
||||
<li><a href="${wwwUrl}/solution/location">位置营销</a></li>
|
||||
</ul>
|
||||
<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/government">政府机构</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li class="<#if controllerName == 'company' && actionName == 'cstm'>current</#if>">
|
||||
<a>客户</a>
|
||||
<div class="dn" style="width:120px;">
|
||||
<ul>
|
||||
<li><a href="${wwwUrl}/company/cstm">合作客户</a></li>
|
||||
<li><a href="${wwwUrl}/company/cstm#cstm1">典型案例</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li class="<#if (controllerName == 'evaluation' || controllerName == 'report' || actionName == 'trend') || (controllerName=='industry' && actionName=='consulting') || (controllerName=='saleLeads' && actionName=='dataAbility')>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}/industry/consulting">咨询研究</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li class="<#if controllerName=='resource'>current</#if>"><a href="${wwwUrl}/resource/industry" >行业动态</a></li>
|
||||
|
||||
<li class="subnav07 <#if controllerName == 'company' && actionName=='about'>current</#if>">
|
||||
<a>关于我们</a>
|
||||
<div class="dn" style="width:320px;">
|
||||
<ul>
|
||||
<li><a href="${wwwUrl}/company/about">公司简介</a></li>
|
||||
<li><a href="${wwwUrl}/company/about#contact">联系我们</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<#-- <li class="<#if controllerName=='app'>current</#if>"><a href="${wwwUrl}/app/index">APP下载</a></li>-->
|
||||
|
||||
</ul>
|
||||
|
||||
@@ -17,6 +17,15 @@
|
||||
<script src="${staticUrl}/js/fangjia/v5/jquery-1.7.2.min.js?v=${version}"></script>
|
||||
<style>
|
||||
.columnBox .featureBox{margin-top:100px;}
|
||||
|
||||
.core-main {
|
||||
display: table;
|
||||
width: 100%;
|
||||
padding: 160px 0;
|
||||
background: url("${staticUrl}/images/fangjia/v5/index-bg.png") 100% 100% no-repeat;
|
||||
background-size: 100% 100%;
|
||||
margin-top: -2px;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
if((navigator.userAgent.match(/(iPad|iPhone|iPod|Android|ios)/i))){
|
||||
@@ -44,6 +53,33 @@
|
||||
.iconBox > a > div p small{font-size:14px;}
|
||||
.contentBox{padding-top:0;}
|
||||
}
|
||||
|
||||
.radius{
|
||||
height: 500px;
|
||||
width: 1120px;
|
||||
border: 1px solid #c2c2c2;
|
||||
border-radius: 20px 20px 20px 20px;
|
||||
/*box-shadow: 10px 10px 10px 10px rgba(0, 0, 0, .1);*/
|
||||
/*box-shadow: 0 0 10px rgba(0,0,0,0.3), 0 0 10px rgba(0,0,0,0.3) inset;*/
|
||||
|
||||
}
|
||||
.column > div p {
|
||||
width: 500px;
|
||||
}
|
||||
ul { list-style: none; margin: 0; padding: 0; }
|
||||
#menu3 { width: 160px; border: 1px solid #ccc; margin: 10px; text-align: center;}
|
||||
#menu3 li{border-bottom: 1px solid #ccc;height: 50px;line-height: 50px;}
|
||||
#menu3 li a { height: 40px; voice-family: "\"}\""; voice-family: inherit; height: 24px; text-decoration: none; font-size: 16px;}
|
||||
#menu3 li a:link, #menu3 li a:visited {
|
||||
color: #888;
|
||||
display: block;
|
||||
background-color: #f0f0f0;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.column > div > div {
|
||||
margin-left: 30px;
|
||||
}
|
||||
@media(max-device-width:414px){
|
||||
.searchBoxIndex{top:16.8rem;}
|
||||
}
|
||||
@@ -65,27 +101,40 @@
|
||||
|
||||
<div class="bannerIndex">
|
||||
<div class="imgBoxIndex">
|
||||
<div class="bannerIndex08" onClick="window.location.href='${cityUrl}/gujia'">
|
||||
<div class="bannerIndex08">
|
||||
<div>
|
||||
<p><label style="font-size:42px;color:#fff;line-height:70px;">房价又跌了?<br>快查查你家房子多少钱</label></p>
|
||||
<p><label style="color:#fff;">时空价值数字化技术的引领者</label></p>
|
||||
<p><small style="color:#fff;">致力于建立最全面的时空价值图谱,发现人、物和场的深度关联,为政府、金融、零售<br/>等提供风控、营销、规划等场景的产品和解决方案</small></p>
|
||||
<div class="btnGroup">
|
||||
<a class="link_btn link01_btn" data_id="1006" style="width: 120px; border-color: #FFFFFF; " cat="solution">立即咨询专业顾问</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bannerIndex07 dn" onClick="window.location.href='${wwwUrl}/product/pds'">
|
||||
<div class="bannerIndex07 dn">
|
||||
<div>
|
||||
<p><label>PDS不动产大数据服务平台</label></p>
|
||||
<p><small>服务于互联网金融及助贷机构,从源头资产分类到获客转换、<br>贷前、贷后服务管理。</small></p>
|
||||
<p><label style="color:#fff;">计算每一套房产的“与众不同”</label></p>
|
||||
<p><small style="color:#fff;">全量房产大数据、全维度的变量因子、领先的算法模型,让房产估值精确到“一房一价”<br>,精准计算每一套房产的价值</small></p>
|
||||
<div class="btnGroup">
|
||||
<a class="link_btn link01_btn" data_id="1026" style="width: 120px; border-color: #FFFFFF; " cat="solution">立即咨询专业顾问</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bannerIndex06 dn" onClick="${wwwUrl}/app/index'">
|
||||
<div>
|
||||
<p><label>有房APP<br>关注房价涨跌,发现潜力房产</label></p>
|
||||
<p><small>您的专属个人房产频道,轻松管理自有房产。</small></p>
|
||||
<div class="bannerIndex06 dn">
|
||||
<div >
|
||||
<p><label style="color:#fff;">“变”中求“新” 网点布局规划新策略</label></p>
|
||||
<p><small style="color:#fff;">建设智慧型社区银行、构建新一轮的智慧网点布局战略和实施规划,地址价值挖掘全面提升网点布局规划的科学性、专业性及合理性,强化社区融合、占据市场主动、培育优质客户。</small></p>
|
||||
<div class="btnGroup">
|
||||
<a class="link_btn link01_btn" data_id="1032" style="width: 120px;border-color: #FFFFFF; " cat="solution">立即咨询专业顾问</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bannerIndex04 dn" onClick="window.location.href='${wwwUrl}/solution/finance'">
|
||||
<div class="bannerIndex04 dn" >
|
||||
<div>
|
||||
<p><label>房生活——金融行业的最适场景</label></p>
|
||||
<p><small>为银行移动客户端创造具有长期性、延展性、个性化的强金融属性应用场景。</small></p>
|
||||
<p><label style="color:#fff;">自动化地址(位置)数据综合治理</label></p>
|
||||
<p><small style="color:#fff;">地址数据治理除了以地址标准化为核心的一系列智能化服务,更具有为各行各业建立以地址(位置)信息为基础的数据库与价值挖掘体系的能力。夯实数据资产数字化建设,全面赋能业务场景。</small></p>
|
||||
<div class="btnGroup">
|
||||
<a class="link_btn link01_btn" data_id="1025" style="width: 120px; border-color: #FFFFFF; " cat="solution">立即咨询专业顾问</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -139,167 +188,226 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="columnBox">
|
||||
<div class="featureBox threePiece">
|
||||
<div class="feature" onClick="window.location.href='${cityUrl}/industry/bank'">
|
||||
<img src="${imgUrl}/images/fangjia/v5/index_iconB01.png">
|
||||
<p><em>解决方案</em></p>
|
||||
<p><small>智能高效 准确快捷</small></p>
|
||||
</div>
|
||||
<div class="feature" onClick="window.location.href='${cityUrl}/gujia'">
|
||||
<img src="${imgUrl}/images/fangjia/v5/index_iconA02.png">
|
||||
<p><em>房产估值</em></p>
|
||||
<p><small>专业评估 挖掘价值</small></p>
|
||||
</div>
|
||||
<div class="feature" onClick="window.location.href='${wwwUrl}/product/pds'">
|
||||
<img src="${imgUrl}/images/fangjia/v5/index_iconA03.png">
|
||||
<p><em>专业产品</em></p>
|
||||
<p><small>创造更大价值</small></p>
|
||||
<#--<div class="columnBox">-->
|
||||
<#-- <div class="featureBox threePiece">-->
|
||||
|
||||
<#-- </div>-->
|
||||
<#--</div>-->
|
||||
|
||||
<div class="core-main">
|
||||
<div class="columnBox firstOne firstOneM">
|
||||
<div class="column">
|
||||
<div class="column_center2 mobile01" style="padding-left: 36px;padding-top: 40px;">
|
||||
<p style="width: 100%;font-size: 24px;font-weight: bold;color: #666666;">能力全景图</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<center>
|
||||
<div class="columnBox firstOneM" style="padding: 20px 0 20px 0;">
|
||||
<div class="column">
|
||||
<img src="${staticUrl}/images/fangjia/v5/new-index2.png" style="width: 94%;"><br>
|
||||
</div>
|
||||
</div>
|
||||
</center>
|
||||
|
||||
</div>
|
||||
|
||||
<#--<div class="slogan mobile01">
|
||||
<p>租公寓,找房价网</p>
|
||||
<p><small>整合全网精品公寓,打造一站式租房公寓平台</small></p>
|
||||
</div>-->
|
||||
|
||||
<#--<div class="list mobile01 dn" id="houseList">
|
||||
<div class="listTop">
|
||||
<p><img src="${imgUrl}/images/fangjia/v5/diamond.png"><label>精品公寓</label></p>
|
||||
<p><span><a href="${cityUrl}/apartment/list">今日特惠</a></span><span><a href="${cityUrl}/apartment/list">最新房源</a></span><span><a href="${cityUrl}/apartment/list">热门小区</a></span><span style="border-right:none;"><a href="${cityUrl}/apartment/list">人气房源</a></span><a href="${cityUrl}/apartment/list" class="lookMore">查看更多<i></i></a></p>
|
||||
</div>
|
||||
|
||||
<div class="houseBox">
|
||||
|
||||
</div>
|
||||
</div>-->
|
||||
|
||||
<#--<div class="list mobile02 dn" id="mobileHouseList">
|
||||
<div class="listTop">
|
||||
<p><img src="${imgUrl}/images/fangjia/v5/diamond.png"><label>精品公寓</label><a href="${cityUrl}/apartment/list" class="lookMore">查看更多<i></i></a></p>
|
||||
</div>
|
||||
<div class="list-block media-list houseList">
|
||||
<ul>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>-->
|
||||
|
||||
|
||||
<#--
|
||||
<img src="${imgUrl}/images/fangjia/v5/house_img.png" class="house_img mobile01">
|
||||
<img src="${imgUrl}/images/fangjia/v5/house_img_m.png" class="house_img mobile02">
|
||||
-->
|
||||
<#if adsList?? && adsList?size gt 0>
|
||||
<#list adsList as ad>
|
||||
<img src="${ad.image!}" class="house_img" onclick=clickUrl("${ad.id}","${ad.url!}")>
|
||||
</#list>
|
||||
</#if>
|
||||
|
||||
|
||||
<div class="list dn" id="newsList">
|
||||
<div class="listTop">
|
||||
<p><img src="${imgUrl}/images/fangjia/v5/diamond.png"><label>房产资讯</label><a href="${basePath}/resource/index" class="lookMore" style="line-height:32px;">查看更多<i></i></a></p>
|
||||
</div>
|
||||
<div class="contentBox">
|
||||
<div class="columnBox firstOne firstOneM" style="padding: 120px 0 20px 0;">
|
||||
<div class="column">
|
||||
<div class="column_center2 mobile01" style="padding-left: 36px;">
|
||||
<p style="width: 100%;font-size: 24px;font-weight: bold;color: #666666;">解决方案</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<center>
|
||||
<div class="radius" style="height: 280px;">
|
||||
<div class="columnBox firstOneM" style="padding: 20px 0 80px 0;">
|
||||
<div class="column" style="padding-left: 25px;">
|
||||
<div style="display: flex;">
|
||||
<div id="menu3">
|
||||
<ul>
|
||||
<li onclick="showWin('slt1')"><a href="javascript:;" id="slt1-a">押品价值管理</a></li>
|
||||
<li onclick="showWin('slt2')"><a href="javascript:;" id="slt2-a">地址智能治理</a></li>
|
||||
<li onclick="showWin('slt3')"><a href="javascript:;" id="slt3-a">网点选址运营</a></li>
|
||||
<li onclick="showWin('slt4')" style="border-bottom:none;"><a href="javascript:;" id="slt4-a">客户价值识别</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<#--<div class="list">-->
|
||||
<div id = "slt1">
|
||||
<p><label>押品全生命周期价值管理</label></p>
|
||||
<p><small>围绕押品信贷业务全生命周期,从营销展业,贷前、贷中、贷后、以及业务运营形成一体式的风险防控,通过建立房贷业务地图平台,实现全方位监测。</small></p>
|
||||
</div>
|
||||
<div id = "r-slt1">
|
||||
<img src="${staticUrl}/images/fangjia/v5/appraisal_img05.png" style="width: 300px;height: 200px;">
|
||||
</div>
|
||||
|
||||
|
||||
<div id = "slt2" class="dn">
|
||||
<p><label>地址治理</label></p>
|
||||
<p><small>地址数据治理除了以地址标准化为核心的一系列智能化服务,更具有为各行各业建立以地址(位置)信息为基础的数据库与价值挖掘体系的能力。夯实数据资产数字化建设,全面赋能业务场景。</small></p>
|
||||
</div>
|
||||
<div id = "r-slt2" class="dn">
|
||||
<img src="${staticUrl}/images/fangjia/v5/consulting_img03.jpg" style="width:300px;height: 200px;">
|
||||
</div>
|
||||
|
||||
<div id = "slt3" class="dn">
|
||||
<p><label>网点布局规划</label></p>
|
||||
<p><small>建设智慧型社区银行、构建新一轮的智慧网点布局战略和实施规划,地址价值挖掘全面提升网点布局规划的科学性、
|
||||
专业性及合理性,强化社区融合、占据市场主动、培育优质客户。</small></p>
|
||||
</div>
|
||||
<div id = "r-slt3" class="dn">
|
||||
<img src="${staticUrl}/images/fangjia/v5/outlets.png" style="width: 300px;height: 200px;">
|
||||
</div>
|
||||
|
||||
<div id = "slt4" class="dn">
|
||||
<p><label>基于地理位置的财力评级</label></p>
|
||||
<p><small>地理位置与经济实力息息相关</small></p>
|
||||
<p><small>居住品质是甄别财富客户的有效指征</small></p>
|
||||
<p><small>地址价值挖掘,用AI算法深度解析地址背后的信息,助力企业找到“对的人”</small></p>
|
||||
</div>
|
||||
<div id = "r-slt4" class="dn">
|
||||
<img src="${staticUrl}/images/fangjia/v5/bank_img01.jpg" style="width: 300px;height: 200px;">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</center>
|
||||
|
||||
<div class="columnBox firstOne firstOneM" style="margin: 50px 0 20px 0;">
|
||||
<div class="column">
|
||||
<div class="column_center2 mobile01" style="padding-left: 36px;">
|
||||
<p style="width: 100%;font-size: 24px;font-weight: bold;color: #666666;">产品推荐</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<center>
|
||||
<div class="radius" style="height: 335px;">
|
||||
<div class="columnBox firstOne firstOneM" style="margin-top: 20px;">
|
||||
<div class="column">
|
||||
<div class="column_left mobile01" style="margin-left:40px;">
|
||||
<img src="${staticUrl}/images/fangjia/v5/ds2.png" width="440" height="auto">
|
||||
</div>
|
||||
<div class="column_left mobile02">
|
||||
<img src="${staticUrl}/images/fangjia/v5/ds2.png" width="440" height="auto">
|
||||
</div>
|
||||
<div class="column_left">
|
||||
<div>
|
||||
<center><h1 style="font-size: 20px;">地数— 地址价值挖掘平台</h1></center>
|
||||
<p style="padding-top: 20px;"><span style=" font-size: 16px; line-height: 30px;"> “地数”是估家科技在多年积累的房地数据和行业经验基础上,自主研发的地址大数据价值挖掘产品。这一平台的核心是强大的地址数据处理技术和价值计算模型,实现对各类机构、企业相关的位置数据进行自动化的治理,并结合不同场景进一步挖掘其业务价值。</span></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</center>
|
||||
|
||||
<div class="columnBox firstOne firstOneM" style="padding: 120px 0 40px 0;">
|
||||
<div class="column">
|
||||
<div class="column_center2 mobile01" style="padding-left: 36px;">
|
||||
<p style="width: 100%;font-size: 24px;font-weight: bold;color: #666666;">典型客户</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<center>
|
||||
<div class="columnBox firstOne firstOneM" style="padding: 40px 0 80px 0;">
|
||||
<div class="column">
|
||||
<img src="${staticUrl}/images/fangjia/v5/company.png" style="width: 96%;height: 400px;"><br>
|
||||
</div>
|
||||
</div>
|
||||
</center>
|
||||
|
||||
<#--<#if adsList?? && adsList?size gt 0>-->
|
||||
<#-- <#list adsList as ad>-->
|
||||
<#-- <img src="${ad.image!}" class="house_img" onclick=clickUrl("${ad.id}","${ad.url!}")>-->
|
||||
<#-- </#list>-->
|
||||
<#--</#if>-->
|
||||
|
||||
|
||||
<#--<div class="list dn" id="newsList">-->
|
||||
<#-- <div class="listTop">-->
|
||||
<#-- <p><img src="${imgUrl}/images/fangjia/v5/diamond.png"><label>合作伙伴</label></p>-->
|
||||
<#-- <p><img src="${imgUrl}/images/fangjia/v5/diamond.png"><label>房产资讯</label><a href="${basePath}/resource/index" class="lookMore" style="line-height:32px;">查看更多<i></i></a></p>-->
|
||||
<#-- </div>-->
|
||||
<#-- <div class="contentBox">-->
|
||||
<#-- <a class="content" href="${basePath}/terms/ydinfo" style="border-bottom:none;">-->
|
||||
<#-- <img src="${imgUrl}/images/fangjia/v5/youda.jpeg">-->
|
||||
<#-- <div>-->
|
||||
<#-- <p><em>房价网合作伙伴-上海友达土地房地产评估有限公司简介</em></p>-->
|
||||
<#-- <p><span>上海友达土地房地产评估有限公司成立于1995年,是我国最早成立的独立从事房地产估价、土地估价、房地产咨询业务的专业机构之一。</span></p>-->
|
||||
<#-- <p><small>上海房产门户 </small></p>-->
|
||||
<#-- </div>-->
|
||||
<#-- </a>-->
|
||||
<#-- <a class="content" href="${basePath}/terms/ydintr">-->
|
||||
<#-- <img src="${imgUrl}/images/fangjia/v5/youda.jpeg">-->
|
||||
<#-- <div>-->
|
||||
<#-- <p><em>上海友达土地房地产评估有限公司-企业内部培训</em></p>-->
|
||||
<#-- <p><span>2021年8月9日,上海友达土地房地产评估有限公司就房地产征收业务中遇到的诸多问题开展了企业内部培训。本次培训的宗旨是为了进一步提高员工技术水平和工作效率,强化团队合作意识,为公司的可持续性发展奠定良好基础。</span></p>-->
|
||||
<#-- <p><small>上海房产门户 </small></p>-->
|
||||
<#-- </div>-->
|
||||
<#-- </a>-->
|
||||
|
||||
<#-- </div>-->
|
||||
<#--</div>-->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="list">
|
||||
<div class="listTop">
|
||||
<p><img src="${imgUrl}/images/fangjia/v5/diamond.png"><label>商务合作</label></p>
|
||||
</div>
|
||||
<div class="iconBox">
|
||||
<a href="${wwwUrl}/solution/appraisal">
|
||||
<img src="${imgUrl}/images/fangjia/v5/index_iconB01.png">
|
||||
<div>
|
||||
<p><span>贷前估值</span></p>
|
||||
<p><small>解决方案</small></p>
|
||||
</div>
|
||||
</a>
|
||||
<a href="${wwwUrl}/solution/irb">
|
||||
<img src="${imgUrl}/images/fangjia/v5/index_iconB02.png">
|
||||
<div>
|
||||
<p><span>银行内评系统</span></p>
|
||||
<p><small>解决方案</small></p>
|
||||
</div>
|
||||
</a>
|
||||
<a href="${wwwUrl}/solution/post-loan">
|
||||
<img src="${imgUrl}/images/fangjia/v5/index_iconB03.png">
|
||||
<div>
|
||||
<p><span>贷后管理</span></p>
|
||||
<p><small>解决方案</small></p>
|
||||
</div>
|
||||
</a>
|
||||
<a href="${wwwUrl}/solution/finance">
|
||||
<img src="${imgUrl}/images/fangjia/v5/index_iconB04.png">
|
||||
<div>
|
||||
<p><span>房生活金融</span></p>
|
||||
<p><small>解决方案</small></p>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<div class="iconBox">
|
||||
<a href="${wwwUrl}/solution/marketing">
|
||||
<img src="${imgUrl}/images/fangjia/v5/index_iconB05.png">
|
||||
<div>
|
||||
<p><span>房贷业务获客</span></p>
|
||||
<p><small>解决方案</small></p>
|
||||
</div>
|
||||
</a>
|
||||
<a href="${wwwUrl}/solution/location">
|
||||
<img src="${imgUrl}/images/fangjia/v5/index_iconB06.png">
|
||||
<div>
|
||||
<p><span>地址精准营销</span></p>
|
||||
<p><small>解决方案</small></p>
|
||||
</div>
|
||||
</a>
|
||||
<a href="${wwwUrl}/solution/standardization">
|
||||
<img src="${imgUrl}/images/fangjia/v5/index_iconB07.png">
|
||||
<div>
|
||||
<p><span>地址标准化</span></p>
|
||||
<p><small>解决方案</small></p>
|
||||
</div>
|
||||
</a>
|
||||
<a href="${wwwUrl}/solution/api">
|
||||
<img src="${imgUrl}/images/fangjia/v5/index_iconB08.png">
|
||||
<div>
|
||||
<p><span>API数据接口</span></p>
|
||||
<p><small>解决方案</small></p>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<#--<div class="list">-->
|
||||
<#-- <div class="listTop">-->
|
||||
<#-- <p><img src="${imgUrl}/images/fangjia/v5/diamond.png"><label>商务合作</label></p>-->
|
||||
<#-- </div>-->
|
||||
<#-- <div class="iconBox">-->
|
||||
<#-- <a href="${wwwUrl}/solution/appraisal">-->
|
||||
<#-- <img src="${imgUrl}/images/fangjia/v5/index_iconB01.png">-->
|
||||
<#-- <div>-->
|
||||
<#-- <p><span>贷前估值</span></p>-->
|
||||
<#-- <p><small>解决方案</small></p>-->
|
||||
<#-- </div>-->
|
||||
<#-- </a>-->
|
||||
<#-- <a href="${wwwUrl}/solution/irb">-->
|
||||
<#-- <img src="${imgUrl}/images/fangjia/v5/index_iconB02.png">-->
|
||||
<#-- <div>-->
|
||||
<#-- <p><span>银行内评系统</span></p>-->
|
||||
<#-- <p><small>解决方案</small></p>-->
|
||||
<#-- </div>-->
|
||||
<#-- </a>-->
|
||||
<#-- <a href="${wwwUrl}/solution/post-loan">-->
|
||||
<#-- <img src="${imgUrl}/images/fangjia/v5/index_iconB03.png">-->
|
||||
<#-- <div>-->
|
||||
<#-- <p><span>贷后管理</span></p>-->
|
||||
<#-- <p><small>解决方案</small></p>-->
|
||||
<#-- </div>-->
|
||||
<#-- </a>-->
|
||||
<#-- <a href="${wwwUrl}/solution/finance">-->
|
||||
<#-- <img src="${imgUrl}/images/fangjia/v5/index_iconB04.png">-->
|
||||
<#-- <div>-->
|
||||
<#-- <p><span>房生活金融</span></p>-->
|
||||
<#-- <p><small>解决方案</small></p>-->
|
||||
<#-- </div>-->
|
||||
<#-- </a>-->
|
||||
<#-- </div>-->
|
||||
<#-- <div class="iconBox">-->
|
||||
<#-- <a href="${wwwUrl}/solution/marketing">-->
|
||||
<#-- <img src="${imgUrl}/images/fangjia/v5/index_iconB05.png">-->
|
||||
<#-- <div>-->
|
||||
<#-- <p><span>房贷业务获客</span></p>-->
|
||||
<#-- <p><small>解决方案</small></p>-->
|
||||
<#-- </div>-->
|
||||
<#-- </a>-->
|
||||
<#-- <a href="${wwwUrl}/solution/location">-->
|
||||
<#-- <img src="${imgUrl}/images/fangjia/v5/index_iconB06.png">-->
|
||||
<#-- <div>-->
|
||||
<#-- <p><span>地址精准营销</span></p>-->
|
||||
<#-- <p><small>解决方案</small></p>-->
|
||||
<#-- </div>-->
|
||||
<#-- </a>-->
|
||||
<#-- <a href="${wwwUrl}/solution/standardization">-->
|
||||
<#-- <img src="${imgUrl}/images/fangjia/v5/index_iconB07.png">-->
|
||||
<#-- <div>-->
|
||||
<#-- <p><span>地址标准化</span></p>-->
|
||||
<#-- <p><small>解决方案</small></p>-->
|
||||
<#-- </div>-->
|
||||
<#-- </a>-->
|
||||
<#-- <a href="${wwwUrl}/solution/api">-->
|
||||
<#-- <img src="${imgUrl}/images/fangjia/v5/index_iconB08.png">-->
|
||||
<#-- <div>-->
|
||||
<#-- <p><span>API数据接口</span></p>-->
|
||||
<#-- <p><small>解决方案</small></p>-->
|
||||
<#-- </div>-->
|
||||
<#-- </a>-->
|
||||
<#-- </div>-->
|
||||
<#--</div>-->
|
||||
|
||||
|
||||
|
||||
@@ -423,6 +531,30 @@ $.ajax({
|
||||
});
|
||||
|
||||
|
||||
$("#slt1").removeClass("dn")
|
||||
$("#slt1-a").css("background-color","#f39c0f")
|
||||
$("#slt1-a").css("color","#ffffff")
|
||||
|
||||
function showWin(id){
|
||||
|
||||
$("div[id^='slt']").each(function (i, el) {
|
||||
var v = el.getAttribute("id")
|
||||
if(v == id){
|
||||
$("#"+v).removeClass("dn")
|
||||
$("#r-"+v).removeClass("dn")
|
||||
$("#"+v+"-a").css("background-color","#f39c0f")
|
||||
$("#"+v+"-a").css("color","#ffffff")
|
||||
|
||||
}else{
|
||||
$("#"+v).addClass("dn")
|
||||
$("#r-"+v).addClass("dn")
|
||||
$("#"+v+"-a").css("background-color","#f0f0f0")
|
||||
$("#"+v+"-a").css("color","#888")
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
var MINU_SEC = 60 * 1000 ;
|
||||
var HOUR_SEC = 60 * MINU_SEC;
|
||||
var DAY_SEC = HOUR_SEC * 24;
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
<p><label>高效率低成本的在线贷前评估</label></p>
|
||||
<p><small>使用大数据在线估值方式,大大缩减银行对于贷前估值业务的时间;全流程估价管理平台,将信贷业务中贷前估值、贷中审批、贷后管理的全流程环节及参与方进行作业整合,高效提升传统评估业务流程。</small></p>
|
||||
<div class="btnGroup">
|
||||
<a class="link_btn" href="${wwwUrl}/solution/appraisal">查看解决方案</a>
|
||||
<#-- <a class="link_btn" href="${wwwUrl}/solution/appraisal">查看解决方案</a>-->
|
||||
<a class="link_btn" data_id="1001" cat="solution">预约演示</a>
|
||||
</div>
|
||||
</div>
|
||||
@@ -70,7 +70,7 @@
|
||||
<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" href="${wwwUrl}/solution/irb">查看解决方案</a>-->
|
||||
<a class="link_btn" data_id="1002" cat="solution">数据测试申请</a>
|
||||
</div>
|
||||
</div>
|
||||
@@ -88,7 +88,7 @@
|
||||
<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" href="${wwwUrl}/solution/irb">查看解决方案</a>-->
|
||||
<a class="link_btn" data_id="1002" cat="solution">数据测试申请</a>
|
||||
</div>
|
||||
</div>
|
||||
@@ -103,7 +103,7 @@
|
||||
<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" href="${wwwUrl}/solution/post-loan">查看解决方案</a>-->
|
||||
<a class="link_btn" data_id="1003" cat="solution">预约演示</a>
|
||||
</div>
|
||||
</div>
|
||||
@@ -115,7 +115,7 @@
|
||||
<p><label>房生活金融客户端营销解决方案</label></p>
|
||||
<p><small>在银行客户端建立以房为中心的金融生活频道,帮助客户从自我房产分析出发,进行以房融资,以房换房以及以房投资,充分结合金融产品,提高客户粘性并形成稳定的产品获客渠道,同时获取客户数据进行二次营销。</small></p>
|
||||
<div class="btnGroup">
|
||||
<a class="link_btn" href="${wwwUrl}/solution/finance">查看解决方案</a>
|
||||
<#-- <a class="link_btn" href="${wwwUrl}/solution/finance">查看解决方案</a>-->
|
||||
<a class="link_btn" data_id="1004" cat="solution">预约演示</a>
|
||||
</div>
|
||||
</div>
|
||||
@@ -133,7 +133,7 @@
|
||||
<p><label>房生活金融客户端营销解决方案</label></p>
|
||||
<p><small>在银行客户端建立以房为中心的金融生活频道,帮助客户从自我房产分析出发,进行以房融资,以房换房以及以房投资,充分结合金融产品,提高客户粘性并形成稳定的产品获客渠道,同时获取客户数据进行二次营销。</small></p>
|
||||
<div class="btnGroup">
|
||||
<a class="link_btn" href="${wwwUrl}/solution/finance">查看解决方案</a>
|
||||
<#-- <a class="link_btn" href="${wwwUrl}/solution/finance">查看解决方案</a>-->
|
||||
<a class="link_btn" data_id="1004" cat="solution">预约演示</a>
|
||||
</div>
|
||||
</div>
|
||||
@@ -148,7 +148,7 @@
|
||||
<p><label>房贷业务线上营销获客</label></p>
|
||||
<p><small>面对市场的日益竞争,有效利用房估值及房产管理在客户端帮助银行获取房产金融产品的客户。</small></p>
|
||||
<div class="btnGroup">
|
||||
<a class="link_btn" href="${wwwUrl}/solution/marketing">查看解决方案</a>
|
||||
<#-- <a class="link_btn" href="${wwwUrl}/solution/marketing">查看解决方案</a>-->
|
||||
<a class="link_btn" data_id="1005" cat="solution">预约演示</a>
|
||||
</div>
|
||||
</div>
|
||||
@@ -161,20 +161,20 @@
|
||||
<a class="link_btn link01_btn" href="${wwwUrl}/solution/standardization">立即查看</a>
|
||||
</div>
|
||||
|
||||
<div class="resource" data-url = "${wwwUrl}/resource/recommend?module=1002"></div>
|
||||
<#--<div class="resource" data-url = "${wwwUrl}/resource/recommend?module=1002"></div>-->
|
||||
|
||||
<div class="adBox adBox02">
|
||||
<div>
|
||||
<div>
|
||||
<p><label>CPDB房产大数据库</label></p>
|
||||
<p><small>欢迎亲自体验CPDB房产大数据库,您可通过在线方式申请测试数据或联系数据顾问,他们将非常乐意为您的数据需求量身定制合适的解决方案。</small></p>
|
||||
</div>
|
||||
<div class="btnGroup">
|
||||
<a class="link_btn link01_btn" href="${wwwUrl}/cpdb/">CPDB大数据</a>
|
||||
<a class="link_btn link01_btn" href="${wwwUrl}/solution/api">API解决方案</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<#--<div class="adBox adBox02">-->
|
||||
<#-- <div>-->
|
||||
<#-- <div>-->
|
||||
<#-- <p><label>CPDB房产大数据库</label></p>-->
|
||||
<#-- <p><small>欢迎亲自体验CPDB房产大数据库,您可通过在线方式申请测试数据或联系数据顾问,他们将非常乐意为您的数据需求量身定制合适的解决方案。</small></p>-->
|
||||
<#-- </div>-->
|
||||
<#-- <div class="btnGroup">-->
|
||||
<#-- <a class="link_btn link01_btn" href="${wwwUrl}/cpdb/">CPDB大数据</a>-->
|
||||
<#-- <a class="link_btn link01_btn" href="${wwwUrl}/solution/api">API解决方案</a>-->
|
||||
<#-- </div>-->
|
||||
<#-- </div>-->
|
||||
<#--</div>-->
|
||||
|
||||
<#include "/header/v5/_footer.ftl"/>
|
||||
|
||||
|
||||
@@ -116,31 +116,37 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="adBox adBox01 mobile01" style="margin-top:100px;">
|
||||
<p><label>地址精准营销解决方案</label></p>
|
||||
<p><small>房价网为各类大数据平台(DMP)提供以空间地址匹配的房产数据多维度画像,实现地理位置精准营销。</small></p>
|
||||
<a class="link_btn link01_btn" href="${wwwUrl}/solution/location">立即查看</a>
|
||||
</div>
|
||||
<div class="adBox adBox01 mobile02">
|
||||
<p><label>地址精准营销解决方案</label></p>
|
||||
<p><small>房价网为各类大数据平台(DMP)提供以空间地址匹配的房产数据多维度画像,实现地理位置精准营销。</small></p>
|
||||
<a class="link_btn link01_btn" href="${wwwUrl}/solution/location">立即查看</a>
|
||||
<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="1006" cat="solution">立即咨询</a>
|
||||
</div>
|
||||
|
||||
<div class="resource" data-url = "${wwwUrl}/resource/recommend?module=1009"></div>
|
||||
|
||||
<div class="adBox adBox02">
|
||||
<div>
|
||||
<div>
|
||||
<p><label>CPDB房产大数据库</label></p>
|
||||
<p><small>欢迎亲自体验CPDB房产大数据库,您可通过在线方式申请测试数据或联系数据顾问,他们将非常乐意为您的数据需求量身定制合适的解决方案。</small></p>
|
||||
</div>
|
||||
<div class="btnGroup">
|
||||
<a class="link_btn link01_btn" href="${wwwUrl}/cpdb/">CPDB大数据</a>
|
||||
<a class="link_btn link01_btn" href="${wwwUrl}/solution/api">API解决方案</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<#--<div class="adBox adBox01 mobile01" style="margin-top:100px;">-->
|
||||
<#-- <p><label>地址精准营销解决方案</label></p>-->
|
||||
<#-- <p><small>房价网为各类大数据平台(DMP)提供以空间地址匹配的房产数据多维度画像,实现地理位置精准营销。</small></p>-->
|
||||
<#-- <a class="link_btn link01_btn" href="${wwwUrl}/solution/location">立即查看</a>-->
|
||||
<#--</div>-->
|
||||
<#--<div class="adBox adBox01 mobile02">-->
|
||||
<#-- <p><label>地址精准营销解决方案</label></p>-->
|
||||
<#-- <p><small>房价网为各类大数据平台(DMP)提供以空间地址匹配的房产数据多维度画像,实现地理位置精准营销。</small></p>-->
|
||||
<#-- <a class="link_btn link01_btn" href="${wwwUrl}/solution/location">立即查看</a>-->
|
||||
<#--</div>-->
|
||||
|
||||
<#--<div class="resource" data-url = "${wwwUrl}/resource/recommend?module=1009"></div>-->
|
||||
|
||||
<#--<div class="adBox adBox02">-->
|
||||
<#-- <div>-->
|
||||
<#-- <div>-->
|
||||
<#-- <p><label>CPDB房产大数据库</label></p>-->
|
||||
<#-- <p><small>欢迎亲自体验CPDB房产大数据库,您可通过在线方式申请测试数据或联系数据顾问,他们将非常乐意为您的数据需求量身定制合适的解决方案。</small></p>-->
|
||||
<#-- </div>-->
|
||||
<#-- <div class="btnGroup">-->
|
||||
<#-- <a class="link_btn link01_btn" href="${wwwUrl}/cpdb/">CPDB大数据</a>-->
|
||||
<#-- <a class="link_btn link01_btn" href="${wwwUrl}/solution/api">API解决方案</a>-->
|
||||
<#-- </div>-->
|
||||
<#-- </div>-->
|
||||
<#--</div>-->
|
||||
|
||||
<#include "/header/v5/_footer.ftl"/>
|
||||
|
||||
|
||||
@@ -57,9 +57,9 @@
|
||||
<div class="column_right">
|
||||
<p><label>课题研究</label></p>
|
||||
<p><small>房价网可以为政府研究机构提供从区域到城市,从城市到小区,从小区到楼栋,从楼栋到房号的全面覆盖的房产大数据,并为行业研究提供数据咨询服务。我们始终以第三方身份,保障数据的公正、透明和客观。</small></p>
|
||||
<div class="btnGroup">
|
||||
<a class="link_btn large" href="${wwwUrl}/cpdb/">查看CPDB数据库</a>
|
||||
</div>
|
||||
<#-- <div class="btnGroup">-->
|
||||
<#-- <a class="link_btn large" href="${wwwUrl}/cpdb/">查看CPDB数据库</a>-->
|
||||
<#-- </div>-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -69,9 +69,9 @@
|
||||
<p><label>房产报告</label></p>
|
||||
<p><small>房价网可为百姓买卖房产、办理公证、缴纳税费等涉及房价评估所需出具房产报告;以及公证处涉及继承、遗赠等业务时,第三方专业房产评估报告。</small></p>
|
||||
<div class="btnGroup">
|
||||
<a class="link_btn" href="${wwwUrl}/report/appraisal">下载报告样例</a>
|
||||
<#-- <a class="link_btn" href="${wwwUrl}/report/appraisal">下载报告样例</a>-->
|
||||
<a class="link_btn" data_id="1017" cat="report">在线申请报告</a>
|
||||
<a class="link_btn" href="${wwwUrl}/report/appraisal">了解更多</a>
|
||||
<#-- <a class="link_btn" href="${wwwUrl}/report/appraisal">了解更多</a>-->
|
||||
</div>
|
||||
</div>
|
||||
<div class="column_right">
|
||||
@@ -88,9 +88,9 @@
|
||||
<p><label>房产报告</label></p>
|
||||
<p><small>房价网可为百姓买卖房产、办理公证、缴纳税费等涉及房价评估所需出具房产报告;以及公证处涉及继承、遗赠等业务时,第三方专业房产评估报告。</small></p>
|
||||
<div class="btnGroup">
|
||||
<a class="link_btn" href="${wwwUrl}/report/appraisal">下载报告样例</a>
|
||||
<#-- <a class="link_btn" href="${wwwUrl}/report/appraisal">下载报告样例</a>-->
|
||||
<a class="link_btn" data_id="1017" cat="report">在线申请报告</a>
|
||||
<a class="link_btn" href="${wwwUrl}/report/appraisal">了解更多</a>
|
||||
<#-- <a class="link_btn" href="${wwwUrl}/report/appraisal">了解更多</a>-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -36,15 +36,20 @@
|
||||
|
||||
<div class="banner mobile01" style="background:url(${staticUrl}/images/fangjia/v5/itfin_banner.jpg) no-repeat center center;">
|
||||
<div>
|
||||
<p class="p01"><small>行业应用之互联网金融</small></p>
|
||||
<p><label>步入大数据时代,<br>互金行业该如借力房产大数据茁壮发展?</label></p>
|
||||
<p><small>面对激烈的市场竞争,高效的流程和精准的获客是互金行业发展的动力,我们为互金行业提供自动化高效的在线房产评估系统以及基于客户端的获客模块。</small></p>
|
||||
<div class="btnGroup">
|
||||
<a class="link_btn link01_btn large" data_id="1029" cat="solution">立即咨询专业顾问</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="banner mobile02" style="background:url(${staticUrl}/images/fangjia/v5/itfin_banner_m.jpg) no-repeat center center;background-size:100%;">
|
||||
<div>
|
||||
<p class="p01"><small>行业应用之互联网金融</small></p>
|
||||
<p><label>步入大数据时代,<br>互金行业该如借力房产大数据茁壮发展?</label></p>
|
||||
<div class="btnGroup">
|
||||
<a class="link_btn link01_btn large" data_id="1029" cat="solution">立即咨询专业顾问</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -56,10 +61,10 @@
|
||||
<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 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>
|
||||
@@ -68,10 +73,10 @@
|
||||
<div class="column_left">
|
||||
<p><label>精准房贷业务获客</label></p>
|
||||
<p><small>在互金行业的客户端,包括网站、微信以及APP端,增加房产估值模块,通过“房估值”、“有房就贷”和“我的房产”等增加客户活动量并获取房贷产品的目标客户。</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 class="btnGroup">-->
|
||||
<#-- <a class="link_btn" href="${wwwUrl}/solution/marketing">查看解决方案</a>-->
|
||||
<#-- <a class="link_btn" data_id="1005" cat="solution">预约演示</a>-->
|
||||
<#-- </div>-->
|
||||
</div>
|
||||
<div class="column_right">
|
||||
<img src="${staticUrl}/images/fangjia/v5/itfin_img02.jpg">
|
||||
@@ -86,10 +91,10 @@
|
||||
<div class="column_right">
|
||||
<p><label>精准房贷业务获客</label></p>
|
||||
<p><small>在互金行业的客户端,包括网站、微信以及APP端,增加房产估值模块,通过“房估值”、“有房就贷”和“我的房产”等增加客户活动量并获取房贷产品的目标客户。</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 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>
|
||||
@@ -101,28 +106,14 @@
|
||||
<div class="column_right">
|
||||
<p><label>PDS不动产大数据服务平台</label></p>
|
||||
<p><small>从在线获客转换至贷前、贷后服务,进行一站式客户及资产管理;针对抵押贷款的每个环节,以及资产综合质量,应用专业平台提高风险控制管理及营销转换率。</small></p>
|
||||
<div class="btnGroup">
|
||||
<a class="link_btn" href="${wwwUrl}/product/pds">平台介绍</a>
|
||||
<a class="link_btn" data_id="1014" cat="product">预约演示</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="columnBox mobile01">
|
||||
<div class="column">
|
||||
<div class="column_left">
|
||||
<img src="${staticUrl}/images/fangjia/v5/itfin_img03.png">
|
||||
</div>
|
||||
<div class="column_right">
|
||||
<p><label>PDS不动产大数据服务平台</label></p>
|
||||
<p><small>从在线获客转换至贷前、贷后服务,进行一站式客户及资产管理;针对抵押贷款的每个环节,以及资产综合质量,应用专业平台提高风险控制管理及营销转换率。</small></p>
|
||||
<div class="btnGroup">
|
||||
<a class="link_btn" href="${wwwUrl}/product/pds">平台介绍</a>
|
||||
<a class="link_btn" data_id="1014" cat="product">预约演示</a>
|
||||
</div>
|
||||
<#-- <div class="btnGroup">-->
|
||||
<#-- <a class="link_btn" href="${wwwUrl}/product/pds">平台介绍</a>-->
|
||||
<#-- <a class="link_btn" data_id="1014" cat="product">预约演示</a>-->
|
||||
<#-- </div>-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="columnBox mobile02">
|
||||
<div class="column">
|
||||
<div class="column_left" style="margin-top:3rem;margin-bottom:1rem;">
|
||||
@@ -131,34 +122,34 @@
|
||||
<div class="column_right">
|
||||
<p><label>PDS不动产大数据服务平台</label></p>
|
||||
<p><small>从在线获客转换至贷前、贷后服务,进行一站式客户及资产管理;针对抵押贷款的每个环节,以及资产综合质量,应用专业平台提高风险控制管理及营销转换率。</small></p>
|
||||
<div class="btnGroup">
|
||||
<a class="link_btn" href="${wwwUrl}/product/pds">平台介绍</a>
|
||||
<a class="link_btn" data_id="1014" cat="product">预约演示</a>
|
||||
</div>
|
||||
<#-- <div class="btnGroup">-->
|
||||
<#-- <a class="link_btn" href="${wwwUrl}/product/pds">平台介绍</a>-->
|
||||
<#-- <a class="link_btn" data_id="1014" cat="product">预约演示</a>-->
|
||||
<#-- </div>-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="adBox adBox01">
|
||||
<p><label>房贷业务获客解决方案</label></p>
|
||||
<p><small>挖掘存量以及潜在客户贷款业务需求,在客户端精准获客</small></p>
|
||||
<a class="link_btn link01_btn" href="${wwwUrl}/solution/marketing">立即查看</a>
|
||||
<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="1029" cat="solution">立即咨询</a>
|
||||
</div>
|
||||
|
||||
<div class="resource" data-url = "${wwwUrl}/resource/recommend?module=1003"></div>
|
||||
|
||||
<div class="adBox adBox02">
|
||||
<div>
|
||||
<div>
|
||||
<p><label>CPDB房产大数据库</label></p>
|
||||
<p><small>欢迎亲自体验CPDB房产大数据库,您可通过在线方式申请测试数据或联系数据顾问,他们将非常乐意为您的数据需求量身定制合适的解决方案。</small></p>
|
||||
</div>
|
||||
<div class="btnGroup">
|
||||
<a class="link_btn link01_btn" href="${wwwUrl}/cpdb/">CPDB大数据</a>
|
||||
<a class="link_btn link01_btn" href="${wwwUrl}/solution/api">API解决方案</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<#--<div class="resource" data-url = "${wwwUrl}/resource/recommend?module=1003"></div>-->
|
||||
|
||||
<#--<div class="adBox adBox02">-->
|
||||
<#-- <div>-->
|
||||
<#-- <div>-->
|
||||
<#-- <p><label>CPDB房产大数据库</label></p>-->
|
||||
<#-- <p><small>欢迎亲自体验CPDB房产大数据库,您可通过在线方式申请测试数据或联系数据顾问,他们将非常乐意为您的数据需求量身定制合适的解决方案。</small></p>-->
|
||||
<#-- </div>-->
|
||||
<#-- <div class="btnGroup">-->
|
||||
<#-- <a class="link_btn link01_btn" href="${wwwUrl}/cpdb/">CPDB大数据</a>-->
|
||||
<#-- <a class="link_btn link01_btn" href="${wwwUrl}/solution/api">API解决方案</a>-->
|
||||
<#-- </div>-->
|
||||
<#-- </div>-->
|
||||
<#--</div>-->
|
||||
|
||||
<#include "/header/v5/_footer.ftl"/>
|
||||
|
||||
|
||||
@@ -144,28 +144,28 @@
|
||||
<div class="adBox adBox01 mobile01" style="margin-top:100px;">
|
||||
<p><label>贷前估值解决方案</label></p>
|
||||
<p><small>为银行及互金行业,提供高效低成本、客观公正的在线评估服务</small></p>
|
||||
<a class="link_btn link01_btn" href="${wwwUrl}/solution/appraisal">立即查看</a>
|
||||
<a class="link_btn link01_btn" data_id="1026" cat="solution">立即查看</a>
|
||||
</div>
|
||||
<div class="adBox adBox01 mobile02">
|
||||
<p style="margin-top:1rem;margin-bottom:1rem;"><label>贷前估值解决方案</label></p>
|
||||
<p><small>为银行及互金行业,提供高效低成本、客观公正的在线评估服务</small></p>
|
||||
<a class="link_btn link01_btn" href="${wwwUrl}/solution/appraisal">立即查看</a>
|
||||
<a class="link_btn link01_btn" data_id="1026" cat="solution">立即查看</a>
|
||||
</div>
|
||||
|
||||
<div class="resource" data-url = "${wwwUrl}/resource/recommend?module=1020"></div>
|
||||
<#--<div class="resource" data-url = "${wwwUrl}/resource/recommend?module=1020"></div>-->
|
||||
|
||||
<div class="adBox adBox02">
|
||||
<div>
|
||||
<div>
|
||||
<p><label>CPDB房产大数据库</label></p>
|
||||
<p><small>欢迎亲自体验CPDB房产大数据库,您可通过在线方式申请测试数据或联系数据顾问,他们将非常乐意为您的数据需求量身定制合适的解决方案。</small></p>
|
||||
</div>
|
||||
<div class="btnGroup">
|
||||
<a class="link_btn link01_btn" href="${wwwUrl}/cpdb/">CPDB大数据</a>
|
||||
<a class="link_btn link01_btn" href="${wwwUrl}/solution/api">API解决方案</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<#--<div class="adBox adBox02">-->
|
||||
<#-- <div>-->
|
||||
<#-- <div>-->
|
||||
<#-- <p><label>CPDB房产大数据库</label></p>-->
|
||||
<#-- <p><small>欢迎亲自体验CPDB房产大数据库,您可通过在线方式申请测试数据或联系数据顾问,他们将非常乐意为您的数据需求量身定制合适的解决方案。</small></p>-->
|
||||
<#-- </div>-->
|
||||
<#-- <div class="btnGroup">-->
|
||||
<#-- <a class="link_btn link01_btn" href="${wwwUrl}/cpdb/">CPDB大数据</a>-->
|
||||
<#-- <a class="link_btn link01_btn" href="${wwwUrl}/solution/api">API解决方案</a>-->
|
||||
<#-- </div>-->
|
||||
<#-- </div>-->
|
||||
<#--</div>-->
|
||||
|
||||
<#include "/header/v5/_footer.ftl"/>
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
</#if>
|
||||
</div>
|
||||
</#if>
|
||||
<#include "sub_nav.ftl"/>
|
||||
<#-- <#include "sub_nav.ftl"/>-->
|
||||
<div class="contentBox">
|
||||
<#list newsResources as newsResource>
|
||||
<a class="content" href="${wwwUrl}/resource/info?id=${newsResource.id}">
|
||||
|
||||
@@ -194,8 +194,8 @@
|
||||
<#else>
|
||||
<div class="main_left" style="background:url(${imgUrl}/images/fangjia/v5/enquire_download.jpg);">
|
||||
<div>
|
||||
<p><label>资源中心</label></p>
|
||||
<p><small>定期更新房产大数据行业信息,房产数据研究分析,房价网动态及合作伙伴案例,并提供各类可供下载的相关数据与文档。</small></p>
|
||||
<p><label></label></p>
|
||||
<p><small></small></p>
|
||||
</div>
|
||||
</div>
|
||||
</#if>
|
||||
|
||||
@@ -0,0 +1,463 @@
|
||||
|
||||
<!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>
|
||||
<link href="${staticUrl}/style/fangjia/v5/pow.css?v=${version}" rel="stylesheet">
|
||||
<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 {
|
||||
padding: 60px 0;
|
||||
}
|
||||
|
||||
.container {
|
||||
width: 1400px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding-bottom: 80px
|
||||
;
|
||||
}
|
||||
|
||||
.container #title-icon-1 {
|
||||
content: url("${staticUrl}/images/fangjia/v5/01_01.png");
|
||||
}
|
||||
|
||||
.container #title-icon-2 {
|
||||
content: url("${staticUrl}/images/fangjia/v5/02_01.png");
|
||||
}
|
||||
|
||||
.container #title-icon-3 {
|
||||
content: url("${staticUrl}/images/fangjia/v5/03_01.png");
|
||||
}
|
||||
|
||||
.container #title-icon-4 {
|
||||
content: url("${staticUrl}/images/fangjia/v5/04_01.png");
|
||||
}
|
||||
|
||||
.container #title-icon-5 {
|
||||
content: url("${staticUrl}/images/fangjia/v5/05_01.png");
|
||||
}
|
||||
|
||||
|
||||
.container .item {
|
||||
width: 250px;
|
||||
border-radius: 10px;
|
||||
padding: 20px 0;
|
||||
box-shadow: 0 2px 15px 2px rgb(242 242 242);
|
||||
}
|
||||
|
||||
.container .item:hover {
|
||||
border: 1px solid #a8a8a8;
|
||||
box-shadow: 0 0 10px #a8a8a8;
|
||||
/*background-color: #eed992;*/
|
||||
color: white;
|
||||
}
|
||||
|
||||
<#--.container .item:hover #title-icon-1 {-->
|
||||
<#-- content: url("${staticUrl}/images/fangjia/v5/01_02.png");-->
|
||||
<#--}-->
|
||||
|
||||
<#--.container .item:hover #title-icon-2 {-->
|
||||
<#-- content: url("${staticUrl}/images/fangjia/v5/02_02.png");-->
|
||||
<#--}-->
|
||||
|
||||
<#--.container .item:hover #title-icon-3 {-->
|
||||
<#-- content: url("${staticUrl}/images/fangjia/v5/03_02.png");-->
|
||||
<#--}-->
|
||||
|
||||
<#--.container .item:hover #title-icon-4 {-->
|
||||
<#-- content: url("${staticUrl}/images/fangjia/v5/04_02.png");-->
|
||||
<#--}-->
|
||||
|
||||
<#--.container .item:hover #title-icon-5 {-->
|
||||
<#-- content: url("${staticUrl}/images/fangjia/v5/05_02.png");-->
|
||||
<#--}-->
|
||||
|
||||
.container .item-icon {
|
||||
margin-left: 43px;
|
||||
|
||||
}
|
||||
.container .item-icon img {
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
|
||||
}
|
||||
.container .item-icon p{
|
||||
padding-top: 5px;
|
||||
padding-left: 10px;
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.mt20{
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.column > div p {
|
||||
width: 500px;
|
||||
}
|
||||
|
||||
.container .item-content {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.container .item-title {
|
||||
text-align: center;
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
line-height: 2;
|
||||
|
||||
}
|
||||
|
||||
.container .item-content {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.container ol, .container ul,.container li{
|
||||
line-height: 1.5;
|
||||
text-align: left;
|
||||
margin: 0;
|
||||
list-style-image: url("${staticUrl}/images/fangjia/v5/list_icon.png");
|
||||
padding-left: 5px;
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
.container li {
|
||||
margin: 0;
|
||||
padding-left: -5px; /* 设置内部缩进为1em */
|
||||
line-height: 28px;
|
||||
}
|
||||
|
||||
@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/location_banner.jpg) no-repeat center center;">
|
||||
<div>
|
||||
<p><label>千锤百炼 稳如泰山</label></p>
|
||||
<p><small>十七年来为中国上亿套房产估值,以覆盖全国的房产/地址大数据库、领先的数据处理能力和算法模型,<br/>为政府机构、国有银行总行及各行业头部企业提供大数据产品,并赋能场景挖掘更多数据价值。</small></p>
|
||||
<div class="btnGroup">
|
||||
<a class="link_btn link01_btn large" data_id="1028" cat="solution">立即咨询专业顾问</a>
|
||||
</div>
|
||||
</div>
|
||||
</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><label>十七年来为中国上亿套房产估值,以覆盖全国的房产/地址大数据库、领先的数据处理能力和算法模型,为政府机构、国有银行总行及各行业头部企业提供大数据产品,并赋能场景挖掘更多数据价值。</label></p>
|
||||
<div class="btnGroup">
|
||||
<a class="link_btn link01_btn large" data_id="1006" cat="solution">立即咨询专业顾问</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<center>
|
||||
<div class="container">
|
||||
<div class="item">
|
||||
<div class="item-icon" style="display: flex;">
|
||||
<img id="title-icon-1" src="" alt="">
|
||||
<p>基础数据</p>
|
||||
</div>
|
||||
<#-- <div class="item-title">-->
|
||||
<#-- <span>基础数据</span>-->
|
||||
<#-- </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>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="item">
|
||||
<div class="item-icon" style="display: flex;">
|
||||
<img id="title-icon-2" src="" alt="">
|
||||
<p>楼盘字典</p>
|
||||
</div>
|
||||
<#-- <div class="item-title">-->
|
||||
<#-- <span>楼盘字典</span>-->
|
||||
<#-- </div>-->
|
||||
<div class="item-content mt20">
|
||||
<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>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="item-icon" style="display: flex;">
|
||||
<img id="title-icon-3" src="" alt="">
|
||||
<p>房价数据</p>
|
||||
</div>
|
||||
<#-- <div class="item-title">-->
|
||||
<#-- <span>房价数据</span>-->
|
||||
<#-- </div>-->
|
||||
<div class="item-content mt20">
|
||||
<ol>
|
||||
<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>
|
||||
</div>
|
||||
<#-- <div class="item-title">-->
|
||||
<#-- <span>市场动态数据</span>-->
|
||||
<#-- </div>-->
|
||||
<div class="item-content mt20">
|
||||
<ol>
|
||||
<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>
|
||||
</div>
|
||||
<#-- <div class="item-title">-->
|
||||
<#-- <span>数据分析</span>-->
|
||||
<#-- </div>-->
|
||||
<div class="item-content mt20">
|
||||
<ol>
|
||||
<li>城市/区域/楼盘房价指数</li>
|
||||
<li>租售比</li>
|
||||
<li>楼盘价值评级</li>
|
||||
<li>地址财力评级</li>
|
||||
<li>地址风险评级</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</center>
|
||||
|
||||
<div class="featureBox threePiece mobile01" style="margin-top:-75px;">
|
||||
<div class="feature" style="margin-bottom:100px;">
|
||||
<i class="cpdb_iconA01"></i>
|
||||
<p><label>覆盖<em>367</em>个城市</label></p>
|
||||
<p><small>302个地级及以上城市,40个地区、自治州、盟,以及25个省直辖县级单位</small></p>
|
||||
</div>
|
||||
<div class="feature" style="margin-bottom:100px;">
|
||||
<i class="cpdb_iconA02"></i>
|
||||
<p><label>覆盖全国<em>90</em>万个楼盘</label></p>
|
||||
<p><small>90万个楼盘以及200万商业、酒店、医疗、教育机构及观览建筑等</small></p>
|
||||
</div>
|
||||
<div class="feature" style="margin-bottom:100px;">
|
||||
<i class="cpdb_iconA03"></i>
|
||||
<p><label>覆盖<em>2841</em>个行政区域</label></p>
|
||||
<p><small>行政区:1512,县:853,市:307,行政区自治县:117,旗:49,自治旗:3</small></p>
|
||||
</div>
|
||||
<div class="feature">
|
||||
<i class="cpdb_iconA04"></i>
|
||||
<p><label>API调用总量10亿次<br></label></p>
|
||||
<p><em>1,003,000,000</em></p>
|
||||
</div>
|
||||
<div class="feature">
|
||||
<i class="cpdb_iconA05"></i>
|
||||
<p><label>估价记录总量1.43亿条<br></label></p>
|
||||
<p><em>143,000,000</em></p>
|
||||
</div>
|
||||
<div class="feature">
|
||||
<i class="cpdb_iconA06"></i>
|
||||
<p><label>8亿条样本信息<br></label></p>
|
||||
<p><em>805,000,000</em></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="featureBox threePiece featureBoxM mobile02">
|
||||
<div class="feature">
|
||||
<i class="cpdb_iconA01"></i>
|
||||
<p class="lh5"><label>覆盖<em>367</em>个城市</label></p>
|
||||
<p><small>302个地级及以上城市,40个地区、自治州、盟,以及25个省直辖县级单位</small></p>
|
||||
</div>
|
||||
<div class="feature">
|
||||
<i class="cpdb_iconA02"></i>
|
||||
<p class="lh5"><label>覆盖全国<em>90</em>万个楼盘</label></p>
|
||||
<p><small>90万个楼盘以及135万商业、酒店、医疗、教育机构及观览建筑等</small></p>
|
||||
</div>
|
||||
<div class="feature">
|
||||
<i class="cpdb_iconA03"></i>
|
||||
<p class="lh6P"><label>覆盖<em>2841</em>个行政区域</label></p>
|
||||
<p><small>行政区:1512,县:853,市:307,行政区自治县:117,旗:49,自治旗:3</small></p>
|
||||
</div>
|
||||
<div class="feature">
|
||||
<i class="cpdb_iconA04"></i>
|
||||
<p class="lh5"><label>API调用总量10亿次<br></label></p>
|
||||
<p><em>1,001,000,000</em></p>
|
||||
</div>
|
||||
<div class="feature">
|
||||
<i class="cpdb_iconA05"></i>
|
||||
<p class="lh5"><label>估价记录总量1.09亿条<br></label></p>
|
||||
<p><em>109,000,000</em></p>
|
||||
</div>
|
||||
<div class="feature">
|
||||
<i class="cpdb_iconA06"></i>
|
||||
<p><label>8亿条样本信息<br></label></p>
|
||||
<p><em>805,000,000</em></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<#--<div class="columnBox firstOne firstOneM" style="padding: 80px 0 80px 0;">-->
|
||||
<#-- <div class="column">-->
|
||||
<#-- <img src="${staticUrl}/images/fangjia/v5/power1.png" style="width: 100%;">-->
|
||||
<#-- </div>-->
|
||||
<#--</div>-->
|
||||
|
||||
<div class="columnBox firstOne" >
|
||||
<div class="column">
|
||||
<div class="column_left">
|
||||
<img src="${staticUrl}/images/fangjia/v5/consulting_img01.jpg">
|
||||
</div>
|
||||
<div class="column_right">
|
||||
<p><label>自有数据采集平台 </label></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>深耕17年房产/地理位置基础数据建设和交易数据沉淀,数据覆盖全国367个城市及地区</small></p>
|
||||
</div>
|
||||
<div class="column_right">
|
||||
<img src="${staticUrl}/images/fangjia/v5/consulting_img02.jpg">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="columnBox bg mobile02">
|
||||
<div class="column">
|
||||
<div class="column_left">
|
||||
<img src="${staticUrl}/images/fangjia/v5/consulting_img02.jpg">
|
||||
</div>
|
||||
<div class="column_right">
|
||||
<p><label>专业专注</label></p>
|
||||
<p><small>深耕17年房产/地理位置基础数据建设和交易数据沉淀,数据覆盖全国367个城市及地区</small></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="columnBox">
|
||||
<div class="column">
|
||||
<div class="column_left">
|
||||
<img src="${staticUrl}/images/fangjia/v5/consulting_img03.jpg">
|
||||
</div>
|
||||
<div class="column_right">
|
||||
<p><label>经验丰富 服务行业标杆</label></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/appraisal_img05.png" style="width: 470px;height: 230px;">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="columnBox bg mobile02">
|
||||
<div class="column">
|
||||
<div class="column_left">
|
||||
<img src="${staticUrl}/images/fangjia/v5/consulting_img02.jpg">
|
||||
</div>
|
||||
<div class="column_right">
|
||||
<p><label>强大的数据处理能力</label></p>
|
||||
<p><small>基于自然语言处理算法的名址识别系统提供了先进的地址处理机制,能对不同城市、不同形式的地址,提供地址的补全、纠错、标准化等服务。</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="1028" cat="solution">立即咨询</a>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<#--<div class="adBox adBox02">-->
|
||||
<#-- <div>-->
|
||||
<#-- <div>-->
|
||||
<#-- <p><label>CPDB房产大数据库</label></p>-->
|
||||
<#-- <p><small>欢迎亲自体验CPDB房产大数据库,您可通过在线方式申请测试数据或联系数据顾问,他们将非常乐意为您的数据需求量身定制合适的解决方案。</small></p>-->
|
||||
<#-- </div>-->
|
||||
<#-- <div class="btnGroup">-->
|
||||
<#-- <a class="link_btn link01_btn" href="${wwwUrl}/cpdb/">CPDB大数据</a>-->
|
||||
<#-- <a class="link_btn link01_btn" href="${wwwUrl}/solution/api">API解决方案</a>-->
|
||||
<#-- </div>-->
|
||||
<#-- </div>-->
|
||||
<#--</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 {
|
||||
padding: 60px 0;
|
||||
}
|
||||
.radius{
|
||||
width: 600px;
|
||||
height: 650px;
|
||||
margin: 100px auto;
|
||||
border: 1px solid #c2c2c2;
|
||||
border-radius: 20px 20px 20px 20px;
|
||||
/*box-shadow: 10px 10px 10px 10px rgba(0, 0, 0, .1);*/
|
||||
/*box-shadow: 0 0 10px rgba(0,0,0,0.3), 0 0 10px rgba(0,0,0,0.3) inset;*/
|
||||
|
||||
}
|
||||
|
||||
.bg{background-color: #f0f0f0;}
|
||||
.radius p small label{
|
||||
color: #f39c0f;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.radius:hover {
|
||||
box-shadow: 10px 10px 10px 10px rgba(0, 0, 0, .3);
|
||||
}
|
||||
.column > div p {
|
||||
width: 560px;
|
||||
padding-left: 20px;
|
||||
height: 50px;
|
||||
|
||||
}
|
||||
|
||||
.dot {
|
||||
position: absolute;
|
||||
width: 4px;
|
||||
height: 4px;
|
||||
border-radius: 100%;
|
||||
background: #999999;
|
||||
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .2);
|
||||
}
|
||||
|
||||
@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/consulting_banner.jpg) no-repeat center center;">
|
||||
<div>
|
||||
<p><label>自动化地址(位置)数据综合治理</label></p>
|
||||
<p><small>地址数据治理除了以地址标准化为核心的一系列智能化服务,更具有为各行各业建立以地址(位置)信息<br/>为基础的数据库与价值挖掘体系的能力。夯实数据资产数字化建设,全面赋能业务场景。</small></p>
|
||||
<div class="btnGroup">
|
||||
<a class="link_btn link01_btn large" data_id="1025" cat="solution">立即咨询专业顾问</a>
|
||||
</div>
|
||||
</div>
|
||||
</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><label>自动化地址(位置)数据综合治理</label></p>
|
||||
<div class="btnGroup">
|
||||
<a class="link_btn link01_btn large" data_id="1006" cat="solution">立即咨询专业顾问</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="columnBox">
|
||||
<div class="column bg" style="height: 350px;">
|
||||
<div class="column_left" style="padding-top: 48px;">
|
||||
<img src="${staticUrl}/images/fangjia/v5/consulting_img03.jpg">
|
||||
</div>
|
||||
<div class="column_left">
|
||||
<p style="padding-top: 25px;"><label >地址治理 </label></p>
|
||||
<p style="padding-top: 10px;height: auto;"><small>随着金融机构数字化转型加速度,数据资产的综合建设迫在眉睫。数据资产的数量、质量,采集、管理和应用能力的强弱直接影响金融机构的经营与创造价值的能力,也将决定未来新的竞争优势。一个良好的数据治理体系,为数据资产管理打下坚实的基础,是实现数据资产经营和变现的重要前提和保障。</small></p>
|
||||
<p style="padding-top: 10px;height: auto;"><small>地址信息是金融机构的重要数据资产,在金融业务过程中已经完成了地址数据的积累和存储。然而,地址信息非常复杂,普遍存在信息不准确、不完整、数据不融合、标准不统、应用难度高等一系列问题,需要应用科技力量实现自动化数据治理及长期建设。</small></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<#--<div class="columnBox firstOne firstOneM" style="padding: 80px 0 80px 0;">-->
|
||||
<#-- <div class="column">-->
|
||||
<#-- <div class="column_center2 mobile01">-->
|
||||
<#-- <p style="width: 100%;">银保监会2022年5月发布《银行业金融机构数据治理指引》,要求银行业金融机构提高数据管理和数据质量质效,将数据应用嵌入到业务经营、风</p>-->
|
||||
<#-- <p style="width: 100%;">险管理和内部控制的全流程。地址数据是金融大数据的重要组成部分,地址信息数字化建设是实现数智银行转型不可或缺的一环。</p>-->
|
||||
|
||||
<#-- </div>-->
|
||||
|
||||
<#-- <div class="column_center mobile02">-->
|
||||
<#-- <p>银保监会2022年5月发布《银行业金融机构数据治理指引》,要求银行业金融机构提高数据管理和数据质量质效,将数据应用嵌入到业务经营、风险管理和内部控制的全流程。-->
|
||||
<#-- 地址数据是金融大数据的重要组成部分,地址信息数字化建设是实现数智银行转型不可或缺的一环。</p>-->
|
||||
|
||||
<#-- </div>-->
|
||||
<#-- </div>-->
|
||||
<#--</div>-->
|
||||
|
||||
<div class="columnBox firstOne firstOneM" style="padding: 80px 0 80px 0;">
|
||||
<div class="column">
|
||||
<img src="${staticUrl}/images/fangjia/v5/addrpro-1.png" style="width: 100%;">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="mobile01">
|
||||
<div class="column">
|
||||
<div class="column_left" style="margin-top: 20px;">
|
||||
<img src="${staticUrl}/images/fangjia/v5/addrpro-2.png" style="width: 550px;">
|
||||
</div>
|
||||
<div class="column_left" style="margin-left: 50px;margin-top: -20px;">
|
||||
<div class="radius" style="height: 400px;width: 560px;">
|
||||
<center><h1 style="font-size: 24px;margin-top: 20px;">地址治理应用场景</h1></center>
|
||||
<p><small><label>⬤</label> 实现存量客户地址信息批量标准化,解决海量地址治理难的困扰;</small></p>
|
||||
<p><small><label>⬤</label> 新增客户系统录入地址联想,提升用户体验;</small></p>
|
||||
<p><small><label>⬤</label> 新增地址信息实时标准化,按合规要求映射行政编码;</small></p>
|
||||
<p><small><label>⬤</label> 建立模型对不同供应商的数据进行数据融合建设,以适用不同业务场景;</small></p>
|
||||
<p><small><label>⬤</label> 建立楼盘字典及行内自有地址/楼盘数据库,并持续更新数据;</small></p>
|
||||
<p><small><label>⬤</label> 为各类系统提供地址/房产及相关数据样本,为系统输入结果的准确性提</small></p>
|
||||
<p><small> 供保障。</small></p>
|
||||
</div>
|
||||
</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="1025" cat="solution">立即咨询</a>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<#include "/header/v5/_footer.ftl"/>
|
||||
|
||||
<script src="${staticUrl}/js/fangjia/v5/main.js?v=${version}"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -198,19 +198,19 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="resource" data-url = "${wwwUrl}/resource/recommend?module=1017"></div>
|
||||
<#--<div class="resource" data-url = "${wwwUrl}/resource/recommend?module=1017"></div>-->
|
||||
|
||||
<div class="adBox adBox02">
|
||||
<div>
|
||||
<div>
|
||||
<p><label>地址标准化解决方案</label></p>
|
||||
<p><small>您还在为批量地址数据标准化烦恼,您可通过在线方式申请测试数据或联系数据顾问,他们将非常乐意为您的数据需求量身定制合适的解决方案。</small></p>
|
||||
</div>
|
||||
<div class="btnGroup">
|
||||
<a class="link_btn link01_btn" href="${wwwUrl}/solution/standardization">立即查看</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<#--<div class="adBox adBox02">-->
|
||||
<#-- <div>-->
|
||||
<#-- <div>-->
|
||||
<#-- <p><label>地址标准化解决方案</label></p>-->
|
||||
<#-- <p><small>您还在为批量地址数据标准化烦恼,您可通过在线方式申请测试数据或联系数据顾问,他们将非常乐意为您的数据需求量身定制合适的解决方案。</small></p>-->
|
||||
<#-- </div>-->
|
||||
<#-- <div class="btnGroup">-->
|
||||
<#-- <a class="link_btn link01_btn" href="${wwwUrl}/solution/standardization">立即查看</a>-->
|
||||
<#-- </div>-->
|
||||
<#-- </div>-->
|
||||
<#--</div>-->
|
||||
|
||||
<#include "/header/v5/_footer.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="房价网利用科学专业的估价方法和AVM房价计算模型,通过系统自动生成房产估值,提供高效低成本,公立客观的贷前估值解决方案。">
|
||||
<#include "../jsconstants.ftl" />
|
||||
|
||||
@@ -30,20 +30,18 @@
|
||||
|
||||
<#include "/header/v5/_header.ftl"/>
|
||||
|
||||
<div class="banner mobile01" style="background:url(${staticUrl}/images/fangjia/v5/appraisal_banner.jpg) no-repeat center center;">
|
||||
<div class="banner mobile01" style="background:url(${staticUrl}/images/fangjia/v5/index_banner08-2.png) no-repeat center center;">
|
||||
<div>
|
||||
<p class="p01"><small>贷前估值解决方案</small></p>
|
||||
<p class="p02"><label>高效低成本、客观公正的在线房产评估</label></p>
|
||||
<p><small>房价网经过长时间积累,以大数据为依据,结合近十年不断钻研科学专业的估价方法和AVM房价计算模型,<br>系统自动生成估值,高效低成本,客观公正。</small></p>
|
||||
<p><label>押品全生命周期价值管理</label></p>
|
||||
<p><small>围绕押品信贷业务全生命周期,从营销展业,贷前、贷中、贷后、以及业务运营形成一体式的风险防控,<br/>通过建立房贷业务地图平台,实现全方位监测。</small></p>
|
||||
<div class="btnGroup">
|
||||
<a class="link_btn link01_btn large" data_id="1001" cat="solution">立即咨询专业顾问</a>
|
||||
<a class="link_btn link01_btn large" data_id="1030" cat="solution">立即咨询专业顾问</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="banner mobile02" style="background:url(${staticUrl}/images/fangjia/v5/appraisal_banner_m.jpg) no-repeat center center;background-size:100%;">
|
||||
<div>
|
||||
<p class="p01"><small>贷前估值解决方案</small></p>
|
||||
<p class="p02"><label>高效低成本、客观公正的在线房产评估</label></p>
|
||||
<p><label>押品全生命周期价值管理</label></p>
|
||||
<div class="btnGroup">
|
||||
<a class="link_btn link01_btn large" data_id="1001" cat="solution">立即咨询专业顾问</a>
|
||||
</div>
|
||||
@@ -51,151 +49,38 @@
|
||||
</div>
|
||||
|
||||
<div class="columnBox firstOne firstOneM">
|
||||
<p>业务背景</p>
|
||||
<p>押品价值管理</p>
|
||||
<div class="column">
|
||||
<div class="column_left mobile01" style="margin-left:40px;">
|
||||
<img src="${staticUrl}/images/fangjia/v5/appraisal_img01.png">
|
||||
<img src="${staticUrl}/images/fangjia/v5/appraisal_img05.png" width="440" height="auto">
|
||||
</div>
|
||||
<div class="column_left mobile02">
|
||||
<img src="${staticUrl}/images/fangjia/v5/appraisal_img01.png">
|
||||
<img src="${staticUrl}/images/fangjia/v5/appraisal_img05.png" width="440" height="auto">
|
||||
</div>
|
||||
<div class="column_right">
|
||||
<div>
|
||||
<p><span>传统评估机构由估价人员评估房产,人工操作流程长、效率低,银行的业务经理日常业务咨询通常需要数小时才能得到价格回复,造成成单机会流失。</span></p>
|
||||
<p><span> 近年来,政策、经济和市场的变化,使各地房地产市场出现波动,随着银行信贷业务增速放缓、交易规模增幅收窄,对原有押品管理体系的抗风险能力、数字化运营能力提出了挑战。</span></p>
|
||||
</div>
|
||||
<div>
|
||||
<p><span>估价人员水平参差不齐,对不太了解的房产无法向银行业务经理提供详细的介绍,评估报价范围过于宽泛,无法对押品进行准确估值;还存在人为干预估值的现象,导致银行抵押风险增大。</span></p>
|
||||
</div>
|
||||
<div>
|
||||
<p><span>评估报告人工制作装订,过程繁琐且错误率高;报告送达以快递方式为主,成本高,送达时间难以控制;报告收费高,业务成本增加。</span></p>
|
||||
</div>
|
||||
<div>
|
||||
<p><span>各个支行都可以独立完成贷前评估业务,而合作的评估机构并不完全统一,业务统计和成本结算都难以统一管理,对下辖各支行的具体业务管理程度较低。</span></p>
|
||||
<p><span> 估家科技是押品数字化建设领域领跑者,围绕押品信贷业务全生命周期,从营销展业、贷前、贷中、贷后以及业务运营形成一体式的风险防控,通过建立房贷业务地图平台,实现全方位监测。估家科技十多年来为包括国有行在内的广大银行提供地理位置/房产大数据及人工智能技术,全面赋能银行押品管理数字化建设,获得了丰富的项目成果与实施经验。
|
||||
</span></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="columnBox contrast bg">
|
||||
<div class="column">
|
||||
<div class="column_left">
|
||||
<p><label><i class="irb_iconA01"></i>业务难点</label></p>
|
||||
<div>
|
||||
<font></font>
|
||||
<p><span>评估结果不客观</span><br><small>传统评估机构操作存在人为干预因素,但风险结果要由银行担负。</small></p>
|
||||
</div>
|
||||
<div>
|
||||
<font></font>
|
||||
<p><span>整体管理难</span><br><small>合作的评估公司数量众多,业务管理困难。银行业务环节相对零散,银行管理部门无法清楚了解各支行具体业务情形。</small></p>
|
||||
</div>
|
||||
<div>
|
||||
<font></font>
|
||||
<p><span>评估效率低</span><br><small>询价+正式报告需要3-5个工作日。</small></p>
|
||||
</div>
|
||||
<div>
|
||||
<font></font>
|
||||
<p><span>评估成本高</span><br><small>传统评估机构收费标准在1‰-3‰之间。</small></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="column_right">
|
||||
<p><label><i class="irb_iconA02"></i>房价网优势</label></p>
|
||||
<div>
|
||||
<font></font>
|
||||
<p><span>估值精准</span><br><small>房价网经过长时间积累,以大数据为依据,结合近十年不断钻研科学专业的估价方法和AVM房价计算模型,系统自动生成估值,避免人为因素干扰。</small></p>
|
||||
</div>
|
||||
<div>
|
||||
<font></font>
|
||||
<p><span>降低评估成本</span><br><small>对比传统评估费用至少节省80%以上。</small></p>
|
||||
</div>
|
||||
<div>
|
||||
<font></font>
|
||||
<p><span>缩短评估流程</span><br><small>在线查询,估值秒回;在线生成电子评估报告。</small></p>
|
||||
</div>
|
||||
<div>
|
||||
<font></font>
|
||||
<p><span>后台管理便捷</span><br><small>系统后台自动统计下载报告清单,提高效率。</small></p>
|
||||
</div>
|
||||
<div>
|
||||
<font></font>
|
||||
<p><span>服务保障</span><br><small>线下专业估价团队支持,遇“疑难杂症”或价格异议,直接进入人工流程,专业估价师快速响应。<br>专业的售后技术服务,确保平台稳定运行。</small></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="columnBox">
|
||||
<p>解决方案</p>
|
||||
<img src="${staticUrl}/images/fangjia/v5/appraisal_img02.png" class="mobile01" style="margin-bottom:50px;">
|
||||
<img src="${staticUrl}/images/fangjia/v5/appraisal_img02_m.png" class="mobile02 mobile02a">
|
||||
<div class="column">
|
||||
<div class="column_left">
|
||||
<div class="description">
|
||||
<i class="appraisal_icon01"></i>
|
||||
<div>
|
||||
<p><label>估值客观</label></p>
|
||||
<p><small>多渠道数据源+科学计算方案和数据模型。</small></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="description">
|
||||
<i class="appraisal_icon02"></i>
|
||||
<div>
|
||||
<p><label>缩短评估流程</label></p>
|
||||
<p><small>在线查询,估值秒回,可在线下载打印报告。</small></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="column_right">
|
||||
<div class="description">
|
||||
<i class="appraisal_icon03"></i>
|
||||
<div>
|
||||
<p><label>后台管理便捷</label></p>
|
||||
<p><small>总行/分行拥有后台管理界面,系统自动统计业务详情,让管理部门能时刻了解下辖支行业务状况,提高管理结算效率。</small></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="description">
|
||||
<i class="appraisal_icon04"></i>
|
||||
<div>
|
||||
<p><label>降低评估成本</label></p>
|
||||
<p><small>对比传统评估费用至少节省80%以上。</small></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<img src="${staticUrl}/images/fangjia/v5/column_bg02.png" class="column_bg" style="bottom:0;">
|
||||
</div>
|
||||
<div class="columnBox product bg">
|
||||
<div class="column column02">
|
||||
<div class="column_left">
|
||||
<p><label>AMP估价管理平台</label></p>
|
||||
<p><small>房价网将信贷业务中贷前估值、贷中审批、贷后管理的全流程环节及参与方进行作业整合,一站式解决信贷业务的各类问题。</small></p>
|
||||
<img src="${staticUrl}/images/fangjia/v5/appraisal_img03.png">
|
||||
<a class="link_btn" href="${wwwUrl}/product/amp">了解更多</a>
|
||||
</div>
|
||||
<div class="column_right">
|
||||
<p><label>房调报告</label></p>
|
||||
<p><small>《房产专业调查评估报告》是能精确到户的第三方调查报告,主要内容是分析每套房子背后的微观信息,用客观公正的数据为广大买家、卖家、评估师、公证员、分析师、房产经纪人等业内人士提供最专业、客观、先进的房产分析数据。</small></p>
|
||||
<img src="${staticUrl}/images/fangjia/v5/appraisal_img04.png" class="appraisal_img04">
|
||||
<a class="link_btn" href="${wwwUrl}/report/appraisal" style="margin-top:-135px;">了解更多</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="columnBox" style="padding: 30px">
|
||||
<img src="${staticUrl}/images/fangjia/v5/appraisal_img06.png" class="mobile01" style="margin-bottom:50px;">
|
||||
<img src="${staticUrl}/images/fangjia/v5/appraisal_img06.png" class="mobile02 mobile02a">
|
||||
<img src="${staticUrl}/images/fangjia/v5/appraisal_img07.png" class="mobile01" style="margin-top:150px;margin-bottom:50px;">
|
||||
<img src="${staticUrl}/images/fangjia/v5/appraisal_img07.png" class="mobile02 mobile02a">
|
||||
<img src="${staticUrl}/images/fangjia/v5/appraisal_img08.png" class="mobile01" style="margin-top:150px;margin-bottom:50px;">
|
||||
<img src="${staticUrl}/images/fangjia/v5/appraisal_img08.png" class="mobile02 mobile02a">
|
||||
</div>
|
||||
|
||||
<div class="adBox adBox03" style="margin-top:100px;">
|
||||
<p><small>您可通过在线方式联系专业顾问,他们将非常乐意为您提供更多服务。</small></p>
|
||||
<a class="link_btn" data_id="1001" cat="solution">立即咨询</a>
|
||||
</div>
|
||||
|
||||
<div class="resource" data-url = "${wwwUrl}/resource/recommend?module=1010"></div>
|
||||
|
||||
<div class="adBox adBox02">
|
||||
<div>
|
||||
<div>
|
||||
<p><label>CPDB房产大数据库</label></p>
|
||||
<p><small>欢迎亲自体验CPDB房产大数据库,您可通过在线方式申请测试数据或联系数据顾问,他们将非常乐意为您的数据需求量身定制合适的解决方案。</small></p>
|
||||
</div>
|
||||
<div class="btnGroup">
|
||||
<a class="link_btn link01_btn" href="${wwwUrl}/cpdb/">CPDB大数据</a>
|
||||
<a class="link_btn link01_btn" href="${wwwUrl}/solution/api">API解决方案</a>
|
||||
</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="1030" cat="solution">立即咨询</a>
|
||||
</div>
|
||||
|
||||
<#include "/header/v5/_footer.ftl"/>
|
||||
|
||||
@@ -0,0 +1,206 @@
|
||||
|
||||
<!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="房价网利用科学专业的估价方法和AVM房价计算模型,通过系统自动生成房产估值,提供高效低成本,公立客观的贷前估值解决方案。">
|
||||
<#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>
|
||||
|
||||
<style>
|
||||
.column .description div p{width:450px;}
|
||||
.column .description i{margin-top:30px;}
|
||||
</style>
|
||||
|
||||
<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>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<#include "/header/v5/_header.ftl"/>
|
||||
|
||||
<div class="banner mobile01" style="background:url(${staticUrl}/images/fangjia/v5/appraisal_banner.jpg) no-repeat center center;">
|
||||
<div>
|
||||
<p class="p01"><small>贷前估值解决方案</small></p>
|
||||
<p class="p02"><label>高效低成本、客观公正的在线房产评估</label></p>
|
||||
<p><small>房价网经过长时间积累,以大数据为依据,结合近十年不断钻研科学专业的估价方法和AVM房价计算模型,<br>系统自动生成估值,高效低成本,客观公正。</small></p>
|
||||
<div class="btnGroup">
|
||||
<a class="link_btn link01_btn large" data_id="1001" cat="solution">立即咨询专业顾问</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="banner mobile02" style="background:url(${staticUrl}/images/fangjia/v5/appraisal_banner_m.jpg) no-repeat center center;background-size:100%;">
|
||||
<div>
|
||||
<p class="p01"><small>贷前估值解决方案</small></p>
|
||||
<p class="p02"><label>高效低成本、客观公正的在线房产评估</label></p>
|
||||
<div class="btnGroup">
|
||||
<a class="link_btn link01_btn large" data_id="1001" cat="solution">立即咨询专业顾问</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="columnBox firstOne firstOneM">
|
||||
<p>业务背景</p>
|
||||
<div class="column">
|
||||
<div class="column_left mobile01" style="margin-left:40px;">
|
||||
<img src="${staticUrl}/images/fangjia/v5/appraisal_img01.png">
|
||||
</div>
|
||||
<div class="column_left mobile02">
|
||||
<img src="${staticUrl}/images/fangjia/v5/appraisal_img01.png">
|
||||
</div>
|
||||
<div class="column_right">
|
||||
<div>
|
||||
<p><span>传统评估机构由估价人员评估房产,人工操作流程长、效率低,银行的业务经理日常业务咨询通常需要数小时才能得到价格回复,造成成单机会流失。</span></p>
|
||||
</div>
|
||||
<div>
|
||||
<p><span>估价人员水平参差不齐,对不太了解的房产无法向银行业务经理提供详细的介绍,评估报价范围过于宽泛,无法对押品进行准确估值;还存在人为干预估值的现象,导致银行抵押风险增大。</span></p>
|
||||
</div>
|
||||
<div>
|
||||
<p><span>评估报告人工制作装订,过程繁琐且错误率高;报告送达以快递方式为主,成本高,送达时间难以控制;报告收费高,业务成本增加。</span></p>
|
||||
</div>
|
||||
<div>
|
||||
<p><span>各个支行都可以独立完成贷前评估业务,而合作的评估机构并不完全统一,业务统计和成本结算都难以统一管理,对下辖各支行的具体业务管理程度较低。</span></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="columnBox contrast bg">
|
||||
<div class="column">
|
||||
<div class="column_left">
|
||||
<p><label><i class="irb_iconA01"></i>业务难点</label></p>
|
||||
<div>
|
||||
<font></font>
|
||||
<p><span>评估结果不客观</span><br><small>传统评估机构操作存在人为干预因素,但风险结果要由银行担负。</small></p>
|
||||
</div>
|
||||
<div>
|
||||
<font></font>
|
||||
<p><span>整体管理难</span><br><small>合作的评估公司数量众多,业务管理困难。银行业务环节相对零散,银行管理部门无法清楚了解各支行具体业务情形。</small></p>
|
||||
</div>
|
||||
<div>
|
||||
<font></font>
|
||||
<p><span>评估效率低</span><br><small>询价+正式报告需要3-5个工作日。</small></p>
|
||||
</div>
|
||||
<div>
|
||||
<font></font>
|
||||
<p><span>评估成本高</span><br><small>传统评估机构收费标准在1‰-3‰之间。</small></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="column_right">
|
||||
<p><label><i class="irb_iconA02"></i>房价网优势</label></p>
|
||||
<div>
|
||||
<font></font>
|
||||
<p><span>估值精准</span><br><small>房价网经过长时间积累,以大数据为依据,结合近十年不断钻研科学专业的估价方法和AVM房价计算模型,系统自动生成估值,避免人为因素干扰。</small></p>
|
||||
</div>
|
||||
<div>
|
||||
<font></font>
|
||||
<p><span>降低评估成本</span><br><small>对比传统评估费用至少节省80%以上。</small></p>
|
||||
</div>
|
||||
<div>
|
||||
<font></font>
|
||||
<p><span>缩短评估流程</span><br><small>在线查询,估值秒回;在线生成电子评估报告。</small></p>
|
||||
</div>
|
||||
<div>
|
||||
<font></font>
|
||||
<p><span>后台管理便捷</span><br><small>系统后台自动统计下载报告清单,提高效率。</small></p>
|
||||
</div>
|
||||
<div>
|
||||
<font></font>
|
||||
<p><span>服务保障</span><br><small>线下专业估价团队支持,遇“疑难杂症”或价格异议,直接进入人工流程,专业估价师快速响应。<br>专业的售后技术服务,确保平台稳定运行。</small></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="columnBox">
|
||||
<p>解决方案</p>
|
||||
<img src="${staticUrl}/images/fangjia/v5/appraisal_img02.png" class="mobile01" style="margin-bottom:50px;">
|
||||
<img src="${staticUrl}/images/fangjia/v5/appraisal_img02_m.png" class="mobile02 mobile02a">
|
||||
<div class="column">
|
||||
<div class="column_left">
|
||||
<div class="description">
|
||||
<i class="appraisal_icon01"></i>
|
||||
<div>
|
||||
<p><label>估值客观</label></p>
|
||||
<p><small>多渠道数据源+科学计算方案和数据模型。</small></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="description">
|
||||
<i class="appraisal_icon02"></i>
|
||||
<div>
|
||||
<p><label>缩短评估流程</label></p>
|
||||
<p><small>在线查询,估值秒回,可在线下载打印报告。</small></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="column_right">
|
||||
<div class="description">
|
||||
<i class="appraisal_icon03"></i>
|
||||
<div>
|
||||
<p><label>后台管理便捷</label></p>
|
||||
<p><small>总行/分行拥有后台管理界面,系统自动统计业务详情,让管理部门能时刻了解下辖支行业务状况,提高管理结算效率。</small></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="description">
|
||||
<i class="appraisal_icon04"></i>
|
||||
<div>
|
||||
<p><label>降低评估成本</label></p>
|
||||
<p><small>对比传统评估费用至少节省80%以上。</small></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<img src="${staticUrl}/images/fangjia/v5/column_bg02.png" class="column_bg" style="bottom:0;">
|
||||
</div>
|
||||
<div class="columnBox product bg">
|
||||
<div class="column column02">
|
||||
<div class="column_left">
|
||||
<p><label>AMP估价管理平台</label></p>
|
||||
<p><small>房价网将信贷业务中贷前估值、贷中审批、贷后管理的全流程环节及参与方进行作业整合,一站式解决信贷业务的各类问题。</small></p>
|
||||
<img src="${staticUrl}/images/fangjia/v5/appraisal_img03.png">
|
||||
<a class="link_btn" href="${wwwUrl}/product/amp">了解更多</a>
|
||||
</div>
|
||||
<div class="column_right">
|
||||
<p><label>房调报告</label></p>
|
||||
<p><small>《房产专业调查评估报告》是能精确到户的第三方调查报告,主要内容是分析每套房子背后的微观信息,用客观公正的数据为广大买家、卖家、评估师、公证员、分析师、房产经纪人等业内人士提供最专业、客观、先进的房产分析数据。</small></p>
|
||||
<img src="${staticUrl}/images/fangjia/v5/appraisal_img04.png" class="appraisal_img04">
|
||||
<a class="link_btn" href="${wwwUrl}/report/appraisal" style="margin-top:-135px;">了解更多</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="adBox adBox03" style="margin-top:100px;">
|
||||
<p><small>您可通过在线方式联系专业顾问,他们将非常乐意为您提供更多服务。</small></p>
|
||||
<a class="link_btn" data_id="1001" cat="solution">立即咨询</a>
|
||||
</div>
|
||||
|
||||
<div class="resource" data-url = "${wwwUrl}/resource/recommend?module=1010"></div>
|
||||
|
||||
<div class="adBox adBox02">
|
||||
<div>
|
||||
<div>
|
||||
<p><label>CPDB房产大数据库</label></p>
|
||||
<p><small>欢迎亲自体验CPDB房产大数据库,您可通过在线方式申请测试数据或联系数据顾问,他们将非常乐意为您的数据需求量身定制合适的解决方案。</small></p>
|
||||
</div>
|
||||
<div class="btnGroup">
|
||||
<a class="link_btn link01_btn" href="${wwwUrl}/cpdb/">CPDB大数据</a>
|
||||
<a class="link_btn link01_btn" href="${wwwUrl}/solution/api">API解决方案</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<#include "/header/v5/_footer.ftl"/>
|
||||
|
||||
<script src="${staticUrl}/js/fangjia/v5/main.js?v=${version}"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,90 @@
|
||||
|
||||
<!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="房价网利用科学专业的估价方法和AVM房价计算模型,通过系统自动生成房产估值,提供高效低成本,公立客观的贷前估值解决方案。">
|
||||
<#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>
|
||||
|
||||
<style>
|
||||
.column .description div p{width:450px;}
|
||||
.column .description i{margin-top:30px;}
|
||||
</style>
|
||||
|
||||
<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>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<#include "/header/v5/_header.ftl"/>
|
||||
|
||||
<div class="banner mobile01" style="background:url(${staticUrl}/images/fangjia/v5/index_banner04-2.png) no-repeat center center;">
|
||||
<div>
|
||||
<p><label>信用卡生态建设新力量 全面提升客户洞察 </label></p>
|
||||
<p><small>为信用卡的拓客-审批-管理-运营全生命周期提供基于地址(位置)的人工智能级服务,全面赋能信用卡营销、风控场景。</small></p>
|
||||
<div class="btnGroup">
|
||||
<a class="link_btn link01_btn large" data_id="1031" cat="solution">立即咨询专业顾问</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="banner mobile02" style="background:url(${staticUrl}/images/fangjia/v5/appraisal_banner_m.jpg) no-repeat center center;background-size:100%;">
|
||||
<div>
|
||||
<p><label>信用卡生态建设新力量 全面提升客户洞察 </label></p>
|
||||
<p><small>为信用卡的拓客-审批-管理-运营全生命周期提供基于地址(位置)的人工智能级服务,全面赋能信用卡营销、风控场景。</small></p>
|
||||
<div class="btnGroup">
|
||||
<a class="link_btn link01_btn large" data_id="1001" cat="solution">立即咨询专业顾问</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="columnBox firstOne firstOneM">
|
||||
<p>信用卡需求背景</p>
|
||||
<div class="column">
|
||||
<div class="column_left mobile01" style="margin-left:40px;">
|
||||
<img src="${staticUrl}/images/fangjia/v5/card.png" width="440" height="auto">
|
||||
</div>
|
||||
<div class="column_left mobile02">
|
||||
<img src="${staticUrl}/images/fangjia/v5/card.png" width="440" height="auto">
|
||||
</div>
|
||||
<div class="column_right">
|
||||
<div>
|
||||
<p><span> 客户价值挖掘是信用卡利润增长的关键,尤其是对存量客户的价值识别及差异化、精细化运营成为重中之重。</span></p>
|
||||
</div>
|
||||
<div>
|
||||
<p><span> 然而,大量的存量客户沉睡、不活跃、缺少业务痕迹、画像不清晰……给客户洞察与价值挖掘带来了困难。目前,各大银行在信用卡数字化营销场景中,通过地理位置进行客户洞察与价值挖掘,实现“更懂客户”,形成了新的竞争力。</span></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="columnBox" style="padding: 30px">
|
||||
<img src="${staticUrl}/images/fangjia/v5/card1.png" class="mobile01" style="margin-bottom:50px;">
|
||||
<img src="${staticUrl}/images/fangjia/v5/card1.png" class="mobile02 mobile02a">
|
||||
<img src="${staticUrl}/images/fangjia/v5/card2.png" class="mobile01" style="margin-top: 150px; margin-bottom:50px;">
|
||||
<img src="${staticUrl}/images/fangjia/v5/card2.png" class="mobile02 mobile02a">
|
||||
</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="1031" cat="solution">立即咨询</a>
|
||||
</div>
|
||||
|
||||
<#include "/header/v5/_footer.ftl"/>
|
||||
|
||||
<script src="${staticUrl}/js/fangjia/v5/main.js?v=${version}"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,92 @@
|
||||
|
||||
<!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="房价网利用科学专业的估价方法和AVM房价计算模型,通过系统自动生成房产估值,提供高效低成本,公立客观的贷前估值解决方案。">
|
||||
<#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>
|
||||
|
||||
<style>
|
||||
.column .description div p{width:450px;}
|
||||
.column .description i{margin-top:30px;}
|
||||
.bg{background-color: #f0f0f0;}
|
||||
</style>
|
||||
|
||||
<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>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<#include "/header/v5/_header.ftl"/>
|
||||
|
||||
<div class="banner mobile01" style="background:url(${staticUrl}/images/fangjia/v5/index_banner08-2.png) no-repeat center center;">
|
||||
<div>
|
||||
<p><label>地数— 地址价值挖掘平台</label></p>
|
||||
<p><small>“地数”通过AI技术构建地址价值的智能平台,解读规律、挖掘价值,助力企业做出更高效、更明智的决策。</small></p>
|
||||
<div class="btnGroup">
|
||||
<a class="link_btn link01_btn large" data_id="1020" cat="solution">立即咨询专业顾问</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="banner mobile02" style="background:url(${staticUrl}/images/fangjia/v5/ds0.png) no-repeat center center;background-size:100%;">
|
||||
<div>
|
||||
<p><label>地数— 地址价值挖掘平台</label></p>
|
||||
<p><small>“地数”通过AI技术构建地址价值的智能平台,解读规律、挖掘价值,助力企业做出更高效、更明智的决策。</small></p>
|
||||
<div class="btnGroup">
|
||||
<a class="link_btn link01_btn large" data_id="1001" cat="solution">立即咨询专业顾问</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="columnBox firstOne firstOneM">
|
||||
|
||||
<div class="column bg">
|
||||
<div class="column_left mobile01" style="margin-left:40px;">
|
||||
<img src="${staticUrl}/images/fangjia/v5/ds2.png" width="440" height="auto">
|
||||
</div>
|
||||
<div class="column_left mobile02">
|
||||
<img src="${staticUrl}/images/fangjia/v5/ds2.png" width="440" height="auto">
|
||||
</div>
|
||||
<div class="column_left">
|
||||
<div>
|
||||
<center><h1 style="font-size: 24px;">地数— 地址价值挖掘平台</h1></center>
|
||||
<p style="padding-top: 20px;padding-left: 50px;"><span> “地数”是估家科技在多年积累的房地数据和行业经验基础上,自主研发的地址大数据价值挖掘产品。这一平台的核心是强大的地址数据处理技术和价值计算模型,实现对各类机构、企业相关的位置数据进行自动化的治理,并结合不同场景进一步挖掘其业务价值。
|
||||
|
||||
</span></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="columnBox" style="padding: 30px">
|
||||
<img src="${staticUrl}/images/fangjia/v5/ds3.png" class="mobile01" style="margin-bottom:50px;">
|
||||
<img src="${staticUrl}/images/fangjia/v5/ds3.png" class="mobile02 mobile02a">
|
||||
<img src="${staticUrl}/images/fangjia/v5/ds4.png" class="mobile01" style="margin-top: 150px; margin-bottom:50px;">
|
||||
<img src="${staticUrl}/images/fangjia/v5/ds4.png" class="mobile02 mobile02a">
|
||||
<img src="${staticUrl}/images/fangjia/v5/ds5.png" class="mobile01" style="margin-top: 150px; margin-bottom:50px;">
|
||||
<img src="${staticUrl}/images/fangjia/v5/ds5.png" class="mobile02 mobile02a">
|
||||
</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="1020" cat="solution">立即咨询</a>
|
||||
</div>
|
||||
|
||||
<#include "/header/v5/_footer.ftl"/>
|
||||
|
||||
<script src="${staticUrl}/js/fangjia/v5/main.js?v=${version}"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -42,7 +42,7 @@
|
||||
|
||||
<#include "/header/v5/_header.ftl"/>
|
||||
|
||||
<div class="banner mobile01" style="background:url(${staticUrl}/images/fangjia/v5/f-level_banner.png) no-repeat center center;">
|
||||
<div class="banner mobile01" style="background:url(${staticUrl}/images/fangjia/v5/post-loan_banner.jpg) no-repeat center center;">
|
||||
<div>
|
||||
<p class="p01"><small>财力评级解决方案</small></p>
|
||||
<p class="p02"><label>基于地理位置的财力评级</label></p>
|
||||
@@ -53,7 +53,7 @@
|
||||
地址价值挖掘,用AI算法深度解析地址背后的信息,助力企业找到“对的人”
|
||||
</small>
|
||||
</p>
|
||||
<div class="btnGroup">
|
||||
<div class="btnGroup" style="margin-top: -20px;">
|
||||
<a class="link_btn link01_btn large" data_id="1024" cat="solution">立即体验</a>
|
||||
</div>
|
||||
</div>
|
||||
@@ -177,20 +177,20 @@
|
||||
<a class="link_btn link01_btn" data_id="1024" cat="solution">立即体验</a>
|
||||
</div>
|
||||
|
||||
<div class="resource" data-url = "${wwwUrl}/resource/recommend?module=1015"></div>
|
||||
<#--<div class="resource" data-url = "${wwwUrl}/resource/recommend?module=1015"></div>-->
|
||||
|
||||
<div class="adBox adBox02">
|
||||
<div>
|
||||
<div>
|
||||
<p><label>CPDB房产大数据库</label></p>
|
||||
<p><small>欢迎亲自体验CPDB房产大数据库,您可通过在线方式申请测试数据或联系数据顾问,他们将非常乐意为您的数据需求量身定制合适的解决方案。</small></p>
|
||||
</div>
|
||||
<div class="btnGroup">
|
||||
<a class="link_btn link01_btn" href="${wwwUrl}/cpdb/">CPDB大数据</a>
|
||||
<a class="link_btn link01_btn" href="${wwwUrl}/solution/api">API解决方案</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<#--<div class="adBox adBox02">-->
|
||||
<#-- <div>-->
|
||||
<#-- <div>-->
|
||||
<#-- <p><label>CPDB房产大数据库</label></p>-->
|
||||
<#-- <p><small>欢迎亲自体验CPDB房产大数据库,您可通过在线方式申请测试数据或联系数据顾问,他们将非常乐意为您的数据需求量身定制合适的解决方案。</small></p>-->
|
||||
<#-- </div>-->
|
||||
<#-- <div class="btnGroup">-->
|
||||
<#-- <a class="link_btn link01_btn" href="${wwwUrl}/cpdb/">CPDB大数据</a>-->
|
||||
<#-- <a class="link_btn link01_btn" href="${wwwUrl}/solution/api">API解决方案</a>-->
|
||||
<#-- </div>-->
|
||||
<#-- </div>-->
|
||||
<#--</div>-->
|
||||
|
||||
<#include "/header/v5/_footer.ftl"/>
|
||||
|
||||
|
||||
@@ -0,0 +1,156 @@
|
||||
|
||||
<!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 {
|
||||
padding: 10px 0 60px 0;
|
||||
}
|
||||
.radius{
|
||||
width: 600px;
|
||||
height: 550px;
|
||||
margin: 100px auto;
|
||||
border: 1px solid #c2c2c2;
|
||||
border-radius: 20px 20px 20px 20px;
|
||||
/*box-shadow: 10px 10px 10px 10px rgba(0, 0, 0, .1);*/
|
||||
/*box-shadow: 0 0 10px rgba(0,0,0,0.3), 0 0 10px rgba(0,0,0,0.3) inset;*/
|
||||
|
||||
}
|
||||
|
||||
.bg{background-color: #f0f0f0;}
|
||||
.radius:hover {
|
||||
box-shadow: 10px 10px 10px 10px rgba(0, 0, 0, .3);
|
||||
}
|
||||
.column > div p {
|
||||
width: 560px;
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
.column > div p label {
|
||||
font-size: 22px;
|
||||
line-height: 40px;
|
||||
}
|
||||
|
||||
@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/location_banner.jpg) no-repeat center center;">
|
||||
<div>
|
||||
<p><label>新一代楼盘评级 赋能高质量发展</label></p>
|
||||
<p><small>智能楼盘评级聚焦全国楼盘,全新维度深度分析楼盘价值,<br/>提高业务数字化经营能力,进一步提升综合竞争力和价值贡献。</small></p>
|
||||
<div class="btnGroup">
|
||||
<a class="link_btn link01_btn large" data_id="1027" cat="solution">立即咨询专业顾问</a>
|
||||
</div>
|
||||
</div>
|
||||
</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><label>智能楼盘评级聚焦全国楼盘,全新维度深度分析楼盘价值,提高业务数字化经营能力,进一步提升综合竞争力和价值贡献。</label></p>
|
||||
<div class="btnGroup">
|
||||
<a class="link_btn link01_btn large" data_id="1006" cat="solution">立即咨询专业顾问</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="columnBox">
|
||||
<div class="column bg">
|
||||
<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;">
|
||||
<p><label >楼盘评级</label></p>
|
||||
<p><small>
|
||||
以楼盘为颗粒度,运用<b>楼盘基础信息</b>、<b>交易数据</b>和<strong>外部环境数据</strong>,通过模型进行价值计算与深度分析。
|
||||
将市场价值、小区区位、教育,医疗、生活配套及人口数这六大因素、30+项指标评分分级,多维度判断楼盘综合及价值,赋能不同场景的各类需求。
|
||||
|
||||
</small></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mobile01">
|
||||
<div class="column">
|
||||
<div class="column_left">
|
||||
<div class="radius">
|
||||
<center><h1 style="font-size: 24px;margin-top: 20px;">应用场景</h1></center>
|
||||
<p><label >押品风控</label></p>
|
||||
<p><small>在贷后风险管理中,对评级较低的楼盘项目提高预警频率。对低评分楼盘的准入审批给出风险提示和楼盘画像展示。对于价格波动较大,逾期、不良贷款集中以及评分变动大的楼盘进行动态风险管理。</small></p>
|
||||
|
||||
<p><label >精准营销</label></p>
|
||||
<p><small>基于楼盘评级的楼盘画像,助力客户识别优质楼盘,进而筛选财富客户及目标优质客户,匹配合适的营销策略,全面提升ROI。</small></p>
|
||||
|
||||
<p><label >优化业务流程</label></p>
|
||||
<p><small>楼盘评分评级可用于楼盘的准入分析,尽可能量化楼盘准入考虑因素,对楼盘的准入实施差异化管理,优质楼盘的准入简化审批流程,楼盘评分评级模型应用成熟后,可以将优质楼盘直接进行准入,提高楼盘准入的效率和质量。</small></p>
|
||||
|
||||
<p><label >获取优质的客户资源</label></p>
|
||||
<p><small>在优质楼盘中定位优质客户资源,用优质楼盘数据,结合业务数据,获取高价值客户,进行综合客户营销,提高个人客户综合营销水平。</small></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="column_right" style="margin-top: 100px;">
|
||||
<img src="${staticUrl}/images/fangjia/v5/house_level.png">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="mobile01" style="margin-bottom: 60px;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">
|
||||
|
||||
<center><h1 style="font-size: 24px;">核心内容</h1></center>
|
||||
<p><label >楼盘基础数据梳理、治理与整合</label></p>
|
||||
<p><small>在对数据整合治理的基础上,进一步对楼盘区位信息、周边配套因素、楼盘开发商等相关数据进行清洗整合,并加入存量楼盘租售价格、结合不同场景的业务数据等,能够全方位对楼盘进行描述。</small></p>
|
||||
|
||||
<p><label >对楼盘进行评分、评级与标签化</label></p>
|
||||
<p><small>通过楼盘评级模型进行计算,输出明确分级、映射的结论及楼盘画像。在各类业务的精准营销及风控方向的预警和控制。</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="1027" cat="solution">立即咨询</a>
|
||||
</div>
|
||||
|
||||
<#include "/header/v5/_footer.ftl"/>
|
||||
|
||||
<script src="${staticUrl}/js/fangjia/v5/main.js?v=${version}"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -153,40 +153,42 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="adBox adBox03 mobile01">
|
||||
<p><small>您可通过在线方式联系专业顾问,他们将非常乐意为您提供更多服务。</small></p>
|
||||
<a class="link_btn" data_id="1006" cat="solution">立即咨询</a>
|
||||
</div>
|
||||
<div class="adBox adBox03 mobile02" style="margin:50px auto;">
|
||||
<p><small>您可通过在线方式联系专业顾问,他们将非常乐意为您提供更多服务。</small></p>
|
||||
<a class="link_btn" data_id="1006" cat="solution">立即咨询</a>
|
||||
<div class="adBox adBox01 mobile01" 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="1006" cat="solution">立即咨询</a>
|
||||
</div>
|
||||
|
||||
<div class="adBox adBox01 mobile01">
|
||||
<p><label>地址标准化解决方案</label></p>
|
||||
<p><small>您还在为批量地址数据标准化烦恼,您可通过在线方式申请测试数据或联系数据顾问,他们将非常乐意为您的数据需求量身定制合适的解决方案。</small></p>
|
||||
<a class="link_btn link01_btn" href="${wwwUrl}/solution/standardization">立即查看</a>
|
||||
</div>
|
||||
<div class="adBox adBox01 mobile02">
|
||||
<p><label>地址标准化解决方案</label></p>
|
||||
<p><small>您还在为批量地址数据标准化烦恼,您可通过在线方式申请测试数据或联系数据顾问,他们将非常乐意为您的数据需求量身定制合适的解决方案。</small></p>
|
||||
<a class="link_btn link01_btn" href="${wwwUrl}/solution/standardization">立即查看</a>
|
||||
<div class="adBox adBox01 mobile02" 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="1006" cat="solution">立即咨询</a>
|
||||
</div>
|
||||
|
||||
<div class="resource" data-url = "${wwwUrl}/resource/recommend?module=1015"></div>
|
||||
|
||||
<div class="adBox adBox02">
|
||||
<div>
|
||||
<div>
|
||||
<p><label>CPDB房产大数据库</label></p>
|
||||
<p><small>欢迎亲自体验CPDB房产大数据库,您可通过在线方式申请测试数据或联系数据顾问,他们将非常乐意为您的数据需求量身定制合适的解决方案。</small></p>
|
||||
</div>
|
||||
<div class="btnGroup">
|
||||
<a class="link_btn link01_btn" href="${wwwUrl}/cpdb/">CPDB大数据</a>
|
||||
<a class="link_btn link01_btn" href="${wwwUrl}/solution/api">API解决方案</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<#--<div class="adBox adBox01 mobile01">-->
|
||||
<#-- <p><label>地址标准化解决方案</label></p>-->
|
||||
<#-- <p><small>您还在为批量地址数据标准化烦恼,您可通过在线方式申请测试数据或联系数据顾问,他们将非常乐意为您的数据需求量身定制合适的解决方案。</small></p>-->
|
||||
<#-- <a class="link_btn link01_btn" href="${wwwUrl}/solution/standardization">立即查看</a>-->
|
||||
<#--</div>-->
|
||||
<#--<div class="adBox adBox01 mobile02">-->
|
||||
<#-- <p><label>地址标准化解决方案</label></p>-->
|
||||
<#-- <p><small>您还在为批量地址数据标准化烦恼,您可通过在线方式申请测试数据或联系数据顾问,他们将非常乐意为您的数据需求量身定制合适的解决方案。</small></p>-->
|
||||
<#-- <a class="link_btn link01_btn" href="${wwwUrl}/solution/standardization">立即查看</a>-->
|
||||
<#--</div>-->
|
||||
|
||||
<#--<div class="resource" data-url = "${wwwUrl}/resource/recommend?module=1015"></div>-->
|
||||
|
||||
<#--<div class="adBox adBox02">-->
|
||||
<#-- <div>-->
|
||||
<#-- <div>-->
|
||||
<#-- <p><label>CPDB房产大数据库</label></p>-->
|
||||
<#-- <p><small>欢迎亲自体验CPDB房产大数据库,您可通过在线方式申请测试数据或联系数据顾问,他们将非常乐意为您的数据需求量身定制合适的解决方案。</small></p>-->
|
||||
<#-- </div>-->
|
||||
<#-- <div class="btnGroup">-->
|
||||
<#-- <a class="link_btn link01_btn" href="${wwwUrl}/cpdb/">CPDB大数据</a>-->
|
||||
<#-- <a class="link_btn link01_btn" href="${wwwUrl}/solution/api">API解决方案</a>-->
|
||||
<#-- </div>-->
|
||||
<#-- </div>-->
|
||||
<#--</div>-->
|
||||
|
||||
<#include "/header/v5/_footer.ftl"/>
|
||||
|
||||
|
||||
@@ -0,0 +1,118 @@
|
||||
|
||||
<!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 {
|
||||
padding: 60px 0;
|
||||
}
|
||||
.bg{background-color: #f0f0f0;}
|
||||
|
||||
@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/itfin_banner.jpg) no-repeat center center;">
|
||||
<div>
|
||||
<p><label>计算每一套房产的“与众不同” </label></p>
|
||||
<p><small>全量房产大数据、全维度的变量因子、领先的算法模型,让房产估值精确到“一房一价”,精准计算每一套房产的价值</small></p>
|
||||
<div class="btnGroup">
|
||||
<a class="link_btn link01_btn large" data_id="1026" cat="solution">立即咨询专业顾问</a>
|
||||
</div>
|
||||
</div>
|
||||
</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><label>全量房产大数据、全维度的变量因子、领先的算法模型,让房产估值精确到“一房一价”,精准计算每一套房产的价值</label></p>
|
||||
<div class="btnGroup">
|
||||
<a class="link_btn link01_btn large" data_id="1006" cat="solution">立即咨询专业顾问</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="columnBox">
|
||||
<div class="column bg">
|
||||
<div class="column_left">
|
||||
<img src="${staticUrl}/images/fangjia/v5/consulting_img03.jpg">
|
||||
</div>
|
||||
<div class="column_left" style="padding-left: 50px;">
|
||||
<p><label >一房一价</label></p>
|
||||
<p><small>估家科技依托大数据+科学算法+专业模型计算,打造行业领先的AI房产估值系统
|
||||
系统可实时在线进行抵房产估值,多渠道海量数据源参与计算,能得到最接近市场公允价的估值结果,具有公信力和可靠性,全面排除人为因素干扰。
|
||||
</small></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="columnBox">
|
||||
<center>
|
||||
<div><label style="font-size: 24px;line-height: 60px;">一房一价</label></div>
|
||||
<div><small style="font-size: 16px;line-height: 50px;color: #666;">估值模型针对每套房屋的不同参数,让评估结果更精细化。</small></div>
|
||||
</center>
|
||||
<div class="column">
|
||||
<div class="column_left" style="width: 30%">
|
||||
<br/><br/>
|
||||
<p><label>可估率高</label></p>
|
||||
<p style="width: 100%;"><small>覆盖全国城市及地区,包括四五线城市,数据匹配能力行业领先</small></p>
|
||||
<br/><br/><br/><br/><br/>
|
||||
<p><label>价格精准</label></p>
|
||||
<p><small>数据维度多、数据量大、模型强大,</small></p>
|
||||
<p><small>为国有银行总行内评系统建模及供数</small></p>
|
||||
</div>
|
||||
<div class="column_left">
|
||||
<img src="${staticUrl}/images/fangjia/v5/onehouse.png" style="width: 400px;">
|
||||
</div>
|
||||
<div class="column_left" style="width: 30%;">
|
||||
<br/><br/>
|
||||
<p><label>评估效率高</label></p>
|
||||
<p style="width: 100%;"><small>线上评估响应速度及并发处理能力行业领先</small></p>
|
||||
<br/><br/><br/><br/><br/><br/><br/>
|
||||
<p><label>智能保障</label></p>
|
||||
<p style="width: 100%;"><small>线上线下结合的系统保障,遇“疑难杂症”或价格异议,可进入人工流程,快速响应。</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="1026" cat="solution">立即咨询</a>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<#include "/header/v5/_footer.ftl"/>
|
||||
|
||||
<script src="${staticUrl}/js/fangjia/v5/main.js?v=${version}"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,89 @@
|
||||
|
||||
<!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="房价网利用科学专业的估价方法和AVM房价计算模型,通过系统自动生成房产估值,提供高效低成本,公立客观的贷前估值解决方案。">
|
||||
<#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>
|
||||
|
||||
<style>
|
||||
.column .description div p{width:450px;}
|
||||
.column .description i{margin-top:30px;}
|
||||
</style>
|
||||
|
||||
<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>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<#include "/header/v5/_header.ftl"/>
|
||||
|
||||
<div class="banner mobile01" style="background:url(${staticUrl}/images/fangjia/v5/index_banner07-2.png) no-repeat center center;">
|
||||
<div>
|
||||
<p><label>“变”中求“新” 网点布局规划新策略</label></p>
|
||||
<p><small>建设智慧型社区银行、构建新一轮的智慧网点布局战略和实施规划,地址价值挖掘全面提升网点布局规划的科学性、<br/>专业性及合理性,强化社区融合、占据市场主动、培育优质客户。
|
||||
</small></p>
|
||||
<div class="btnGroup">
|
||||
<a class="link_btn link01_btn large" data_id="1032" cat="solution">立即咨询专业顾问</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="banner mobile02" style="background:url(${staticUrl}/images/fangjia/v5/appraisal_banner_m.jpg) no-repeat center center;background-size:100%;">
|
||||
<div>
|
||||
<p><small>“变”中求“新” 网点布局规划新策略</small></p>
|
||||
<div class="btnGroup">
|
||||
<a class="link_btn link01_btn large" data_id="1001" cat="solution">立即咨询专业顾问</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="columnBox firstOne firstOneM">
|
||||
<p>网点布局规划</p>
|
||||
<div class="column">
|
||||
<div class="column_left mobile01" style="margin-left:40px;">
|
||||
<img src="${staticUrl}/images/fangjia/v5/outlets.png" width="440" height="auto">
|
||||
</div>
|
||||
<div class="column_left mobile02">
|
||||
<img src="${staticUrl}/images/fangjia/v5/outlets.png" width="440" height="auto">
|
||||
</div>
|
||||
<div class="column_right">
|
||||
<div>
|
||||
<p><span> 新形势下,建设智慧型社区网点、构建新一轮的智慧网点布局战略和实施规划,是金融机构、零售业数字化转型的重要阵地。</span></p>
|
||||
</div>
|
||||
<div>
|
||||
<p><span> 地址信息是商业机构积累的重要数据资产,通过人工智技术与大数据的结合进行地址(位置)价值挖掘,全面赋能智慧型社区网点建设、网点布局规划与智能运营。估家科技提供的地址(位置)智能服务已为众多金融机构、零售提供了深入社区、紧贴群众需求的网点布局策略,全面提升网点布局规划的科学性、专业性及合理性,强化社区融合、占据市场主动、培育优质客户。</span></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="columnBox" style="padding: 30px">
|
||||
<img src="${staticUrl}/images/fangjia/v5/outlets1.png" class="mobile01" style="margin-bottom:50px;">
|
||||
<img src="${staticUrl}/images/fangjia/v5/outlets1.png" class="mobile02 mobile02a">
|
||||
<img src="${staticUrl}/images/fangjia/v5/outlets2.png" class="mobile01" style="margin-top: 150px; margin-bottom:50px;">
|
||||
<img src="${staticUrl}/images/fangjia/v5/outlets2.png" class="mobile02 mobile02a">
|
||||
</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="1032" cat="solution">立即咨询</a>
|
||||
</div>
|
||||
|
||||
<#include "/header/v5/_footer.ftl"/>
|
||||
|
||||
<script src="${staticUrl}/js/fangjia/v5/main.js?v=${version}"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -32,7 +32,7 @@
|
||||
<p class="p02" style="width:1250px;"><label>高效率、高智能的批量地址标准化分析与处理</label></p>
|
||||
<p><small>无论在风控、征信还是营销领域,任何批量地址数据的处理都离不开地址标准化。<br>房价网基于强大的CPDB数据库和人机技术,为各行业提供高效智能的地址标准化服务。</small></p>
|
||||
<div class="btnGroup">
|
||||
<a class="link_btn link01_btn large" data_id="1007" id="seekAdvice" style="width: 222px; font-size: 25px; color: #FB8;">立即咨询专业顾问</a>
|
||||
<a class="link_btn link01_btn large" data_id="1007" id="seekAdvice" style="width: 222px; font-size: 25px; ">立即咨询专业顾问</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -108,25 +108,30 @@
|
||||
<img src="${staticUrl}/images/fangjia/v5/column_bg02.png" class="column_bg" style="top:50px;">
|
||||
</div>
|
||||
|
||||
<div class="adBox adBox03">
|
||||
<p><small>您可通过在线方式联系专业顾问,他们将非常乐意为您提供更多服务。</small></p>
|
||||
<a class="link_btn" data_id="1007" id="seekAdvice2" style="width: 150px; height: 38px; background: #FB8;">立即咨询</a>
|
||||
<#--<div class="adBox adBox03">-->
|
||||
<#-- <p><small>您可通过在线方式联系专业顾问,他们将非常乐意为您提供更多服务。</small></p>-->
|
||||
<#-- <a class="link_btn" data_id="1007" id="seekAdvice2" style="width: 150px; height: 38px; background: #FB8;">立即咨询</a>-->
|
||||
<#--</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="1007" cat="solution">立即咨询</a>
|
||||
</div>
|
||||
|
||||
<div class="resource" data-url = "${wwwUrl}/resource/recommend?module=1016"></div>
|
||||
|
||||
<div class="adBox adBox02">
|
||||
<div>
|
||||
<div>
|
||||
<p><label>CPDB房产大数据库</label></p>
|
||||
<p><small>欢迎亲自体验CPDB房产大数据库,您可通过在线方式申请测试数据或联系数据顾问,他们将非常乐意为您的数据需求量身定制合适的解决方案。</small></p>
|
||||
</div>
|
||||
<div class="btnGroup">
|
||||
<a class="link_btn link01_btn" href="${wwwUrl}/cpdb/">CPDB大数据</a>
|
||||
<a class="link_btn link01_btn" href="${wwwUrl}/solution/api">API解决方案</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<#--<div class="adBox adBox02">-->
|
||||
<#-- <div>-->
|
||||
<#-- <div>-->
|
||||
<#-- <p><label>CPDB房产大数据库</label></p>-->
|
||||
<#-- <p><small>欢迎亲自体验CPDB房产大数据库,您可通过在线方式申请测试数据或联系数据顾问,他们将非常乐意为您的数据需求量身定制合适的解决方案。</small></p>-->
|
||||
<#-- </div>-->
|
||||
<#-- <div class="btnGroup">-->
|
||||
<#-- <a class="link_btn link01_btn" href="${wwwUrl}/cpdb/">CPDB大数据</a>-->
|
||||
<#-- <a class="link_btn link01_btn" href="${wwwUrl}/solution/api">API解决方案</a>-->
|
||||
<#-- </div>-->
|
||||
<#-- </div>-->
|
||||
<#--</div>-->
|
||||
|
||||
<div class="dialogBox dialogBoxSolution dn" style="top: 40%;">
|
||||
<#--<div class="dialogBox_title">申请贷款<i class="close" id="loanWin"></i></div>-->
|
||||
|
||||
+10
-1
@@ -29,7 +29,16 @@ public enum NewResourceRecommendEnum {
|
||||
FANG_JIA_ZOU_SHI("1021", "房价走势"),
|
||||
FDANG_DIAO_BAO_GAO("1022", "房调报告"),
|
||||
FA_PAI_FANG("1023", "法拍房数据解决方案"),
|
||||
FINANCIAL_LEVEL("1024", "财力评级解决方案");
|
||||
FINANCIAL_LEVEL("1024", "财力评级解决方案"),
|
||||
|
||||
ADDRESS_PROCESS("1025", "地址数据治理"),
|
||||
ONE_HOUSE_ONE_PRICE("1026", "一房一价"),
|
||||
COMMUNITY_LEVEL("1027", "楼盘评级"),
|
||||
DATA_POWER("1028", "楼盘评级"),
|
||||
FUND("1029", "互金"),
|
||||
COLLATERAL("1030", "押品价值管理"),
|
||||
CARD("1031", "信用卡"),
|
||||
NET("1032", "网点布局");
|
||||
|
||||
|
||||
NewResourceRecommendEnum(String id, String value) {
|
||||
|
||||
+10
-5
@@ -25,11 +25,16 @@ public enum SalesLeadEnum {
|
||||
HOUSE_EVAL("1019", "房产评估"),
|
||||
DIDATA("1020", "地数平台"),
|
||||
FA_PAI_FANG("1023", "法拍房数据解决方案"),
|
||||
FINANCIAL_LEVEL("1024", "财力评级解决方案");
|
||||
|
||||
|
||||
|
||||
|
||||
FINANCIAL_LEVEL("1024", "财力评级解决方案"),
|
||||
|
||||
ADDRESS_PROCESS("1025", "地址数据治理"),
|
||||
ONE_HOUSE_ONE_PRICE("1026", "一房一价"),
|
||||
COMMUNITY_LEVEL("1027", "楼盘评级"),
|
||||
DATA_POWER("1028", "楼盘评级"),
|
||||
FUND("1029", "互金"),
|
||||
COLLATERAL("1030", "押品价值管理"),
|
||||
CARD("1031", "信用卡"),
|
||||
NET("1032", "网点布局");
|
||||
|
||||
SalesLeadEnum(String id, String value) {
|
||||
this.id = id;
|
||||
|
||||
@@ -166,6 +166,8 @@ public class AverageStatistics implements MongoEntity {
|
||||
private Double tsfhouseEsfDiff;
|
||||
private Integer tsfhouseNewPrice;
|
||||
private Double tsfhouseNewDiff;
|
||||
/**国信达*/
|
||||
private Integer gxdEsfPrice;
|
||||
|
||||
private String level;//价格评级
|
||||
private Integer lastAvgPrice;//最终价
|
||||
@@ -1155,4 +1157,13 @@ public class AverageStatistics implements MongoEntity {
|
||||
public void setTsfhouseNewDiff(Double tsfhouseNewDiff) {
|
||||
this.tsfhouseNewDiff = tsfhouseNewDiff;
|
||||
}
|
||||
|
||||
@Column(name = "gxd_esf_price")
|
||||
public Integer getGxdEsfPrice() {
|
||||
return gxdEsfPrice;
|
||||
}
|
||||
|
||||
public void setGxdEsfPrice(Integer gxdEsfPrice) {
|
||||
this.gxdEsfPrice = gxdEsfPrice;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,9 +30,9 @@ public class AvgBase implements MongoEntity{
|
||||
private String category;
|
||||
private Integer status;
|
||||
private String dateStr;
|
||||
|
||||
|
||||
private Integer isGuidancePrice;
|
||||
private String source;
|
||||
private String sourceCommName;
|
||||
|
||||
@Id
|
||||
@GeneratedValue
|
||||
@@ -135,4 +135,22 @@ public class AvgBase implements MongoEntity{
|
||||
public void setDateStr(String dateStr) {
|
||||
this.dateStr = dateStr;
|
||||
}
|
||||
|
||||
@Column(name = "source")
|
||||
public String getSource() {
|
||||
return source;
|
||||
}
|
||||
|
||||
public void setSource(String source) {
|
||||
this.source = source;
|
||||
}
|
||||
|
||||
@Column(name = "source_comm_name")
|
||||
public String getSourceCommName() {
|
||||
return sourceCommName;
|
||||
}
|
||||
|
||||
public void setSourceCommName(String sourceCommName) {
|
||||
this.sourceCommName = sourceCommName;
|
||||
}
|
||||
}
|
||||
|
||||
+115
-2
@@ -24,6 +24,7 @@ import com.fangjia.open.model.*;
|
||||
import net.sf.json.JSONArray;
|
||||
import net.sf.json.JSONObject;
|
||||
|
||||
import org.apache.commons.codec.binary.Base64;
|
||||
import org.apache.commons.collections.CollectionUtils;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.lucene.index.Term;
|
||||
@@ -85,7 +86,6 @@ import com.fangjia.service.mongo.fangjia.ServerAreaService;
|
||||
import com.fangjia.service.open.WaitCrawlKeywordsService;
|
||||
import com.fangjia.service.sql.FjtEvaluationService;
|
||||
import com.fangjia.service.web.AddressService;
|
||||
import org.sothis.web.mvc.annotation.Param;
|
||||
|
||||
@Authority(role = Role.USER)
|
||||
public class AddressController {
|
||||
@@ -116,6 +116,8 @@ public class AddressController {
|
||||
private static final String GRADE_CONSUME = "Ïû·ÑÆÀ·Ö";
|
||||
|
||||
public final static OpenConfig CONFIG = OpenConfig.getConfig();
|
||||
private static final String ES_USER = "developer";
|
||||
private static final String ES_PASSWORD = "5e8edd851d2fdfbd7415232c67367cc3";
|
||||
|
||||
/**
|
||||
* @deprecated see parse2Action
|
||||
@@ -521,8 +523,65 @@ public class AddressController {
|
||||
}
|
||||
MatchDistrictResult matchResult = addressMatchProxyService.checkMatchDistrictCorrect(param);
|
||||
jsonResult.put("matchResult", matchResult);
|
||||
if (jsonResult.containsKey("category")) {
|
||||
if ("office".equals(jsonResult.getString("category"))) {
|
||||
jsonResult.put("propertyType", "写字楼");
|
||||
} else if ("shop".equals(jsonResult.getString("category"))) {
|
||||
jsonResult.put("propertyType", "商铺");
|
||||
}
|
||||
}
|
||||
} else if (jsonResult != null) {
|
||||
jsonResult.put("matchResult", new MatchDistrictResult());
|
||||
// 判断是否为自然村
|
||||
boolean matchedVillage = false;
|
||||
try {
|
||||
if (jsonResult.get("searchAddress") != null) {
|
||||
JSONObject searchAddress = (JSONObject) jsonResult.get("searchAddress");
|
||||
String city = searchAddress.containsKey("city") ? searchAddress.getString("city") : null;
|
||||
String region = searchAddress.containsKey("district") ? searchAddress.getString("district") : null;
|
||||
String name = searchAddress.containsKey("keywords") ? searchAddress.getString("keywords") : null;
|
||||
String township = searchAddress.containsKey("township") ? searchAddress.getString("township") : null;
|
||||
if (StringUtils.isNotBlank(city) && StringUtils.isNotBlank(region) && StringUtils.isNotBlank(name)) {
|
||||
List<JSONObject> villages = findVillage(city, region, name);
|
||||
if (CollectionUtils.isNotEmpty(villages)) {
|
||||
if (villages.size() == 1 || StringUtils.isBlank(township)) {
|
||||
JSONObject village = villages.get(0).getJSONObject("_source");
|
||||
jsonResult.put("id", villages.get(0).getString("_id"));
|
||||
jsonResult.put("province", village.getString("province"));
|
||||
jsonResult.put("city", village.getString("city"));
|
||||
jsonResult.put("district", village.getString("region"));
|
||||
jsonResult.put("township", village.getString("township"));
|
||||
jsonResult.put("name", village.getString("name"));
|
||||
jsonResult.put("lng", village.getJSONObject("location").getDouble("lon"));
|
||||
jsonResult.put("lat", village.getJSONObject("location").getDouble("lat"));
|
||||
jsonResult.put("propertyType", "自然村");
|
||||
matchedVillage = true;
|
||||
} else {
|
||||
for (JSONObject source : villages) {
|
||||
JSONObject village = source.getJSONObject("_source");
|
||||
if (village.getString("township").contains(township) || township.contains(village.getString("township"))) {
|
||||
jsonResult.put("id", source.getString("_id"));
|
||||
jsonResult.put("province", village.getString("province"));
|
||||
jsonResult.put("city", village.getString("city"));
|
||||
jsonResult.put("district", village.getString("region"));
|
||||
jsonResult.put("township", village.getString("township"));
|
||||
jsonResult.put("name", village.getString("name"));
|
||||
jsonResult.put("lng", village.getJSONObject("location").getDouble("lon"));
|
||||
jsonResult.put("lat", village.getJSONObject("location").getDouble("lat"));
|
||||
jsonResult.put("propertyType", "自然村");
|
||||
matchedVillage = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch(Exception ex) {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
if (matchedVillage == false) {
|
||||
jsonResult.put("matchResult", new MatchDistrictResult());
|
||||
}
|
||||
}
|
||||
resultModel.setResult(json.get("result"));
|
||||
mav.setModel(resultModel);
|
||||
@@ -918,6 +977,60 @@ public class AddressController {
|
||||
return ret;
|
||||
}
|
||||
|
||||
private JSONObject addTerm(String name, String value){
|
||||
JSONObject term = new JSONObject();
|
||||
JSONObject match = new JSONObject();
|
||||
match.put(name, value);
|
||||
term.put("term", match);
|
||||
return term;
|
||||
}
|
||||
|
||||
/***
|
||||
* 获取自然村
|
||||
* @param city
|
||||
* @param region
|
||||
* @param name
|
||||
* @return
|
||||
*/
|
||||
private List<JSONObject> findVillage(String city, String region, String name) {
|
||||
JSONObject reqBody = new JSONObject();
|
||||
reqBody.put("from", 0);
|
||||
reqBody.put("size", 5);
|
||||
JSONObject query = new JSONObject();
|
||||
JSONObject bool = new JSONObject();
|
||||
JSONArray must = new JSONArray();
|
||||
must.add(addTerm("city", city));
|
||||
must.add(addTerm("region", region));
|
||||
must.add(addTerm("name", name));
|
||||
bool.put("must", must);
|
||||
query.put("bool", bool);
|
||||
reqBody.put("query", query);
|
||||
Base64 token = new Base64();
|
||||
String authenticationEncoding = token.encodeAsString((""+ES_USER+":"+ES_PASSWORD+"").getBytes());
|
||||
HttpRequest request = new HttpRequest();
|
||||
Map<String, String> headers = new HashMap<String, String>();
|
||||
headers.put("Content-Type", "application/json");
|
||||
headers.put("Authorization", "Basic "+authenticationEncoding+"");
|
||||
try {
|
||||
String response = request.postWithBody("http://192.168.0.45:9200/village/_search", reqBody, headers, "UTF-8");
|
||||
JSONObject json = JSONObject.fromObject(response);
|
||||
if(!json.containsKey("hits") || !json.getJSONObject("hits").containsKey("hits")){
|
||||
return Collections.emptyList();
|
||||
}
|
||||
JSONArray hits = json.getJSONObject("hits").getJSONArray("hits");
|
||||
List<JSONObject> results = new ArrayList<JSONObject>();
|
||||
for(int i=0 ;i < hits.size(); i++){
|
||||
JSONObject jsonObject = hits.getJSONObject(i);
|
||||
results.add(jsonObject);
|
||||
}
|
||||
return results;
|
||||
|
||||
} catch (HttpRequestException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
/**
|
||||
* ¼ÓÔØ²âÊÔÊý¾Ý
|
||||
*
|
||||
|
||||
+7
-2
@@ -955,8 +955,13 @@ public class PropertyController {
|
||||
District district = districtService.findByNameAndAlias(model.getCity(), model.getDistrict(), model.getName(),
|
||||
"district");
|
||||
if (district == null) {
|
||||
mav.setModel(BasicModel.buildBadRequestModel("该小区不存在"));
|
||||
return mav;
|
||||
if(model.getDistrict().contains("市辖区")){
|
||||
district = districtService.findByNameAndAlias(model.getCity(), null, model.getName(), "district");
|
||||
}
|
||||
if(district == null){
|
||||
mav.setModel(BasicModel.buildBadRequestModel("该小区不存在"));
|
||||
return mav;
|
||||
}
|
||||
}
|
||||
model.setName(district.getName());
|
||||
|
||||
|
||||
+40
-3
@@ -7,6 +7,7 @@ import com.fangjia.script.commData.CommonDatautils
|
||||
import com.fangjia.script.gj.ccb.CcbCodeUtils
|
||||
import com.fangjia.script.gj.ccb.FileUtils
|
||||
import com.fangjia.script.util.DateUtils
|
||||
import groovy.sql.Sql
|
||||
|
||||
import java.util.concurrent.CountDownLatch
|
||||
import java.util.concurrent.ExecutorService
|
||||
@@ -22,6 +23,9 @@ class BigdataCommbuildtypeBatch extends BaseBatch{
|
||||
|
||||
public static ExecutorService fixedThreadPool = Executors.newFixedThreadPool(40)
|
||||
|
||||
def sqlInstance = Sql.newInstance("jdbc:postgresql://192.168.0.236:5432/warehouse?stringtype=unspecified",
|
||||
"postgres", "postgres", "org.postgresql.Driver")
|
||||
|
||||
static main(args) {
|
||||
runBatch(new BigdataCommbuildtypeBatch(), args);
|
||||
}
|
||||
@@ -29,14 +33,14 @@ class BigdataCommbuildtypeBatch extends BaseBatch{
|
||||
@Override
|
||||
public void process(Object args) {
|
||||
def citys = CcbCommonUtils.getRunningCitys(args)
|
||||
citys = citys.unique()
|
||||
def rets = []
|
||||
def cityCodeDatas = CcbCommonUtils.findCityCodeValue()
|
||||
for(def city : citys){
|
||||
|
||||
// def distCodeMap = CcbCommonUtils.findAllDistrictCodeValue(city)
|
||||
// def dists = CcbCommonUtils.findAllDistrictByCity(city, "district", ["city", "region", "name", "estate_type2","name_cat","build_type", "lng","c_date", "m_date"])
|
||||
def distIds = CcbCommonUtils.findAllDistrictIdsByOracle(cityCodeDatas.get(city));
|
||||
// def distIds = CcbCommonUtils.findAllDistrictIdsByOracle(cityCodeDatas.get(city));
|
||||
def distIds = PgsqlCommUtils.findAllDistrictIdsByOracle(cityCodeDatas.get(city))
|
||||
def rows = createDatas(cityCodeDatas.get(city), distIds)
|
||||
rets.addAll(rows)
|
||||
println city +" "+rows.size()
|
||||
@@ -50,7 +54,9 @@ class BigdataCommbuildtypeBatch extends BaseBatch{
|
||||
|
||||
def headers = []//["城市ID","小区ID"," 建筑类型","备注","创建时间","更新时间","来源公司","数据时间"]
|
||||
FileUtils.batchCreateFile(rets, fileName,headers, "utf-8", false);
|
||||
println "txt 生成"
|
||||
println "txt Éú³É->µ¼Oracle"
|
||||
|
||||
saveToPgSql(rets)
|
||||
|
||||
}
|
||||
|
||||
@@ -103,4 +109,35 @@ class BigdataCommbuildtypeBatch extends BaseBatch{
|
||||
}
|
||||
return rets;
|
||||
}
|
||||
|
||||
|
||||
def saveToPgSql(rows){
|
||||
def sqls = []
|
||||
for(def r : rows) {
|
||||
for (def i = 0; i < r.size(); i++) {
|
||||
if("" == r[i]){
|
||||
r[i] = null
|
||||
}
|
||||
}
|
||||
r << null
|
||||
r << '2023-02-28'
|
||||
r << null
|
||||
r << '2999-12-31'
|
||||
r << null
|
||||
r << null
|
||||
r << null
|
||||
}
|
||||
|
||||
def sql = "insert into base.t0831_bigdata_commbuildtype_gj_h values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)"
|
||||
println "start: "+new Date()
|
||||
def index =0
|
||||
sqlInstance.withBatch(20000, sql){ ps->
|
||||
for(def r : rows) {
|
||||
index++
|
||||
println index
|
||||
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])
|
||||
}
|
||||
}
|
||||
println "end: "+new Date()
|
||||
}
|
||||
}
|
||||
|
||||
+38
-3
@@ -12,6 +12,7 @@ import com.fangjia.script.gj.district.FangjiaClientUtils
|
||||
import com.fangjia.script.util.DateUtils
|
||||
import com.fangjia.script.util.ExcelUtils
|
||||
import com.fangjia.script.util.OpenApiClient
|
||||
import groovy.sql.Sql
|
||||
|
||||
import java.util.concurrent.CopyOnWriteArrayList
|
||||
import java.util.concurrent.CountDownLatch
|
||||
@@ -30,6 +31,9 @@ class BigdataCommunityBatch extends BaseBatch{
|
||||
|
||||
public static ExecutorService fixedThreadPool = Executors.newFixedThreadPool(10)
|
||||
|
||||
def sqlInstance = Sql.newInstance("jdbc:postgresql://192.168.0.236:5432/warehouse?stringtype=unspecified",
|
||||
"postgres", "postgres", "org.postgresql.Driver")
|
||||
|
||||
static main(args) {
|
||||
runBatch(new BigdataCommunityBatch(), args);
|
||||
}
|
||||
@@ -37,7 +41,6 @@ class BigdataCommunityBatch extends BaseBatch{
|
||||
@Override
|
||||
public void process(Object args) {
|
||||
def citys = CcbCommonUtils.getRunningCitys(args)
|
||||
|
||||
def rows = []
|
||||
|
||||
def headers = []//["城市ID","行政区ID","小区ID","行政区名称","小区名称","详细地址","纬度","经度","占地总面积","建筑总面积","绿化率","容积率","车位数量","建筑年代","房屋用途",
|
||||
@@ -71,7 +74,9 @@ class BigdataCommunityBatch extends BaseBatch{
|
||||
allDatas << headers
|
||||
allDatas.addAll(rows)
|
||||
FileUtils.batchCreateFile(rows, fileName,headers, "utf-8", false);
|
||||
println "txt 生成"
|
||||
println "txt Éú³É->µ¼Oracle"
|
||||
|
||||
saveToPgSql(rows)
|
||||
// ExcelUtils.write("d:\\数据\\建行\\房产估值\\数据文件\\excel\\bigdata_community.xlsx", allDatas, "数据")
|
||||
}
|
||||
|
||||
@@ -169,7 +174,7 @@ class BigdataCommunityBatch extends BaseBatch{
|
||||
ret << CcbCodeUtils.parseBuildYear(dist.finish_building_date)
|
||||
ret << CcbCodeUtils.parseHouseUse(dist.estate_type2)
|
||||
ret << dist.household_count
|
||||
ret << DateUtils.formatDateByPattern(new Date(),"yyyyMMdd")
|
||||
ret << DateUtils.formatDateByPattern(new Date(),"yyyyMMdd").toInteger()
|
||||
ret << dist.status
|
||||
ret << DateUtils.formatDateByPattern(dist.m_date, "yyyy-MM-dd HH:mm:ss")
|
||||
ret << "pa101"
|
||||
@@ -222,4 +227,34 @@ class BigdataCommunityBatch extends BaseBatch{
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
def saveToPgSql(rows){
|
||||
for(def r : rows) {
|
||||
for (def i = 0; i < r.size(); i++) {
|
||||
if("" == r[i]){
|
||||
r[i] = null
|
||||
}
|
||||
}
|
||||
r << null
|
||||
r << '2023-02-28'
|
||||
r << null
|
||||
r << '2999-12-31'
|
||||
r << null
|
||||
r << null
|
||||
r << null
|
||||
}
|
||||
|
||||
println "start: "+new Date()
|
||||
def sql = "insert into base.t0831_bigdata_community_gj_h values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)"
|
||||
|
||||
sqlInstance.withBatch(20000, 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()
|
||||
}
|
||||
}
|
||||
|
||||
println "end: "+new Date()
|
||||
}
|
||||
}
|
||||
|
||||
+43
-6
@@ -50,6 +50,9 @@ class BigdataDealBatch extends BaseBatch{
|
||||
def sqlInstance = Sql.newInstance("jdbc:oracle:thin:@192.168.0.236:1521:orcl",
|
||||
"GOOJIA", "GOOJIA", "oracle.jdbc.driver.OracleDriver")
|
||||
|
||||
def pgsqlInstance = Sql.newInstance("jdbc:postgresql://192.168.0.236:5432/warehouse?stringtype=unspecified",
|
||||
"postgres", "postgres", "org.postgresql.Driver")
|
||||
|
||||
static main(args) {
|
||||
runBatch(new BigdataDealBatch(), args);
|
||||
}
|
||||
@@ -64,11 +67,11 @@ class BigdataDealBatch extends BaseBatch{
|
||||
}
|
||||
|
||||
println "curDate:"+curDate
|
||||
for(def city : citys){
|
||||
// if(!ccbCitys.contains(city)){
|
||||
addDealPriceMatch(city);
|
||||
// }
|
||||
}
|
||||
// for(def city : citys){
|
||||
//// if(!ccbCitys.contains(city)){
|
||||
// addDealPriceMatch(city);
|
||||
//// }
|
||||
// }
|
||||
def rows = []
|
||||
def headers = []//["城市ID","成交ID","城市名称","行政区ID","行政区名称","街道","门牌号","小区ID","小区名称","楼栋ID","楼栋编号","楼栋名称","单元ID","单元编号","单元名称","户ID","详细地址","建筑年代","权属","权属年限","期数","所在楼层","层类型","总楼层数","建筑类型","建筑结构","建筑面积","套内面积","户型","室","厅","厨","卫","房屋用途","室内结构","朝向","装修情况","评估编号","成交单价","成交总价","申报总价","评估总价","网签合同编号","交易日期","交易类型","出售付款方式","成交周期","是否有电梯","赠送面积(地面花园)","赠送面积(露台)","赠送面积(阳台)","赠送面积(飘窗)","赠送面积(阁楼)","赠送面积(车库)","赠送面积(地下室)","赠送面积(其他)","房源数据来源","中介公司ID","中介公司名称","备注","创建时间","更新时间","来源公司","成交金额","数据时间"]
|
||||
def cityCodeDataMap = CcbCommonUtils.findCityCodeValue()
|
||||
@@ -106,6 +109,8 @@ class BigdataDealBatch extends BaseBatch{
|
||||
|
||||
FileUtils.batchCreateFile(rows, fileName,headers, "utf-8", false);
|
||||
println "txt 生成 " + rows.size()
|
||||
|
||||
saveToPgSql(rows)
|
||||
}
|
||||
|
||||
def createData(def rets, cityCodeDatas, distCodeMap, source){
|
||||
@@ -633,7 +638,8 @@ class BigdataDealBatch extends BaseBatch{
|
||||
|
||||
|
||||
def addDealPriceMatch(city){
|
||||
def startDate = DateUtils.getFirstDayOfMonth(DateUtils.parseFromTightByPattern(curDate.toString(), "yyyyMMdd"))
|
||||
// def startDate = DateUtils.getFirstDayOfMonth(DateUtils.parseFromTightByPattern(curDate.toString(), "yyyyMMdd"))
|
||||
def startDate = DateUtils.parseFromTightByPattern(startDate.toString()+"01", "yyyyMMdd")
|
||||
def endDate = DateUtils.getLastDayOfMonth(DateUtils.parseFromTightByPattern(curDate.toString(), "yyyyMMdd"))
|
||||
// def startDate = DateUtils.getFirstDayOfMonth(DateUtils.parseFromTightByPattern("20210101", "yyyyMMdd"))
|
||||
// def endDate = DateUtils.getLastDayOfMonth(DateUtils.parseFromTightByPattern("20221001", "yyyyMMdd"))
|
||||
@@ -679,4 +685,35 @@ class BigdataDealBatch extends BaseBatch{
|
||||
latch.await()
|
||||
println city +" "+trades.size()+" "+new Date().toString()
|
||||
}
|
||||
|
||||
def saveToPgSql(rows){
|
||||
for(def r : rows) {
|
||||
for (def i = 0; i < r.size(); i++) {
|
||||
if("" == r[i]){
|
||||
r[i] = null
|
||||
}
|
||||
}
|
||||
r << null
|
||||
r << '2023-02-28'
|
||||
r << null
|
||||
r << '2999-12-31'
|
||||
r << null
|
||||
r << null
|
||||
r << null
|
||||
}
|
||||
|
||||
println "start: "+new Date()
|
||||
def sql = "insert into base.t0831_bigdata_deal_gj_h values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)"
|
||||
|
||||
pgsqlInstance.withBatch(20000, 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], r[39],
|
||||
r[40], r[41], r[42], r[43], r[44], r[45], r[46], r[47], r[48], r[49],r[50], r[51], r[52], r[53], r[54], r[55], r[56], r[57], r[58], r[59],
|
||||
r[60], r[61], r[62], r[63], r[64], r[65], r[66], r[67], r[68], r[69],r[70], r[71])
|
||||
}
|
||||
}
|
||||
|
||||
println "end: "+new Date()
|
||||
}
|
||||
}
|
||||
|
||||
+365
-29
@@ -21,6 +21,7 @@ import org.elasticsearch.index.query.QueryBuilders
|
||||
import org.elasticsearch.xpack.sql.jdbc.EsDataSource
|
||||
|
||||
import java.util.concurrent.ConcurrentHashMap
|
||||
import java.util.concurrent.CopyOnWriteArrayList
|
||||
import java.util.concurrent.CountDownLatch
|
||||
import java.util.concurrent.ExecutorService
|
||||
import java.util.concurrent.Executors
|
||||
@@ -57,15 +58,22 @@ class BigdataForsaleBatch extends BaseBatch{
|
||||
public static final String[] TAGS = ["独栋", "联排", "叠加", "双拼", "花园面积", "泳池", "别墅", "带花园", "洋房", "叠拼", "独院", "联体", "微墅", "大平墅"];
|
||||
public static ExecutorService fixedThreadPool = Executors.newFixedThreadPool(60)
|
||||
|
||||
public static ExecutorService fixedThreadPool2 = Executors.newFixedThreadPool(200)
|
||||
|
||||
|
||||
def sqlInstance = Sql.newInstance("jdbc:oracle:thin:@192.168.0.236:1521:orcl",
|
||||
"GOOJIA", "GOOJIA", "oracle.jdbc.driver.OracleDriver")
|
||||
|
||||
def pgsqlInstance = Sql.newInstance("jdbc:postgresql://192.168.0.236:5432/warehouse?stringtype=unspecified",
|
||||
"postgres", "postgres", "org.postgresql.Driver")
|
||||
|
||||
static main(args) {
|
||||
runBatch(new BigdataForsaleBatch(), args);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void process(Object args) {
|
||||
//目前查询库中是否已存在,用的是Oracle
|
||||
def index = 0
|
||||
def citys = CcbCommonUtils.getRunningCitys(args)
|
||||
def cityCodeDataMap = CcbCommonUtils.findCityCodeValue()
|
||||
@@ -74,7 +82,7 @@ class BigdataForsaleBatch extends BaseBatch{
|
||||
// def distIds = getDistrictIds(cityCodeDataMap.get(city))
|
||||
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, 20221118, 20221219);
|
||||
exportSellCSV(index, city, cityCodeDataMap, distCodeMap, districts, 20230118, 20230219);
|
||||
// exportSellCSV(index, city, cityCodeDataMap, distCodeMap, districts, 20210901, 20221119);
|
||||
// exportSellCSV(index, city, cityCodeDataMap, distCodeMap, districts, 20211001, 20221011);
|
||||
// exportSellCSV(index, city, cityCodeDataMap, distCodeMap, districts, 20210801, 20210831);
|
||||
@@ -102,6 +110,33 @@ class BigdataForsaleBatch extends BaseBatch{
|
||||
|
||||
def exportSellCSV(index,city, cityCodeDataMap, distCodeMap, districts, startDate, endDate){
|
||||
|
||||
def retMap = findAllCommHouse(index,city, cityCodeDataMap, distCodeMap, districts, startDate, endDate)
|
||||
println city + "(原)房源总量:"+retMap.size()
|
||||
|
||||
def allDatas = retMap.values()
|
||||
allDatas = repeatHouseId(allDatas)
|
||||
println city + "(新)房源总量:"+allDatas.size()
|
||||
|
||||
|
||||
def fileName = "/home/goojia/ccb/BIGDATA_FORSALE_GJ.dat"
|
||||
if(CommonDatautils.isWindow()){
|
||||
fileName = "d:\\数据\\建行\\房产估值\\数据文件\\txt\\BIGDATA_FORSALE_GJ.dat"
|
||||
}
|
||||
|
||||
|
||||
// def allDatas = createSellDatas(city, retMap.values());
|
||||
|
||||
def headers = []
|
||||
// if(index == 1){
|
||||
// headers = ["城市ID","出售ID","挂牌房屋ID","城市名称","行政区ID","行政区名称","小区ID","小区名称","楼栋ID","楼栋编号","楼栋名称","单元ID","单元编号","单元名称","户ID","详细地址","建筑年代","权属","权属年限","单价","总价","出售付款方式","所在楼层","总楼层","建筑类型","室内结构","建筑结构","建筑面积","套内面积","户型","室","厅","厨","卫","朝向","装修情况","是否有电梯","几梯几户","发布时间","到期时间","是否首发","房源数据来源","中介公司ID","中介公司名称","发布人","发布人电话","描述信息","备注","创建时间","更新时间","来源公司","附加信息"]
|
||||
// }
|
||||
FileUtils.batchCreateFile(allDatas, fileName, headers, "utf-8", true);
|
||||
println "txt文件生成->手动导入到Oracle "
|
||||
|
||||
saveToPgSql(allDatas)
|
||||
}
|
||||
|
||||
def findAllCommHouse(index,city, cityCodeDataMap, distCodeMap, districts, startDate, endDate){
|
||||
def totalCount = new AtomicLong()
|
||||
final CountDownLatch latch = new CountDownLatch(districts.size())
|
||||
println city +" 小区量:"+districts.size()
|
||||
@@ -116,7 +151,8 @@ class BigdataForsaleBatch extends BaseBatch{
|
||||
totalCount.addAndGet(1)
|
||||
def commId = rMap.get("_id").toString()
|
||||
|
||||
def ret = findHouses(city, rMap.region, "sell", startDate,endDate, rMap.name, rMap.alias, rMap.estate_type2)
|
||||
|
||||
def ret = findHouses(city, rMap.region, "sell", startDate,endDate, rMap.name, rMap.alias, rMap.estate_type2, commId, cityCodeDataMap)
|
||||
//def ret = findHousesByDistId(city, commId, "sell", startDate,endDate)
|
||||
// if(ret && ret.size()<100){//导历史房源需要,以后不需要
|
||||
// ret = findHouses(city, rMap.region, "sell", 20190701, endDate, rMap.name, rMap.alias)
|
||||
@@ -166,21 +202,38 @@ class BigdataForsaleBatch extends BaseBatch{
|
||||
})
|
||||
}
|
||||
latch.await()
|
||||
return retMap
|
||||
}
|
||||
|
||||
def fileName = "/home/goojia/ccb/BIGDATA_FORSALE_GJ.dat"
|
||||
if(CommonDatautils.isWindow()){
|
||||
fileName = "d:\\数据\\建行\\房产估值\\数据文件\\txt\\BIGDATA_FORSALE_GJ.dat"
|
||||
|
||||
def repeatHouseId(allDatas){
|
||||
def totalCount = new AtomicLong()
|
||||
final CountDownLatch latch = new CountDownLatch(allDatas.size())
|
||||
def rets = new CopyOnWriteArrayList()
|
||||
for(def i=0;i<allDatas.size();i++){
|
||||
final def houseInfo = allDatas[i];
|
||||
|
||||
fixedThreadPool2.execute(new Runnable() {
|
||||
void run() {
|
||||
try {
|
||||
totalCount.addAndGet(1)
|
||||
def count = isExistFromHouse(houseInfo[1])
|
||||
if(count){
|
||||
println houseInfo[1]+" 已存在 "+totalCount.get()
|
||||
}else{
|
||||
rets << houseInfo
|
||||
}
|
||||
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace()
|
||||
} finally {
|
||||
latch.countDown()
|
||||
}
|
||||
};
|
||||
})
|
||||
}
|
||||
|
||||
println city + " 房源总量:"+retMap.size()
|
||||
// def allDatas = createSellDatas(city, retMap.values());
|
||||
def allDatas = retMap.values()
|
||||
def headers = []
|
||||
// if(index == 1){
|
||||
// headers = ["城市ID","出售ID","挂牌房屋ID","城市名称","行政区ID","行政区名称","小区ID","小区名称","楼栋ID","楼栋编号","楼栋名称","单元ID","单元编号","单元名称","户ID","详细地址","建筑年代","权属","权属年限","单价","总价","出售付款方式","所在楼层","总楼层","建筑类型","室内结构","建筑结构","建筑面积","套内面积","户型","室","厅","厨","卫","朝向","装修情况","是否有电梯","几梯几户","发布时间","到期时间","是否首发","房源数据来源","中介公司ID","中介公司名称","发布人","发布人电话","描述信息","备注","创建时间","更新时间","来源公司","附加信息"]
|
||||
// }
|
||||
FileUtils.batchCreateFile(allDatas, fileName, headers, "utf-8", true);
|
||||
println "txt文件生成 "
|
||||
latch.await()
|
||||
return rets
|
||||
}
|
||||
|
||||
|
||||
@@ -427,8 +480,29 @@ class BigdataForsaleBatch extends BaseBatch{
|
||||
}
|
||||
|
||||
|
||||
def findHouses(def city, def region, def cat, def startDate, def endDate, def name, def alias, def estate_type2){
|
||||
def findHouses(def city, def region, def cat, def startDate, def endDate, def name, def alias, def estate_type2, def commId, def cityCodeDataMap){
|
||||
|
||||
def rets1 = findHousesByPdate(city, region, cat, startDate, endDate, name, alias, estate_type2)
|
||||
def rets2 = findHousesByMdate(city, region, cat, startDate, endDate, name, alias, estate_type2, rets1)
|
||||
rets1.addAll(rets2)
|
||||
// if(rets1){
|
||||
// def newRets = []
|
||||
// def cityCode = cityCodeDataMap.get(city)
|
||||
// def houseIds = getAllHouseIds(commId, cityCode)
|
||||
// for(def r : rets1){
|
||||
// if(!houseIds.contains(r.houseId)){
|
||||
// newRets << r
|
||||
// }else{
|
||||
// println r.houseId +" 已存在"
|
||||
// }
|
||||
// }
|
||||
// return newRets
|
||||
// }
|
||||
// return [];
|
||||
return rets1;
|
||||
}
|
||||
|
||||
def findHousesByPdate(def city, def region, def cat, def startDate, def endDate, def name, def alias, def estate_type2){
|
||||
QueryBuilder date_range = QueryBuilders.rangeQuery("p_date").from(startDate).to(endDate).includeLower(false).includeUpper(false);
|
||||
QueryBuilder area_range = QueryBuilders.rangeQuery("area").from(20).to(500).includeLower(true).includeUpper(false);
|
||||
|
||||
@@ -459,8 +533,11 @@ class BigdataForsaleBatch extends BaseBatch{
|
||||
}
|
||||
|
||||
|
||||
def hosts = ["192.168.0.206","192.168.0.211","192.168.0.212","192.168.0.213","192.168.0.214","192.168.0.215"]
|
||||
def index = new Random().nextInt(6);
|
||||
|
||||
def rets = []
|
||||
def houses = ElasticUtils.executeSimpleQuery("192.168.0.206", "seawater-20*", queryBuilder);
|
||||
def houses = ElasticUtils.executeSimpleQuery(hosts[index], "seawater-20*", queryBuilder);
|
||||
|
||||
if(houses){
|
||||
for (int k=0;k<houses.size();k++) {
|
||||
@@ -586,7 +663,217 @@ class BigdataForsaleBatch extends BaseBatch{
|
||||
def fitment = parseFitment(seawater.fitment)
|
||||
rowMap.fitment = fitment=="null"?null:fitment
|
||||
|
||||
if(seawater.p_date instanceof String){
|
||||
seawater.p_date = seawater.p_date.toInteger()
|
||||
}
|
||||
if(seawater.p_date<=20200101){
|
||||
//seawater.p_date.toString().replace("2019","2020")//
|
||||
rowMap.p_date = DateUtils.getRandomDate("2020-01-01", "2020-07-31")
|
||||
rowMap.c_date = rowMap.p_date
|
||||
rowMap.m_date = rowMap.p_date
|
||||
}else{
|
||||
rowMap.p_date = DateUtils.formatDateByPattern(DateUtils.parseFromTightYYYYMMDD2(seawater.p_date.toString()), "yyyy-MM-dd HH:mm:ss")
|
||||
rowMap.c_date = DateUtils.getConverDate(seawater.m_date)
|
||||
rowMap.m_date = DateUtils.formatDateByPattern(new Date(), "yyyy-MM")+"-18 10:00:00"//DateUtils.getConverDate(seawater.m_date)
|
||||
}
|
||||
|
||||
rets << rowMap
|
||||
|
||||
// if(houseIds.contains(seawater.id)){
|
||||
// println seawater.id +" 已存在"
|
||||
// }else{
|
||||
// rets << rowMap
|
||||
// }
|
||||
|
||||
// def count = isExistFromHouse(seawater.id)
|
||||
// if(count){
|
||||
// println seawater.id +" 已存在"
|
||||
// }else{
|
||||
// rets << rowMap
|
||||
// }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
println name +" "+houses.size()+" last:"+rets.size()
|
||||
return rets;
|
||||
}
|
||||
|
||||
|
||||
def findHousesByMdate(def city, def region, def cat, def startDate, def endDate, def name, def alias, def estate_type2, rets1){
|
||||
def date = DateUtils.addMonth(endDate.toString(), -3, "yyyyMMdd")
|
||||
def startMdate = DateUtils.parseFromTightByPattern(date,"yyyyMMdd")
|
||||
def endMdate = DateUtils.parseFromTightByPattern(endDate.toString(), "yyyyMMdd")
|
||||
|
||||
QueryBuilder date_range = QueryBuilders.rangeQuery("p_date").from(date.toInteger()).to(endDate).includeLower(false).includeUpper(false);
|
||||
QueryBuilder area_range = QueryBuilders.rangeQuery("area").from(20).to(500).includeLower(true).includeUpper(false);
|
||||
|
||||
|
||||
QueryBuilder date_range_mdate = QueryBuilders.rangeQuery("m_date").from(startMdate.getTime()).to(endMdate.getTime()).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).must(date_range_mdate)
|
||||
|
||||
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)
|
||||
}
|
||||
|
||||
def hosts = ["192.168.0.206","192.168.0.211","192.168.0.212","192.168.0.213","192.168.0.214","192.168.0.215"]
|
||||
def index = new Random().nextInt(6);
|
||||
|
||||
def rets = []
|
||||
def houses = ElasticUtils.executeSimpleQuery(hosts[index], "seawater-20*", queryBuilder);
|
||||
|
||||
if(houses){
|
||||
|
||||
def ids = new HashSet()
|
||||
for(def h : rets1){
|
||||
ids << h.houseId
|
||||
}
|
||||
for (int k=0;k<houses.size();k++) {
|
||||
def map = houses[k];
|
||||
DBObject seawater = new BasicDBObject(map)
|
||||
if(ids && ids.contains(seawater.id)){
|
||||
continue;
|
||||
}
|
||||
|
||||
if(estate_type2 && estate_type2=="普通住宅"){
|
||||
if(seawater.estate_type && (seawater.estate_type.contains("商住") || seawater.estate_type.contains("商业") || seawater.estate_type.contains("商务"))){
|
||||
println city +" "+name+" "+seawater._id.toString()+" "+seawater.estate_type
|
||||
continue;
|
||||
}
|
||||
|
||||
if(seawater.estate_type&& seawater.estate_type.contains("别墅")){
|
||||
println city +" "+name+" "+seawater._id.toString()+" "+seawater.estate_type
|
||||
continue;
|
||||
}
|
||||
|
||||
def vallaFlag = isVilla(seawater.area, seawater.name, seawater.height, seawater.room)
|
||||
if(vallaFlag){
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if(!seawater.total_price){
|
||||
continue;
|
||||
}
|
||||
if(!seawater.avg_price){
|
||||
continue;
|
||||
}
|
||||
|
||||
if(!seawater.height){
|
||||
seawater.height = null
|
||||
}
|
||||
// if(seawater.height && seawater.height<1){
|
||||
// continue;
|
||||
// }
|
||||
if(seawater.height && seawater.height>60){
|
||||
continue;
|
||||
}
|
||||
|
||||
// if(!seawater.room){
|
||||
// continue;
|
||||
// }
|
||||
if(!seawater.room){
|
||||
seawater.room = null
|
||||
}
|
||||
|
||||
if(seawater.room){
|
||||
if(seawater.room>=11 || seawater.room<1){
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
if(!seawater.hall){
|
||||
seawater.hall = null
|
||||
}
|
||||
if(seawater.hall && (seawater.hall>=5 || seawater.hall<1)){
|
||||
continue;
|
||||
}
|
||||
if(!seawater.toilet){
|
||||
seawater.toilet = null
|
||||
}
|
||||
if(seawater.toilet && (seawater.toilet>=5 || seawater.toilet<1)){
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
def floor = parseFloor(seawater.floor_info)
|
||||
if(seawater.height && floor && floor.isNumber()){
|
||||
if(floor.toInteger()>seawater.height){
|
||||
floor = null
|
||||
seawater.height = null
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if(!floor){
|
||||
seawater.floor = null
|
||||
}
|
||||
if(floor && floor.toInteger()<1){
|
||||
floor = null
|
||||
}
|
||||
|
||||
def rowMap = [:];
|
||||
if(cat == "rent"){
|
||||
rowMap.rent_type = seawater.rent_type
|
||||
if(seawater.avg_price && seawater.avg_price>1000){
|
||||
continue
|
||||
}
|
||||
|
||||
if(seawater.avg_price && seawater.avg_price<10){
|
||||
continue
|
||||
}
|
||||
|
||||
}
|
||||
rowMap.houseId = seawater.id
|
||||
rowMap.city = CcbCommonUtils.getCcbCity(city)
|
||||
//rowMap.region =seawater.region
|
||||
//rowMap.address = seawater.address
|
||||
|
||||
|
||||
rowMap.area = seawater.area
|
||||
rowMap.total_price = seawater.total_price
|
||||
rowMap.avg_price = seawater.avg_price
|
||||
rowMap.height = seawater.height=="null"?null:seawater.height
|
||||
if(rowMap.height && rowMap.height<1){
|
||||
rowMap.height = null
|
||||
}
|
||||
rowMap.floor = floor=="null"?null:floor
|
||||
rowMap.room = seawater.room=="null"?null:seawater.room
|
||||
rowMap.hall = seawater.hall=="null"?null:seawater.hall
|
||||
rowMap.toilet = seawater.toilet=="null"?null:seawater.toilet
|
||||
if(CcbCommonUtils.rootMap.get(seawater.root)){
|
||||
rowMap.root = CcbCommonUtils.rootMap.get(seawater.root)
|
||||
}else{
|
||||
rowMap.root = "99"
|
||||
}
|
||||
|
||||
def direction = parseDirection(seawater.direction)
|
||||
rowMap.direction = direction=="null"?null:direction
|
||||
|
||||
def fitment = parseFitment(seawater.fitment)
|
||||
rowMap.fitment = fitment=="null"?null:fitment
|
||||
|
||||
if(seawater.p_date instanceof String){
|
||||
seawater.p_date = seawater.p_date.toInteger()
|
||||
@@ -599,10 +886,23 @@ class BigdataForsaleBatch extends BaseBatch{
|
||||
}else{
|
||||
rowMap.p_date = DateUtils.formatDateByPattern(DateUtils.parseFromTightYYYYMMDD2(seawater.p_date.toString()), "yyyy-MM-dd HH:mm:ss")
|
||||
rowMap.c_date = DateUtils.getConverDate(seawater.m_date)
|
||||
rowMap.m_date = DateUtils.getConverDate(seawater.m_date)
|
||||
rowMap.m_date = DateUtils.formatDateByPattern(new Date(), "yyyy-MM")+"-18 10:00:00"//DateUtils.getConverDate(seawater.m_date)
|
||||
}
|
||||
|
||||
rets << rowMap
|
||||
|
||||
// if(houseIds.contains(seawater.id)){
|
||||
// println seawater.id +" 已存在"
|
||||
// }else{
|
||||
// rets << rowMap
|
||||
// }
|
||||
|
||||
// def count = isExistFromHouse(seawater.id)
|
||||
// if(count){
|
||||
// println seawater.id +" 已存在"
|
||||
// }else{
|
||||
// rets << rowMap
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -758,12 +1058,6 @@ class BigdataForsaleBatch extends BaseBatch{
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* 生成一个用不重复的ID
|
||||
*/
|
||||
def GenNonDuplicateID(randomLength){
|
||||
return Number(Math.random().toString().substr(3,randomLength) + Date.now()).toString(36)
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -786,14 +1080,56 @@ class BigdataForsaleBatch extends BaseBatch{
|
||||
println ids.size()
|
||||
}
|
||||
|
||||
def getDistrictIds(def cityid){
|
||||
def sql = "SELECT commid FROM bigdata_forsale WHERE cityid = '"+cityid+"'";
|
||||
def getAllHouseIds(def commid, def cityCode){
|
||||
def sql = "SELECT FORSALEID FROM bigdata_forsale_gj WHERE cityid='"+cityCode+"' and commid = '"+commid+"'";
|
||||
|
||||
def distIds = new HashSet()
|
||||
def houseIds = new HashSet()
|
||||
sqlInstance.eachRow(sql,{it->
|
||||
distIds << it.commid
|
||||
houseIds << it.FORSALEID
|
||||
});
|
||||
return distIds;
|
||||
return houseIds;
|
||||
}
|
||||
|
||||
|
||||
def isExistFromHouse(def houseId){
|
||||
def sql = "SELECT count(FORSALEID) as count FROM bigdata_forsale_gj WHERE FORSALEID = '"+houseId+"'";
|
||||
|
||||
def count = null
|
||||
sqlInstance.eachRow(sql,{it->
|
||||
count = it.count
|
||||
});
|
||||
return count;
|
||||
}
|
||||
|
||||
def saveToPgSql(rows){
|
||||
for(def r : rows) {
|
||||
for (def i = 0; i < r.size(); i++) {
|
||||
if("" == r[i]){
|
||||
r[i] = null
|
||||
}
|
||||
}
|
||||
r << null
|
||||
r << '2023-02-28'
|
||||
r << null
|
||||
r << '2999-12-31'
|
||||
r << null
|
||||
r << null
|
||||
r << null
|
||||
}
|
||||
|
||||
println "start: "+new Date()
|
||||
def sql = "insert into base.t0831_bigdata_forsale_gj_h values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)"
|
||||
|
||||
pgsqlInstance.withBatch(20000, 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], r[39], r[40],
|
||||
r[41], r[42], r[43], r[44], r[45], r[46], r[47], r[48], r[49], r[50], r[51], r[52], r[53], r[54], r[55], r[56], r[57], r[58])
|
||||
ps.toString()
|
||||
}
|
||||
}
|
||||
|
||||
println "end: "+new Date()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+14
-4
@@ -16,7 +16,8 @@ import groovy.sql.Sql
|
||||
class CcbCommonUtils {
|
||||
|
||||
//
|
||||
public static def citys_all = [ "上海","长春","扬州","北京","重庆","天津","成都","沈阳","大连","安庆","西宁","日照","武汉","西安","苏州","广州","南京","青岛","济南","宁波","长沙","石家庄","佛山","嘉兴","银川","南通","廊坊","中山","郑州","哈尔滨","烟台","徐州","绍兴","厦门","昆明","南昌","贵阳","珠海","东莞","镇江","洛阳","温州","兰州","福州","惠州","呼和浩特","常州","唐山","淮安","湖州","九江","太原","北海","株洲","淄博","盐城","乌鲁木齐","海口","南宁","常德","台州","金华","吉林","岳阳","柳州","清远","湛江","张家口","保定","深圳","杭州","合肥","无锡","泉州","遵义","肇庆","漳州","宜昌","芜湖","泰州","汕头","三亚","秦皇岛","马鞍山","连云港","沧州","拉萨","锦州","大同","文昌","保亭","陵水","潍坊","临沂","邯郸","济宁","威海","绵阳","梅州","平顶山","江门","赣州","泰安","襄阳","南阳","桂林","聊城","临汾","德州","商丘","衡阳","宿迁","包头","渭南","咸阳","许昌","滨州","邢台","南充","安阳","新乡","枣庄","滁州","龙岩","宝鸡","信阳","运城","衡水","东营","晋中","孝感","长治","阜阳","韶关","菏泽","德阳","宁德","荆州","乐山","驻马店","南平","汉中","榆林","宜春","鞍山","开封","周口","绥化","湘潭","黄冈","承德","焦作","牡丹江","莆田","上饶","眉山","齐齐哈尔","郴州","营口","蚌埠","大庆","赤峰","河源","吕梁","遂宁","漯河","三明","茂名","濮阳","曲靖","平凉","鄂尔多斯","十堰","吉安","黄石","佳木斯","三门峡","揭阳","忻州","通辽","泸州","六安","潮州","衢州","淮南","荆门","永州","呼伦贝尔","葫芦岛","丹东","延边","宣城","宜宾","庆阳","晋城","阳江","宿州","延安","咸宁","怀化","黄山","舟山","汕尾","盘锦","朝阳","丽水","抚州","铁岭","红河","陇南","广安","抚顺","自贡","达州","玉林","玉溪","白银","亳州","邵阳","广元","昌吉","益阳","张掖","娄底","阳泉","天水","随州","朔州","大理","通化","楚雄","巴彦淖尔","乌兰察布","新余","景德镇","松原","辽阳","阜新","酒泉","黔南","淮北","四平","梧州","黔东南","巴中","鹤壁","鸡西","内江","钦州","池州","仙桃","恩施","本溪","资阳","六盘水","百色","白城","临夏","伊犁","贵港","白山","双鸭山","吴忠","鄂州","丽江","安康","毕节","云浮","巴音郭楞","安顺","阿克苏","黑河","铜陵","雅安","石嘴山","萍乡","鹤岗","锡林郭勒盟","铜仁","防城港","喀什","兴安盟","河池","铜川","普洱","保山","凉山州","鹰潭","定西","伊春","中卫","黔西南","商洛","乌海","武威","海西州","来宾","昭通","湘西","哈密","张家界","西双版纳州","七台河","固原","攀枝花","德宏州","崇左","辽源","嘉峪关","克拉玛依","临沧","潜江","贺州","天门","海东","塔城","儋州","金昌","博尔塔拉","吐鲁番","大兴安岭","阿勒泰","和田","迪庆州","日喀则","林芝","阿坝州","阿拉善盟","阿里","昌都","甘南","甘孜州","果洛州","海北州","海南州","黄南州","克孜勒苏","那曲","怒江州","三沙","山南","神农架","文山州","玉树州"]
|
||||
// public static def citys_all = [ "上海","长春","扬州","北京","重庆","天津","成都","沈阳","大连","安庆","西宁","日照","武汉","西安","苏州","广州","南京","青岛","济南","宁波","长沙","石家庄","佛山","嘉兴","银川","南通","廊坊","中山","郑州","哈尔滨","烟台","徐州","绍兴","厦门","昆明","南昌","贵阳","珠海","东莞","镇江","洛阳","温州","兰州","福州","惠州","呼和浩特","常州","唐山","淮安","湖州","九江","太原","北海","株洲","淄博","盐城","乌鲁木齐","海口","南宁","常德","台州","金华","吉林","岳阳","柳州","清远","湛江","张家口","保定","深圳","杭州","合肥","无锡","泉州","遵义","肇庆","漳州","宜昌","芜湖","泰州","汕头","三亚","秦皇岛","马鞍山","连云港","沧州","拉萨","锦州","大同","文昌","保亭","陵水","潍坊","临沂","邯郸","济宁","威海","绵阳","梅州","平顶山","江门","赣州","泰安","襄阳","南阳","桂林","聊城","临汾","德州","商丘","衡阳","宿迁","包头","渭南","咸阳","许昌","滨州","邢台","南充","安阳","新乡","枣庄","滁州","龙岩","宝鸡","信阳","运城","衡水","东营","晋中","孝感","长治","阜阳","韶关","菏泽","德阳","宁德","荆州","乐山","驻马店","南平","汉中","榆林","宜春","鞍山","开封","周口","绥化","湘潭","黄冈","承德","焦作","牡丹江","莆田","上饶","眉山","齐齐哈尔","郴州","营口","蚌埠","大庆","赤峰","河源","吕梁","遂宁","漯河","三明","茂名","濮阳","曲靖","平凉","鄂尔多斯","十堰","吉安","黄石","佳木斯","三门峡","揭阳","忻州","通辽","泸州","六安","潮州","衢州","淮南","荆门","永州","呼伦贝尔","葫芦岛","丹东","延边","宣城","宜宾","庆阳","晋城","阳江","宿州","延安","咸宁","怀化","黄山","舟山","汕尾","盘锦","朝阳","丽水","抚州","铁岭","红河","陇南","广安","抚顺","自贡","达州","玉林","玉溪","白银","亳州","邵阳","广元","昌吉","益阳","张掖","娄底","阳泉","天水","随州","朔州","大理","通化","楚雄","巴彦淖尔","乌兰察布","新余","景德镇","松原","辽阳","阜新","酒泉","黔南","淮北","四平","梧州","黔东南","巴中","鹤壁","鸡西","内江","钦州","池州","仙桃","恩施","本溪","资阳","六盘水","百色","白城","临夏","伊犁","贵港","白山","双鸭山","吴忠","鄂州","丽江","安康","毕节","云浮","巴音郭楞","安顺","阿克苏","黑河","铜陵","雅安","石嘴山","萍乡","鹤岗","锡林郭勒盟","铜仁","防城港","喀什","兴安盟","河池","铜川","普洱","保山","凉山州","鹰潭","定西","伊春","中卫","黔西南","商洛","乌海","武威","海西州","来宾","昭通","湘西","哈密","张家界","西双版纳州","七台河","固原","攀枝花","德宏州","崇左","辽源","嘉峪关","克拉玛依","临沧","潜江","贺州","天门","海东","塔城","儋州","金昌","博尔塔拉","吐鲁番","大兴安岭","阿勒泰","和田","迪庆州","日喀则","林芝","阿坝州","阿拉善盟","阿里","昌都","甘南","甘孜州","果洛州","海北州","海南州","黄南州","克孜勒苏","那曲","怒江州","三沙","山南","神农架","文山州","玉树州"]
|
||||
public static def citys_all = [ "上海","长春","扬州","北京","重庆","天津","成都","沈阳","大连","安庆","西宁","日照","武汉","西安","苏州","广州","南京","青岛","济南","宁波","长沙","石家庄","佛山","嘉兴","银川","南通","廊坊","中山","郑州","哈尔滨","烟台","徐州","绍兴","厦门","昆明","南昌","贵阳","珠海","东莞","镇江","洛阳","温州","兰州","福州","惠州","呼和浩特","常州","唐山","淮安","湖州","九江","太原","北海","株洲","淄博","盐城","乌鲁木齐","海口","南宁","常德","台州","金华","吉林","岳阳","柳州","清远","湛江","张家口","保定","深圳","杭州","合肥","无锡","泉州","遵义","肇庆","漳州","宜昌","芜湖","泰州","汕头","三亚","秦皇岛","马鞍山","连云港","沧州","拉萨","锦州","大同","文昌","保亭","陵水","潍坊","临沂","邯郸","济宁","威海","绵阳","梅州","平顶山","江门","赣州","泰安","襄阳","南阳","桂林","聊城","临汾","德州","商丘","衡阳","宿迁","包头","渭南","咸阳","许昌","滨州","邢台","南充","安阳","新乡","枣庄","滁州","龙岩","宝鸡","信阳","运城","衡水","东营","晋中","孝感","长治","阜阳","韶关","菏泽","德阳","宁德","荆州","乐山","驻马店","南平","汉中","榆林","宜春","鞍山","开封","周口","绥化","湘潭","黄冈","承德","焦作","牡丹江","莆田","上饶","眉山","齐齐哈尔","郴州","营口","蚌埠","大庆","赤峰","河源","吕梁","遂宁","漯河","三明","茂名","濮阳","曲靖","平凉","鄂尔多斯","十堰","吉安","黄石","佳木斯","三门峡","揭阳","忻州","通辽","泸州","六安","潮州","衢州","淮南","荆门","永州","呼伦贝尔","葫芦岛","丹东","延边","宣城","宜宾","庆阳","晋城","阳江","宿州","延安","咸宁","怀化","黄山","舟山","汕尾","盘锦","朝阳","丽水","抚州","铁岭","红河","陇南","广安","抚顺","自贡","达州","玉林","玉溪","白银","亳州","邵阳","广元","昌吉","益阳","张掖","娄底","阳泉","天水","随州","朔州","大理","通化","楚雄","巴彦淖尔","乌兰察布","新余","景德镇","松原","辽阳","阜新","酒泉","黔南","淮北","四平","梧州","黔东南","巴中","鹤壁","鸡西","内江","钦州","池州","仙桃","恩施","本溪","资阳","六盘水","百色","白城","临夏","伊犁","贵港","白山","双鸭山","吴忠","鄂州","丽江","安康","毕节","云浮","巴音郭楞","安顺","阿克苏","黑河","铜陵","雅安","石嘴山","萍乡","鹤岗","锡林郭勒盟","铜仁","防城港","喀什","兴安盟","河池","铜川","普洱","保山","凉山州","鹰潭","定西","伊春","中卫","黔西南","商洛","乌海","武威","海西州","来宾","昭通","湘西","哈密","张家界","西双版纳州","七台河","固原","攀枝花","德宏州","崇左","辽源","嘉峪关","克拉玛依","临沧","潜江","贺州","天门","海东","塔城","儋州","金昌","博尔塔拉","吐鲁番","大兴安岭","阿勒泰","和田","迪庆州","日喀则","林芝"]
|
||||
public static def citys_92 = [ "上海","扬州","北京","重庆","天津","成都","沈阳","大连","安庆","西宁","日照","长春","武汉","西安","苏州","广州","南京","青岛","济南","宁波","长沙","石家庄","佛山","嘉兴","银川","南通","廊坊","中山","郑州","哈尔滨","烟台","徐州","绍兴","厦门","昆明","南昌","贵阳","珠海","东莞","镇江","洛阳","温州","兰州","福州","惠州","呼和浩特","常州","唐山","淮安","湖州","九江","太原","北海","株洲","淄博","盐城","乌鲁木齐","海口","南宁","常德","台州","金华","吉林","岳阳","柳州","清远","湛江","张家口","保定","深圳","杭州","合肥","无锡","泉州","遵义","肇庆","漳州","宜昌","芜湖","泰州","汕头","三亚","秦皇岛","马鞍山","连云港","沧州","拉萨","锦州","大同","文昌","保亭","陵水"]
|
||||
public static def citys_252 = ["潍坊","临沂","邯郸","济宁","威海","绵阳","梅州","平顶山","江门","赣州","泰安","襄阳","南阳","桂林","聊城","临汾","德州","商丘","衡阳","宿迁","包头","渭南","咸阳","许昌","滨州","邢台","南充","安阳","新乡","枣庄","滁州","龙岩","宝鸡","信阳","运城","衡水","东营","晋中","孝感","长治","阜阳","韶关","菏泽","德阳","宁德","荆州","乐山","驻马店","南平","汉中","榆林","宜春","鞍山","开封","周口","绥化","湘潭","黄冈","承德","焦作","牡丹江","莆田","上饶","眉山","齐齐哈尔","郴州","营口","蚌埠","大庆","赤峰","河源","吕梁","遂宁","漯河","三明","茂名","濮阳","曲靖","平凉","鄂尔多斯","十堰","吉安","黄石","佳木斯","三门峡","揭阳","忻州","通辽","泸州","六安","潮州","衢州","淮南","荆门","永州","呼伦贝尔","葫芦岛","丹东","延边","宣城","宜宾","庆阳","晋城","阳江","宿州","延安","咸宁","怀化","黄山","舟山","汕尾","盘锦","朝阳","丽水","抚州","铁岭","红河","陇南","广安","抚顺","自贡","达州","玉林","玉溪","白银","亳州","邵阳","广元","昌吉","益阳","张掖","娄底","阳泉","天水","随州","朔州","大理","通化","楚雄","巴彦淖尔","乌兰察布","新余","景德镇","松原","辽阳","阜新","酒泉","黔南","淮北","四平","梧州","黔东南","巴中","鹤壁","鸡西","内江","钦州","池州","仙桃","恩施","本溪","资阳","六盘水","百色","白城","临夏","伊犁","贵港","白山","双鸭山","吴忠","鄂州","丽江","安康","毕节","云浮","巴音郭楞","安顺","阿克苏","黑河","铜陵","雅安","石嘴山","萍乡","鹤岗","锡林郭勒盟","铜仁","防城港","喀什","兴安盟","河池","铜川","普洱","保山","凉山州","鹰潭","定西","伊春","中卫","黔西南","商洛","乌海","武威","海西州","来宾","昭通","湘西","哈密","张家界","西双版纳州","七台河","固原","攀枝花","德宏州","崇左","辽源","嘉峪关","克拉玛依","临沧","潜江","贺州","天门","海东","塔城","儋州","金昌","博尔塔拉","吐鲁番","大兴安岭","阿勒泰","和田","迪庆州","日喀则","林芝","阿坝州","阿拉善盟","阿里","昌都","甘南","甘孜州","果洛州","海北州","海南州","黄南州","克孜勒苏","那曲","怒江州","三沙","山南","神农架","文山州","玉树州"]
|
||||
|
||||
@@ -44,6 +45,9 @@ class CcbCommonUtils {
|
||||
|
||||
public static def sqlInstance = null
|
||||
|
||||
public static def pgsqlInstance = Sql.newInstance("jdbc:postgresql://192.168.0.236:5432/warehouse",
|
||||
"postgres", "postgres", "org.postgresql.Driver")
|
||||
|
||||
|
||||
public static def getRunningCitys(def args){
|
||||
def citys = []
|
||||
@@ -60,11 +64,13 @@ class CcbCommonUtils {
|
||||
"GOOJIA", "GOOJIA", "oracle.jdbc.driver.OracleDriver")
|
||||
}else if(countStr=="252"){
|
||||
citys = CcbCommonUtils.citys_252
|
||||
sqlInstance = Sql.newInstance("jdbc:oracle:thin:@192.168.0.94:1521:orcl",
|
||||
sqlInstance = Sql.newInstance("jdbc:oracle:thin:@192.168.0.236:1521:orcl",
|
||||
"GOOJIA", "GOOJIA", "oracle.jdbc.driver.OracleDriver")
|
||||
}
|
||||
}else{
|
||||
citys = CcbCommonUtils.citys_92
|
||||
citys = CcbCommonUtils.citys_all
|
||||
sqlInstance = Sql.newInstance("jdbc:oracle:thin:@192.168.0.236:1521:orcl",
|
||||
"GOOJIA", "GOOJIA", "oracle.jdbc.driver.OracleDriver")
|
||||
}
|
||||
println "运行城市数量:"+citys.size()
|
||||
return citys;
|
||||
@@ -422,7 +428,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', ["普通住宅","商住"]))
|
||||
|
||||
@@ -570,6 +576,10 @@ class CcbCommonUtils {
|
||||
public static def deleteGuidedPrice(def dealdate){
|
||||
def sql = "delete from guided_price_gj where dealdate=to_date('${dealdate}','yyyy-mm-dd')"
|
||||
sqlInstance.executeUpdate(sql)
|
||||
|
||||
|
||||
def sql2 = "delete from base.t0831_guided_price_gj_h where gujia_drc_dt='${dealdate}'"
|
||||
pgsqlInstance.executeUpdate(sql2)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ import org.apache.commons.codec.digest.DigestUtils
|
||||
|
||||
class CcbFtpTestUtils {
|
||||
|
||||
static def ftpServer = "192.168.0.86"//45
|
||||
static def ftpServer = "192.168.0.45"//45
|
||||
static def ftpPort = 17495
|
||||
static def ftpUser = "ccb"
|
||||
static def ftpPassword = "ccb!@#"
|
||||
|
||||
+26
-6
@@ -21,13 +21,16 @@ class DealPriceDataProcess {
|
||||
def sqlInstance236 = Sql.newInstance("jdbc:oracle:thin:@192.168.0.236:1521:orcl",
|
||||
"GOOJIA", "GOOJIA", "oracle.jdbc.driver.OracleDriver")
|
||||
|
||||
def pgsqlInstance = Sql.newInstance("jdbc:postgresql://192.168.0.236:5432/warehouse?stringtype=unspecified",
|
||||
"postgres", "postgres", "org.postgresql.Driver")
|
||||
|
||||
static main(args) {
|
||||
def task = new DealPriceDataProcess()
|
||||
// task.process()//运当成交pe值不好时行,拉升成交价格及删除pe太大数据
|
||||
// task.addLianJiaPrice();
|
||||
// task.deleteThirdPartyData()
|
||||
task.deleteThirdPartyData()
|
||||
// task.delDealByPe()
|
||||
task.delDealData()
|
||||
// task.delDealData()
|
||||
}
|
||||
|
||||
def delDealByPe(){
|
||||
@@ -372,12 +375,12 @@ class DealPriceDataProcess {
|
||||
|
||||
def deleteThirdPartyData(){
|
||||
def citys = CcbCommonUtils.citys_all
|
||||
def month = 202211
|
||||
def month = 202301
|
||||
def rows = []
|
||||
def cityCodeDatas = CcbCommonUtils.findCityCodeValue()
|
||||
def set = new HashSet()
|
||||
for(def city : citys) {
|
||||
def rets = findPeGteThirdParty(city, 202212)
|
||||
def rets = findPeGteThirdParty2(city, 202302)
|
||||
def total = 0
|
||||
println city +" "+rets.size()
|
||||
if(rets){
|
||||
@@ -385,8 +388,12 @@ class DealPriceDataProcess {
|
||||
}
|
||||
for(def m : rets){
|
||||
def cityId = cityCodeDatas.get(city)
|
||||
def sql = "delete from BIGDATA_THIRD_PARTY_PRICE_GJ where cityid='${cityId}' and commid='${m.commid}' and price_date=${month} and community_price=${m.price}"
|
||||
sqlInstance236.executeUpdate(sql)
|
||||
// def sql = "delete from BIGDATA_THIRD_PARTY_PRICE_GJ where cityid='${cityId}' and commid='${m.commid}' and price_date=${month} and community_price=${m.price}"
|
||||
// sqlInstance236.executeUpdate(sql)
|
||||
|
||||
def sql = "delete from base.t0831_bigdata_third_party_price_gj_h where urbn_id='${cityId}' and gujia_bds_id='${m.commid}' and gujiabds_avprc_dt_val=${month} and gujia_bds_comm_avprc=${m.price}"
|
||||
pgsqlInstance.executeUpdate(sql)
|
||||
|
||||
}
|
||||
}
|
||||
println set.toString()
|
||||
@@ -412,6 +419,19 @@ class DealPriceDataProcess {
|
||||
return rets
|
||||
}
|
||||
|
||||
def findPeGteThirdParty2(cityName, yearmonth){
|
||||
def sql = "SELECT gujia_comm_id,gujiabds_to_mkprc_mny from t_app_p9pha_plda.avm_evaluation_item_gj_h where gujiabds_clc_yrmo_val=${yearmonth} and gujia_data_tp='µÚÈý·½' and urbn_nm='${cityName}' and gujia_mns_rto>25"
|
||||
def rets = []
|
||||
pgsqlInstance.eachRow(sql,{r->
|
||||
def map = [:]
|
||||
map.commid = r.gujia_comm_id
|
||||
map.price = r.gujiabds_to_mkprc_mny
|
||||
rets << map
|
||||
});
|
||||
return rets
|
||||
}
|
||||
|
||||
|
||||
def delDealData(){
|
||||
ExcelUtils.modify("D:\\数据\\建行\\房产估值\\成交\\杭州成交删除12-23.xlsx", { d ->
|
||||
if(d['A']){
|
||||
|
||||
+31
-60
@@ -13,6 +13,7 @@ import org.apache.commons.codec.digest.DigestUtils
|
||||
|
||||
import java.sql.ResultSet
|
||||
|
||||
//估值 新版 导出所有数据
|
||||
class ExportOracleAllDataTest {
|
||||
|
||||
def sqlInstance = Sql.newInstance("jdbc:oracle:thin:@192.168.0.236:1521:orcl",
|
||||
@@ -20,6 +21,7 @@ class ExportOracleAllDataTest {
|
||||
|
||||
def cityCodeMap = CcbCommonUtils.findCityCodeValue()
|
||||
def citys = null
|
||||
def curDate = "20220128"//DateUtils.formatDateByPattern(new Date(), "yyyyMM") + "28";
|
||||
|
||||
static main(args) {
|
||||
def task = new ExportOracleAllDataTest()
|
||||
@@ -37,46 +39,45 @@ class ExportOracleAllDataTest {
|
||||
def run(args) {
|
||||
|
||||
citys = CcbCommonUtils.getRunningCitys(args)//["潍坊","济宁","威海","临沂","绵阳","陇南","塔城","阿勒泰","迪庆州","日喀则"] //CcbCommonUtils.getRunningCitys(args)
|
||||
def curMonth = "202212"//Integer.parseInt(DateUtils.addMonth(DateUtils.formatDateByPattern(new Date(), "yyyyMM"), 0, "yyyyMM"));
|
||||
def curMonth = Integer.parseInt(DateUtils.addMonth(DateUtils.formatDateByPattern(new Date(), "yyyyMM"), 0, "yyyyMM"));
|
||||
def lastMonth = Integer.parseInt(DateUtils.addMonth(DateUtils.formatDateByPattern(new Date(), "yyyyMM"), -1, "yyyyMM"));
|
||||
def lastMonthStr = DateUtils.addMonth(DateUtils.formatDateByPattern(new Date(), "yyyy-MM"), -1, "yyyy-MM")
|
||||
def new_dists = []
|
||||
|
||||
exportBigdataForsale(new_dists) //2022-07-19
|
||||
|
||||
//不会变 10.25
|
||||
exportEvaluationRateData()
|
||||
exportBigdataPoiData()//
|
||||
exportBigdataDistrictData()//
|
||||
|
||||
exportGuidedPrice()//随人工改变//
|
||||
exportCommunityGuidedPrice(lastMonth.toString()+"28")//随政策//
|
||||
|
||||
//处理小区情况
|
||||
exportBigdataCommunity()//
|
||||
exportCommunityStaging()//没cityid
|
||||
exportCommunityBuileType()//
|
||||
|
||||
exportThirdPartyPrice2(new_dists)//
|
||||
exportBigdataDeal( new_dists) //2022-07-01
|
||||
// exportBigdataForsale(new_dists) //2022-07-19
|
||||
//
|
||||
// //第三方网站权重表
|
||||
exportWebsiteRate();
|
||||
// //不会变 10.25
|
||||
// exportEvaluationRateData()
|
||||
// exportBigdataPoiData()//
|
||||
// exportBigdataDistrictData()//
|
||||
//
|
||||
// //计算结果相关
|
||||
exportAvmEvaluationGJNB()//
|
||||
exportAVMEvaluationItemGJNB()//
|
||||
// exportGuidedPrice()//随人工改变//
|
||||
// exportCommunityGuidedPrice(lastMonth.toString()+"28")//随政策//
|
||||
//
|
||||
// //处理小区情况
|
||||
// exportBigdataCommunity()//
|
||||
// exportCommunityStaging()//没cityid
|
||||
// exportCommunityBuileType()//
|
||||
//
|
||||
// exportThirdPartyPrice2(new_dists)//
|
||||
// exportBigdataDeal( new_dists) //2022-07-01
|
||||
////
|
||||
//// //第三方网站权重表
|
||||
// exportWebsiteRate();
|
||||
////
|
||||
//// //计算结果相关
|
||||
// exportAvmEvaluationGJNB()//
|
||||
// exportAVMEvaluationItemGJNB()//
|
||||
//
|
||||
// exportCityPrice()//
|
||||
// exportRegionPrice()//
|
||||
|
||||
exportCityPrice()//
|
||||
exportRegionPrice()//
|
||||
|
||||
exportCommunityBasePriceGj()//
|
||||
exportCommunityBasePrice()//
|
||||
|
||||
exportCommunityPdescribeGj()//
|
||||
exportCommCaseDetailGj()//
|
||||
//
|
||||
def curDate = curMonth.toString()+"28"
|
||||
// exportCommunityPdescribeGj()//
|
||||
// exportCommCaseDetailGj()//
|
||||
|
||||
// // ok文件
|
||||
exportInOk()
|
||||
SSHHelperTest jschCommand = new SSHHelperTest();
|
||||
@@ -102,7 +103,6 @@ class ExportOracleAllDataTest {
|
||||
allRows << data
|
||||
});
|
||||
|
||||
def curDate = DateUtils.formatDateByPattern(new Date(), "yyyyMM") + "28";
|
||||
def fileName = "/ccb_evaluation/MODEL_000000_000000_EVALUATE_RATE_GJ_ALL_${curDate}_0001.dat"
|
||||
if (CommonDatautils.isWindow()) {
|
||||
fileName = "D:\\数据\\建行\\房产估值\\数据文件\\txt\\${curDate}\\MODEL_000000_000000_EVALUATE_RATE_GJ_ALL_${curDate}_0001.dat"
|
||||
@@ -133,7 +133,6 @@ class ExportOracleAllDataTest {
|
||||
allRows << data
|
||||
});
|
||||
|
||||
def curDate = DateUtils.formatDateByPattern(new Date(), "yyyyMM") + "28";
|
||||
def fileName = "/ccb_evaluation/MODEL_000000_000000_WEBSITE_CONFIG_GJ_ALL_${curDate}_0001.dat"
|
||||
if (CommonDatautils.isWindow()) {
|
||||
fileName = "D:\\数据\\建行\\房产估值\\数据文件\\txt\\${curDate}\\MODEL_000000_000000_WEBSITE_CONFIG_GJ_ALL_${curDate}_0001.dat"
|
||||
@@ -168,7 +167,6 @@ class ExportOracleAllDataTest {
|
||||
allRows << data
|
||||
});
|
||||
}
|
||||
def curDate = DateUtils.formatDateByPattern(new Date(), "yyyyMM") + "28";
|
||||
def fileName = "/ccb_evaluation/MODEL_000000_000000_BIGDATA_POI_GJ_ALL_${curDate}_0001.dat"
|
||||
if (CommonDatautils.isWindow()) {
|
||||
fileName = "D:\\数据\\建行\\房产估值\\数据文件\\txt\\${curDate}\\MODEL_000000_000000_BIGDATA_POI_GJ_ALL_${curDate}_0001.dat"
|
||||
@@ -196,7 +194,6 @@ class ExportOracleAllDataTest {
|
||||
data << r.SOURCECODE
|
||||
allRows << data
|
||||
});
|
||||
def curDate = DateUtils.formatDateByPattern(new Date(), "yyyyMM") + "28";
|
||||
def fileName = "/ccb_evaluation/MODEL_000000_000000_COMMUNITY_STAGING_GJ_ALL_${curDate}_0001.dat"
|
||||
if (CommonDatautils.isWindow()) {
|
||||
fileName = "D:\\数据\\建行\\房产估值\\数据文件\\txt\\${curDate}\\MODEL_000000_000000_COMMUNITY_STAGING_GJ_ALL_${curDate}_0001.dat"
|
||||
@@ -230,8 +227,6 @@ class ExportOracleAllDataTest {
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
def curDate = DateUtils.formatDateByPattern(new Date(), "yyyyMM") + "28";
|
||||
def fileName = "/ccb_evaluation/MODEL_000000_000000_BIGDATA_COMMBUILDTYPE_GJ_ALL_${curDate}_0001.dat"
|
||||
if (CommonDatautils.isWindow()) {
|
||||
fileName = "D:\\数据\\建行\\房产估值\\数据文件\\txt\\${curDate}\\MODEL_000000_000000_BIGDATA_COMMBUILDTYPE_GJ_ALL_${curDate}_0001.dat"
|
||||
@@ -269,8 +264,6 @@ class ExportOracleAllDataTest {
|
||||
allRows << data
|
||||
});
|
||||
}
|
||||
|
||||
def curDate = DateUtils.formatDateByPattern(new Date(), "yyyyMM") + "28";
|
||||
def fileName = "/ccb_evaluation/MODEL_000000_000000_BIGDATA_DISTRICT_GJ_ALL_${curDate}_0001.dat"
|
||||
if (CommonDatautils.isWindow()) {
|
||||
fileName = "D:\\数据\\建行\\房产估值\\数据文件\\txt\\${curDate}\\MODEL_000000_000000_BIGDATA_DISTRICT_GJ_ALL_${curDate}_0001.dat"
|
||||
@@ -309,8 +302,6 @@ class ExportOracleAllDataTest {
|
||||
allRows << data
|
||||
});
|
||||
}
|
||||
|
||||
def curDate = DateUtils.formatDateByPattern(new Date(), "yyyyMM") + "28";
|
||||
def fileName = "/ccb_evaluation/MODEL_000000_000000_GUIDED_PRICE_GJ_ALL_${curDate}_0001.dat"
|
||||
if (CommonDatautils.isWindow()) {
|
||||
fileName = "D:\\数据\\建行\\房产估值\\数据文件\\txt\\${curDate}\\MODEL_000000_000000_GUIDED_PRICE_GJ_ALL_${curDate}_0001.dat"
|
||||
@@ -346,8 +337,6 @@ class ExportOracleAllDataTest {
|
||||
allRows << data
|
||||
});
|
||||
}
|
||||
|
||||
def curDate = DateUtils.formatDateByPattern(new Date(), "yyyyMM") + "28";
|
||||
def fileName = "/ccb_evaluation/MODEL_000000_000000_COMMUNITY_GUIDE_PRICE_GJ_ADD_${curDate}_0001.dat"
|
||||
if (CommonDatautils.isWindow()) {
|
||||
fileName = "D:\\数据\\建行\\房产估值\\数据文件\\txt\\${curDate}\\MODEL_000000_000000_COMMUNITY_GUIDE_PRICE_GJ_ADD_${curDate}_0001.dat"
|
||||
@@ -392,7 +381,6 @@ class ExportOracleAllDataTest {
|
||||
}
|
||||
}
|
||||
|
||||
def curDate = DateUtils.formatDateByPattern(new Date(), "yyyyMM") + "28";
|
||||
def fileName = "/ccb_evaluation/MODEL_000000_000000_BIGDATA_DEAL_GJ_ADD_${curDate}_0001.dat"
|
||||
if (CommonDatautils.isWindow()) {
|
||||
fileName = "D:\\数据\\建行\\房产估值\\数据文件\\txt\\${curDate}\\MODEL_000000_000000_BIGDATA_DEAL_GJ_ADD_${curDate}_0001.dat"
|
||||
@@ -513,7 +501,6 @@ class ExportOracleAllDataTest {
|
||||
data << r.SOURCECODE.replaceAll(~'\\r', '')
|
||||
allRows << data
|
||||
})
|
||||
def curDate = DateUtils.formatDateByPattern(new Date(), "yyyyMM") + "28";
|
||||
def fileName = "/ccb_evaluation/MODEL_000000_000000_THIRD_PARTY_PRICE_GJ_ADD_${curDate}_0001.dat"
|
||||
if (CommonDatautils.isWindow()) {
|
||||
fileName = "D:\\数据\\建行\\房产估值\\数据文件\\txt\\${curDate}\\MODEL_000000_000000_THIRD_PARTY_PRICE_GJ_ADD_${curDate}_0001.dat"
|
||||
@@ -530,7 +517,6 @@ class ExportOracleAllDataTest {
|
||||
|
||||
def exportThirdPartyPrice2(new_dists) {
|
||||
|
||||
def curDate = DateUtils.formatDateByPattern(new Date(), "yyyyMM") + "28";
|
||||
def fileName = "/ccb_evaluation/MODEL_000000_000000_BIGDATA_THIRD_PARTY_PRICE_GJ_ADD_${curDate}_0001.dat"
|
||||
if (CommonDatautils.isWindow()) {
|
||||
fileName = "D:\\数据\\建行\\房产估值\\数据文件\\txt\\${curDate}\\MODEL_000000_000000_BIGDATA_THIRD_PARTY_PRICE_GJ_ADD_${curDate}_0001.dat"
|
||||
@@ -638,7 +624,6 @@ class ExportOracleAllDataTest {
|
||||
});
|
||||
}
|
||||
|
||||
def curDate = DateUtils.formatDateByPattern(new Date(), "yyyyMM")+"28";
|
||||
def fileName = "/ccb_evaluation/MODEL_000000_000000_BIGDATA_COMMUNITY_GJ_ALL_${curDate}_0001.dat"
|
||||
if(CommonDatautils.isWindow()){
|
||||
fileName = "D:\\数据\\建行\\房产估值\\数据文件\\txt\\${curDate}\\MODEL_000000_000000_BIGDATA_COMMUNITY_GJ_ALL_${curDate}_0001.dat"
|
||||
@@ -654,7 +639,6 @@ class ExportOracleAllDataTest {
|
||||
|
||||
def exportBigdataForsale(new_dists){
|
||||
//["北京","上海"]
|
||||
def curDate = DateUtils.formatDateByPattern(new Date(), "yyyyMM")+"28";
|
||||
def fileName = "/ccb_evaluation/MODEL_000000_000000_BIGDATA_FORSALE_GJ_ADD_${curDate}_0001.dat"
|
||||
if(CommonDatautils.isWindow()){
|
||||
fileName = "D:\\数据\\建行\\房产估值\\数据文件\\txt\\${curDate}\\MODEL_000000_000000_BIGDATA_FORSALE_GJ_ADD_${curDate}_0001.dat"
|
||||
@@ -785,7 +769,6 @@ class ExportOracleAllDataTest {
|
||||
|
||||
def exportAvmEvaluationGJNB(){
|
||||
|
||||
def curDate = DateUtils.formatDateByPattern(new Date(), "yyyyMM")+"28";
|
||||
def fileName = "/ccb_evaluation/MODEL_000000_000000_AVM_EVALUATION_GJNB_ADD_${curDate}_0001.dat"
|
||||
def fileName1 = "/ccb_evaluation/MODEL_000000_000000_AVM_EVALUATION_GJ_ADD_${curDate}_0001.dat"
|
||||
if(CommonDatautils.isWindow()){
|
||||
@@ -850,7 +833,6 @@ class ExportOracleAllDataTest {
|
||||
}
|
||||
|
||||
def exportAVMEvaluationItemGJNB(){
|
||||
def curDate = DateUtils.formatDateByPattern(new Date(), "yyyyMM")+"28";
|
||||
def fileName = "/ccb_evaluation/MODEL_000000_000000_AVM_EVALUATION_ITEM_GJNB_ADD_${curDate}_0001.dat"
|
||||
def fileName1 = "/ccb_evaluation/MODEL_000000_000000_AVM_EVALUATION_ITEM_GJ_ADD_${curDate}_0001.dat"
|
||||
if(CommonDatautils.isWindow()){
|
||||
@@ -904,7 +886,6 @@ class ExportOracleAllDataTest {
|
||||
def exportCommunityBasePrice(){
|
||||
|
||||
def allRows = []
|
||||
def curDate = DateUtils.formatDateByPattern(new Date(), "yyyyMM")+"28";
|
||||
def fileName = "/ccb_evaluation/MODEL_000000_000000_COMMUNITY_BASE_PRICE_GJNB_ADD_${curDate}_0001.dat"
|
||||
def fileName1 = "/ccb_evaluation/MODEL_000000_000000_COMMUNITY_BASE_PRICE_GJ_ADD_${curDate}_0001.dat"
|
||||
if(CommonDatautils.isWindow()){
|
||||
@@ -959,7 +940,6 @@ class ExportOracleAllDataTest {
|
||||
|
||||
def exportCommunityBasePriceGj(){
|
||||
def allRows = []
|
||||
def curDate = DateUtils.formatDateByPattern(new Date(), "yyyyMM")+"28";
|
||||
def fileName = "/ccb_evaluation/MODEL_000000_000000_COMMUNITY_BASE_PRICE_GJ_ADD_${curDate}_0001.dat"
|
||||
if(CommonDatautils.isWindow()){
|
||||
fileName = "D:\\数据\\建行\\房产估值\\数据文件\\txt\\${curDate}\\MODEL_000000_000000_COMMUNITY_BASE_PRICE_GJ_ADD_${curDate}_0001.dat"
|
||||
@@ -1026,7 +1006,6 @@ class ExportOracleAllDataTest {
|
||||
allRows << data
|
||||
});
|
||||
}
|
||||
def curDate = DateUtils.formatDateByPattern(new Date(), "yyyyMM")+"28"
|
||||
def fileName = "/ccb_evaluation/MODEL_000000_000000_CITY_PRICE_GJ_ADD_${curDate}_0001.dat"
|
||||
if(CommonDatautils.isWindow()){
|
||||
fileName = "D:\\数据\\建行\\房产估值\\数据文件\\txt\\${curDate}\\MODEL_000000_000000_CITY_PRICE_GJ_ADD_${curDate}_0001.dat"
|
||||
@@ -1059,9 +1038,6 @@ class ExportOracleAllDataTest {
|
||||
allRows << data
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
def curDate = DateUtils.formatDateByPattern(new Date(), "yyyyMM")+"28"
|
||||
def fileName = "/ccb_evaluation/MODEL_000000_000000_DISTRICT_PRICE_GJ_ADD_${curDate}_0001.dat"
|
||||
if(CommonDatautils.isWindow()){
|
||||
fileName = "D:\\数据\\建行\\房产估值\\数据文件\\txt\\${curDate}\\MODEL_000000_000000_DISTRICT_PRICE_GJ_ADD_${curDate}_0001.dat"
|
||||
@@ -1075,7 +1051,6 @@ class ExportOracleAllDataTest {
|
||||
|
||||
def exportCommunityPdescribeGj(){
|
||||
|
||||
def curDate = DateUtils.formatDateByPattern(new Date(), "yyyyMM")+"28"
|
||||
def fileName = "/ccb_evaluation/MODEL_000000_000000_COMMUNITY_P_DESCRIBE_GJ_ADD_${curDate}_0001.dat"
|
||||
if(CommonDatautils.isWindow()){
|
||||
fileName = "D:\\数据\\建行\\房产估值\\数据文件\\txt\\${curDate}\\MODEL_000000_000000_COMMUNITY_P_DESCRIBE_GJ_ADD_${curDate}_0001.dat"
|
||||
@@ -1150,7 +1125,6 @@ class ExportOracleAllDataTest {
|
||||
|
||||
def exportCommCaseDetailGj(){
|
||||
|
||||
def curDate = DateUtils.formatDateByPattern(new Date(), "yyyyMM")+"28"
|
||||
def fileName = "/ccb_evaluation/MODEL_000000_000000_COMM_CASE_DETAIL_GJ_ADD_${curDate}_0001.dat"
|
||||
if(CommonDatautils.isWindow()){
|
||||
fileName = "D:\\数据\\建行\\房产估值\\数据文件\\txt\\${curDate}\\MODEL_000000_000000_COMM_CASE_DETAIL_GJ_ADD_${curDate}_0001.dat"
|
||||
@@ -1187,7 +1161,6 @@ class ExportOracleAllDataTest {
|
||||
}
|
||||
|
||||
def exportLastFile(){
|
||||
def curDate = DateUtils.formatDateByPattern(new Date(), "yyyyMM")+"28"
|
||||
def dataCodeFileName = "/ccb_evaluation/${curDate}.ok"
|
||||
if(CommonDatautils.isWindow()){
|
||||
dataCodeFileName = "D:\\数据\\建行\\房产估值\\数据文件\\txt\\${curDate}\\${curDate}.ok"
|
||||
@@ -1197,7 +1170,6 @@ class ExportOracleAllDataTest {
|
||||
}
|
||||
|
||||
def exportOkFile(){
|
||||
def curDate = DateUtils.formatDateByPattern(new Date(), "yyyyMM")+"28"
|
||||
def dataCodeFileName = "/ccb_evaluation/${curDate}.ok"
|
||||
if(CommonDatautils.isWindow()){
|
||||
dataCodeFileName = "D:\\数据\\建行\\房产估值\\数据文件\\txt\\${curDate}\\${curDate}.ok"
|
||||
@@ -1207,7 +1179,6 @@ class ExportOracleAllDataTest {
|
||||
}
|
||||
|
||||
def exportInOk(){
|
||||
def curDate = DateUtils.formatDateByPattern(new Date(), "yyyyMM")+"28"
|
||||
Vector files = CcbFtpTestUtils.listFileNames(null, curDate)
|
||||
Iterator fileVec = files.iterator()
|
||||
def fileRows = []
|
||||
|
||||
+4
-3
@@ -43,7 +43,8 @@ class ExportOracleData {
|
||||
exportCommunityBuileType()//
|
||||
|
||||
exportThirdPartyPrice2(lastMonth, new_dists)//
|
||||
exportBigdataForsale(lastMonthStr +"-19", new_dists) //2022-07-19
|
||||
// exportBigdataForsale(lastMonthStr +"-19", new_dists) //2022-07-19 ֮ǰ°´publish_dateµ¼³ö
|
||||
exportBigdataForsale(lastMonthStr +"-18", new_dists) //ÏÖÔÚ°´updatetimeµ¼³ö
|
||||
exportBigdataDeal(lastMonthStr + "-01", new_dists) //2022-07-01
|
||||
|
||||
//µÚÈý·½ÍøÕ¾È¨Öرí
|
||||
@@ -659,13 +660,13 @@ class ExportOracleData {
|
||||
def sql1 = "select CITYID,FORSALEID,PROPCODE,CITYNAME,DISTID,DISTNAME,COMMID,COMMNAME, BUILDID,BUILDNO, BUILDNAME,UNITID,UNITNO,UNITNAME,HOUSEID,ADDRESS,BUILDYEAR,PROPTYPE,PROPYEARS,UNITPRICE,TOTALPRICE,PAYTYPE,FLOORNUM,FLOORCNT,\n" +
|
||||
" BUILDTYPE, HOUSESTRU,BUILDSTRU,BUILDAREA,LIVINGAREA,HOUSESTYLE,ROOMCNT,LIVINGROOMCNT,KITCHENCNT, BATHROOMCNT,HOUSEASPECT,FITMENT,IFELEVATOR,ELEVATORHOUSE,to_char(PUBLISHTIME,'yyyy-mm-dd hh24:mi:ss') as PUBLISHTIME,to_char(EXPIRETIME,'yyyy-mm-dd hh24:mi:ss') as EXPIRETIME,\n" +
|
||||
" IFFIRST,DATASOURCE,AGENCYID,AGENCYNAME,PUBLISHER,PHONE,DESCRIPTION,REMARK,to_char(CREATETIME,'yyyy-mm-dd hh24:mi:ss') as CREATETIME, to_char(UPDATETIME,'yyyy-mm-dd hh24:mi:ss') as UPDATETIME,SOURCECODE,ATTACH from bigdata_forsale_gj " +
|
||||
"where cityId='${cityCode}' and publishtime>=to_date('${publishDate}','yyyy-MM-dd') and distid not in ${newstr}";
|
||||
"where cityId='${cityCode}' and updatetime>=to_date('${publishDate}','yyyy-MM-dd') and distid not in ${newstr}";
|
||||
def rets1 = getHouseDatas(sql1)
|
||||
allRows.addAll(rets1)
|
||||
}else{
|
||||
def sql = "select CITYID,FORSALEID,PROPCODE,CITYNAME,DISTID,DISTNAME,COMMID,COMMNAME, BUILDID,BUILDNO, BUILDNAME,UNITID,UNITNO,UNITNAME,HOUSEID,ADDRESS,BUILDYEAR,PROPTYPE,PROPYEARS,UNITPRICE,TOTALPRICE,PAYTYPE,FLOORNUM,FLOORCNT,\n" +
|
||||
" BUILDTYPE, HOUSESTRU,BUILDSTRU,BUILDAREA,LIVINGAREA,HOUSESTYLE,ROOMCNT,LIVINGROOMCNT,KITCHENCNT, BATHROOMCNT,HOUSEASPECT,FITMENT,IFELEVATOR,ELEVATORHOUSE,to_char(PUBLISHTIME,'yyyy-mm-dd hh24:mi:ss') as PUBLISHTIME,to_char(EXPIRETIME,'yyyy-mm-dd hh24:mi:ss') as EXPIRETIME,\n" +
|
||||
" IFFIRST,DATASOURCE,AGENCYID,AGENCYNAME,PUBLISHER,PHONE,DESCRIPTION,REMARK,to_char(CREATETIME,'yyyy-mm-dd hh24:mi:ss') as CREATETIME, to_char(UPDATETIME,'yyyy-mm-dd hh24:mi:ss') as UPDATETIME,SOURCECODE,ATTACH from bigdata_forsale_gj where cityId='${cityCode}' and publishtime>=to_date('${publishDate}','yyyy-MM-dd')";
|
||||
" IFFIRST,DATASOURCE,AGENCYID,AGENCYNAME,PUBLISHER,PHONE,DESCRIPTION,REMARK,to_char(CREATETIME,'yyyy-mm-dd hh24:mi:ss') as CREATETIME, to_char(UPDATETIME,'yyyy-mm-dd hh24:mi:ss') as UPDATETIME,SOURCECODE,ATTACH from bigdata_forsale_gj where cityId='${cityCode}' and updatetime>=to_date('${publishDate}','yyyy-MM-dd')";
|
||||
allRows = getHouseDatas(sql)
|
||||
}
|
||||
if(allRows.size()>0){
|
||||
|
||||
+5
-4
@@ -12,6 +12,7 @@ import org.apache.commons.codec.digest.DigestUtils
|
||||
|
||||
import java.sql.ResultSet
|
||||
|
||||
//导出估值 增量数据 新版
|
||||
class ExportOracleDataTest {
|
||||
|
||||
def sqlInstance = Sql.newInstance("jdbc:oracle:thin:@192.168.0.236:1521:orcl",
|
||||
@@ -45,7 +46,7 @@ class ExportOracleDataTest {
|
||||
exportCommunityBuileType()//
|
||||
|
||||
exportThirdPartyPrice2(lastMonth, new_dists)//
|
||||
exportBigdataForsale(lastMonthStr +"-19", new_dists) //2022-07-19
|
||||
exportBigdataForsale(lastMonthStr +"-18", new_dists) //2022-07-19 按更新时间导出数据
|
||||
exportBigdataDeal(lastMonthStr + "-01", new_dists) //2022-07-01
|
||||
|
||||
//第三方网站权重表
|
||||
@@ -58,7 +59,7 @@ class ExportOracleDataTest {
|
||||
exportCityPrice(curMonth)//无城市区分
|
||||
exportRegionPrice(curMonth)//无城市区分
|
||||
|
||||
exportCommunityBasePriceGj(curMonth)//已合下面的合并 //无城市区分
|
||||
// exportCommunityBasePriceGj(curMonth)//已合下面的合并 //无城市区分
|
||||
exportCommunityBasePrice(curMonth)//无城市区分
|
||||
|
||||
exportCommunityPdescribeGj(curMonth)//无城市区分
|
||||
@@ -658,13 +659,13 @@ class ExportOracleDataTest {
|
||||
def sql1 = "select CITYID,FORSALEID,PROPCODE,CITYNAME,DISTID,DISTNAME,COMMID,COMMNAME, BUILDID,BUILDNO, BUILDNAME,UNITID,UNITNO,UNITNAME,HOUSEID,ADDRESS,BUILDYEAR,PROPTYPE,PROPYEARS,UNITPRICE,TOTALPRICE,PAYTYPE,FLOORNUM,FLOORCNT,\n" +
|
||||
" BUILDTYPE, HOUSESTRU,BUILDSTRU,BUILDAREA,LIVINGAREA,HOUSESTYLE,ROOMCNT,LIVINGROOMCNT,KITCHENCNT, BATHROOMCNT,HOUSEASPECT,FITMENT,IFELEVATOR,ELEVATORHOUSE,to_char(PUBLISHTIME,'yyyy-mm-dd hh24:mi:ss') as PUBLISHTIME,to_char(EXPIRETIME,'yyyy-mm-dd hh24:mi:ss') as EXPIRETIME,\n" +
|
||||
" IFFIRST,DATASOURCE,AGENCYID,AGENCYNAME,PUBLISHER,PHONE,DESCRIPTION,REMARK,to_char(CREATETIME,'yyyy-mm-dd hh24:mi:ss') as CREATETIME, to_char(UPDATETIME,'yyyy-mm-dd hh24:mi:ss') as UPDATETIME,SOURCECODE,ATTACH from bigdata_forsale_gj " +
|
||||
"where cityId='${cityCode}' and publishtime>=to_date('${publishDate}','yyyy-MM-dd') and distid not in ${newstr}";
|
||||
"where cityId='${cityCode}' and updatetime>=to_date('${publishDate}','yyyy-MM-dd') and distid not in ${newstr}";
|
||||
def rets1 = getHouseDatas(sql1)
|
||||
allRows.addAll(rets1)
|
||||
}else{
|
||||
def sql = "select CITYID,FORSALEID,PROPCODE,CITYNAME,DISTID,DISTNAME,COMMID,COMMNAME, BUILDID,BUILDNO, BUILDNAME,UNITID,UNITNO,UNITNAME,HOUSEID,ADDRESS,BUILDYEAR,PROPTYPE,PROPYEARS,UNITPRICE,TOTALPRICE,PAYTYPE,FLOORNUM,FLOORCNT,\n" +
|
||||
" BUILDTYPE, HOUSESTRU,BUILDSTRU,BUILDAREA,LIVINGAREA,HOUSESTYLE,ROOMCNT,LIVINGROOMCNT,KITCHENCNT, BATHROOMCNT,HOUSEASPECT,FITMENT,IFELEVATOR,ELEVATORHOUSE,to_char(PUBLISHTIME,'yyyy-mm-dd hh24:mi:ss') as PUBLISHTIME,to_char(EXPIRETIME,'yyyy-mm-dd hh24:mi:ss') as EXPIRETIME,\n" +
|
||||
" IFFIRST,DATASOURCE,AGENCYID,AGENCYNAME,PUBLISHER,PHONE,DESCRIPTION,REMARK,to_char(CREATETIME,'yyyy-mm-dd hh24:mi:ss') as CREATETIME, to_char(UPDATETIME,'yyyy-mm-dd hh24:mi:ss') as UPDATETIME,SOURCECODE,ATTACH from bigdata_forsale_gj where cityId='${cityCode}' and publishtime>=to_date('${publishDate}','yyyy-MM-dd')";
|
||||
" IFFIRST,DATASOURCE,AGENCYID,AGENCYNAME,PUBLISHER,PHONE,DESCRIPTION,REMARK,to_char(CREATETIME,'yyyy-mm-dd hh24:mi:ss') as CREATETIME, to_char(UPDATETIME,'yyyy-mm-dd hh24:mi:ss') as UPDATETIME,SOURCECODE,ATTACH from bigdata_forsale_gj where cityId='${cityCode}' and updatetime>=to_date('${publishDate}','yyyy-MM-dd')";
|
||||
allRows = getHouseDatas(sql)
|
||||
}
|
||||
if(allRows.size()>0){
|
||||
|
||||
+2
-1
@@ -31,7 +31,7 @@ class ExportOracleEvaluationData {
|
||||
exportCityPrice(curMonth)
|
||||
exportRegionPrice(curMonth)
|
||||
|
||||
exportCommunityBasePriceGj(curMonth)//已合下面的合并
|
||||
// exportCommunityBasePriceGj(curMonth)//已合下面的合并
|
||||
exportCommunityBasePrice(curMonth)
|
||||
|
||||
exportCommunityPdescribeGj(curMonth)
|
||||
@@ -248,6 +248,7 @@ class ExportOracleEvaluationData {
|
||||
|
||||
def curDate = DateUtils.formatDateByPattern(new Date(), "yyyyMM")+"28";
|
||||
def fileName = "/ccb/MODEL_000000_000000_COMMUNITY_BASE_PRICE_GJ_ADD_${curDate}_0001.dat"
|
||||
|
||||
if(CommonDatautils.isWindow()){
|
||||
fileName = "D:\\数据\\建行\\房产估值\\数据文件\\txt\\${curDate}\\MODEL_000000_000000_COMMUNITY_BASE_PRICE_GJ_ADD_${curDate}_0001.dat"
|
||||
}
|
||||
|
||||
+48
-5
@@ -11,6 +11,7 @@ import com.fangjia.script.util.DateUtils
|
||||
import com.fangjia.script.util.ExcelUtils
|
||||
import com.mongodb.BasicDBObject
|
||||
import com.mongodb.DBCollection
|
||||
import groovy.sql.Sql
|
||||
|
||||
import java.util.concurrent.ConcurrentHashMap
|
||||
import java.util.concurrent.CountDownLatch
|
||||
@@ -32,6 +33,10 @@ class GuiDingPriceBatch extends BaseBatch{
|
||||
|
||||
def curDate= DateUtils.formatDateByPattern(new Date(), "yyyy-MM")+"-15";
|
||||
|
||||
def pgsqlInstance = Sql.newInstance("jdbc:postgresql://192.168.0.236:5432/warehouse?stringtype=unspecified",
|
||||
"postgres", "postgres", "org.postgresql.Driver")
|
||||
|
||||
|
||||
static main(args) {
|
||||
runBatch(new GuiDingPriceBatch(), args);
|
||||
}
|
||||
@@ -47,7 +52,7 @@ class GuiDingPriceBatch extends BaseBatch{
|
||||
def distCodeMap = CcbCommonUtils.findAllDistrictCodeValue(city)
|
||||
|
||||
//添加自己库中的人工指导价
|
||||
def prices = CcbCommonUtils.findPersonPrice(city, "2022-11-25", "2022-12-24")
|
||||
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)
|
||||
@@ -77,10 +82,10 @@ class GuiDingPriceBatch extends BaseBatch{
|
||||
def headers = []//["第三方均价ID","楼盘ID","小区名称","城市ID","城市名称","行政区ID","行政区名称","指导日期","指导价格","添加人","备注","创建时间","更新时间","来源公司"]
|
||||
FileUtils.batchCreateFile(rows, "d:\\数据\\建行\\房产估值\\数据文件\\txt\\GUIDED_PRICE_GJ.dat", headers, "utf-8", false);
|
||||
|
||||
// def rets = []
|
||||
// rets << headers
|
||||
// rets.addAll(rows)
|
||||
// ExcelUtils.write("d:\\数据\\建行\\房产估值\\数据文件\\excel\\guiding_price.xlsx", rets, "数据")
|
||||
saveToPgSql(rows)
|
||||
|
||||
//¸üо²Ì¬Êý¾Ý±í
|
||||
// updateVersion(DateUtils.formatDateByPattern(new Date(), "yyyy-MM")+"-28")
|
||||
|
||||
}
|
||||
|
||||
@@ -211,5 +216,43 @@ class GuiDingPriceBatch extends BaseBatch{
|
||||
return distMap;
|
||||
}
|
||||
|
||||
def saveToPgSql(rows){
|
||||
for(def r : rows) {
|
||||
for (def i = 0; i < r.size(); i++) {
|
||||
if("" == r[i]){
|
||||
r[i] = null
|
||||
}
|
||||
}
|
||||
r << null
|
||||
r << '2023-02-28'
|
||||
r << null
|
||||
r << '2999-12-31'
|
||||
r << null
|
||||
r << null
|
||||
r << null
|
||||
}
|
||||
|
||||
println "start: "+new Date()
|
||||
def sql = "insert into base.t0831_guided_price_gj_h values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)"
|
||||
|
||||
pgsqlInstance.withBatch(300, 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])
|
||||
}
|
||||
}
|
||||
|
||||
println "end: "+new Date()
|
||||
}
|
||||
|
||||
def updateVersion(def time){
|
||||
def tables = ["t0831_website_config_gj_h","t0831_bigdata_district_gj_h","t0831_evaluate_rate_gj_h","t0831_bigdata_poi_gj_h","t0831_guided_price_gj_h","t0831_community_staging_gj_h"]
|
||||
for(def tableName : tables){
|
||||
def sql = "update base."+tableName+" set p9_start_date='"+time+"'"
|
||||
pgsqlInstance.executeUpdate(sql)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
package com.fangjia.script.ccbevaluation
|
||||
|
||||
import groovy.sql.Sql
|
||||
|
||||
class PgsqlCommUtils {
|
||||
|
||||
public static def database = "warehouse"
|
||||
|
||||
public static def sqlInstance = Sql.newInstance("jdbc:postgresql://192.168.0.236:5432/"+database+"?stringtype=unspecified",
|
||||
"postgres", "postgres", "org.postgresql.Driver")
|
||||
|
||||
public static def findAllDistrictIdsByOracle(def cityid){
|
||||
def sql = "select gujia_comm_id from base.t0831_bigdata_community_gj_h where urbn_id='${cityid}' and gujia_bds_bds_st=0";
|
||||
def set = new HashSet()
|
||||
sqlInstance.eachRow(sql,{r->
|
||||
set << r.gujia_comm_id
|
||||
});
|
||||
return set
|
||||
}
|
||||
}
|
||||
+36
@@ -9,6 +9,7 @@ import com.fangjia.script.util.DateUtils
|
||||
import com.fangjia.script.util.DbUtils
|
||||
import com.fangjia.script.util.ExcelUtils
|
||||
import com.mongodb.BasicDBObject
|
||||
import groovy.sql.Sql
|
||||
import org.bson.types.ObjectId
|
||||
|
||||
/**
|
||||
@@ -18,6 +19,9 @@ import org.bson.types.ObjectId
|
||||
@BatchOwner(Watcher.GaoJuan)
|
||||
class StagingDistrictBatch extends BaseBatch{
|
||||
|
||||
def pgsqlInstance = Sql.newInstance("jdbc:postgresql://192.168.0.236:5432/warehouse?stringtype=unspecified",
|
||||
"postgres", "postgres", "org.postgresql.Driver")
|
||||
|
||||
static main(args) {
|
||||
runBatch(new StagingDistrictBatch(), args);
|
||||
}
|
||||
@@ -47,6 +51,8 @@ class StagingDistrictBatch extends BaseBatch{
|
||||
//ExcelUtils.write("d:\\数据\\建行\\房产估值\\数据文件\\excel\\COMMUNITY_STAGING_GJ.xlsx", results, "数据")
|
||||
FileUtils.batchCreateFile(rows, fileName,headers, "utf-8", false);
|
||||
|
||||
saveToPgSql(rows)
|
||||
|
||||
}
|
||||
|
||||
def createCityData(def dists, def fenQiMap){
|
||||
@@ -86,4 +92,34 @@ class StagingDistrictBatch extends BaseBatch{
|
||||
}
|
||||
return fenQiMap;
|
||||
}
|
||||
|
||||
|
||||
def saveToPgSql(rows){
|
||||
for(def r : rows) {
|
||||
for (def i = 0; i < r.size(); i++) {
|
||||
if("" == r[i]){
|
||||
r[i] = null
|
||||
}
|
||||
}
|
||||
r << null
|
||||
r << '2023-02-28'
|
||||
r << null
|
||||
r << '2999-12-31'
|
||||
r << null
|
||||
r << null
|
||||
r << null
|
||||
}
|
||||
|
||||
println "start: "+new Date()
|
||||
def sql = "insert into base.t0831_community_staging_gj_h values (?,?,?,?,?,?,?,?,?,?,?,?,?,?)"
|
||||
|
||||
pgsqlInstance.withBatch(20000, 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])
|
||||
ps.toString()
|
||||
}
|
||||
}
|
||||
|
||||
println "end: "+new Date()
|
||||
}
|
||||
}
|
||||
|
||||
+132
-4
@@ -45,8 +45,94 @@ DBCollection POLYLINECOLL = MongoUtils.getCollectionByAuth20190102("fangjia_craw
|
||||
def offlineUrl = "mongodb://developer:G00IDCDEV12385@192.168.0.136:28017";
|
||||
def DBCollection youda_esfhouse_coll = MongoUtils.getCollectionByName2("business", "res_esfdealprice", offlineUrl)
|
||||
|
||||
def pgsqlInstance = Sql.newInstance("jdbc:postgresql://192.168.0.236:5432/warehouse",
|
||||
"postgres", "postgres", "org.postgresql.Driver")
|
||||
|
||||
//def citys = ["山南","黄南州","甘南","克孜勒苏","嘉峪关","海北州","阿拉善盟","怒江州","和田","日喀则","昌都","海南州","玉树州","吐鲁番","阿勒泰","三沙","塔城","甘孜州","果洛州","林芝","那曲","阿坝州","神农架"]
|
||||
//def cityCodeDataMap = CcbCommonUtils.findCityCodeValue()
|
||||
|
||||
|
||||
//ExcelUtils.multiThreadingModify("D:\\数据\\小区\\小区地址名单_估家科技V2 (3).xlsx",{d->
|
||||
// if(d['J']){
|
||||
// def cityId = cityCodeDataMap.get(d['H'])
|
||||
// def map = findCcbPriceCredit(sqlInstance236, cityId, d['J'])
|
||||
// println d['H'] +" "+d['J']+ map.toString()
|
||||
// if(map){
|
||||
// d['Q'] = map.credit
|
||||
// d['R'] = map.month
|
||||
// d['U'] = map.price
|
||||
// }
|
||||
//// def thirdMap = findThirdPriceBySource(sqlInstance236, cityId, d['J'])
|
||||
//// if(thirdMap){
|
||||
//// d['S'] = thirdMap.price
|
||||
//// d['T'] = thirdMap.month
|
||||
//// }
|
||||
// }
|
||||
//
|
||||
//})
|
||||
|
||||
def findCcbPriceCredit(sqlInstance, cityid, commid){
|
||||
def sql = "select * from (select CONFIDENCE,year_month,avg_price from community_base_price_gj where cityid='${cityid}' and commid='${commid}' order by year_month desc) WHERE ROWNUM <= 1"
|
||||
def map = [:]
|
||||
sqlInstance.eachRow(sql,{r->
|
||||
map.month = r.year_month
|
||||
map.credit = r.CONFIDENCE
|
||||
map.price = r.avg_price
|
||||
});
|
||||
return map
|
||||
}
|
||||
|
||||
def findThirdPriceBySource(sqlInstance, cityid, commid){
|
||||
def sql = "select * from (select data_source, price_date, community_price,commid from bigdata_third_party_price_gj where cityid='${cityid}' and commid='${commid}' and data_source in ('贝壳','链家') \n" +
|
||||
"order by price_date desc) WHERE ROWNUM <= 1"
|
||||
def map = [:]
|
||||
sqlInstance.eachRow(sql,{r->
|
||||
map.month = r.price_date
|
||||
map.price = r.community_price
|
||||
});
|
||||
return map
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//for(def c : citys){
|
||||
// def cityCode = cityCodeDataMap.get(c)
|
||||
// println c +" "+cityCode
|
||||
// def priceDists = findAllPriceDist(sqlInstance236,cityCode, 202301)
|
||||
////
|
||||
// checkNoPriceDist(sqlInstance236, priceDists, cityCode)
|
||||
//}
|
||||
|
||||
def checkNoPriceDist(sqlInstance236,priceDists, cityid){
|
||||
def commids = []
|
||||
def sql = "select commid from bigdata_community_gj where cityid='${cityid}' and status=0";
|
||||
sqlInstance236.eachRow(sql, { r ->
|
||||
commids << r.commid
|
||||
})
|
||||
|
||||
for(def commid : commids){
|
||||
if(!priceDists.contains(commid)){
|
||||
updateDistStatus(sqlInstance236, commid)
|
||||
}
|
||||
}
|
||||
return commids
|
||||
}
|
||||
|
||||
|
||||
def updateDistStatus(sqlInstance236, commid){
|
||||
def sql = "update bigdata_community_gj set status=1 where commid='${commid}'";
|
||||
sqlInstance236.executeUpdate(sql)
|
||||
}
|
||||
def findAllPriceDist(sqlInstance236, cityid, yearMonth){
|
||||
def commids = []
|
||||
def sql = "select commid from community_base_price_gj where cityid='${cityid}' and year_month=${yearMonth} ";
|
||||
sqlInstance236.eachRow(sql, { r ->
|
||||
commids << r.commid
|
||||
})
|
||||
return commids
|
||||
}
|
||||
//def citys = ['苏州','杭州','宁波','温州','嘉兴','湖州','绍兴','金华','衢州','舟山','台州','丽水']
|
||||
//
|
||||
//def cityCodeDataMap = CcbCommonUtils.findCityCodeValue()
|
||||
@@ -1087,16 +1173,58 @@ def findThirdCommCount(cityid, sqlInstance){
|
||||
//}
|
||||
|
||||
|
||||
def fileName = "D:\\数据\\建行\\房产估值\\指导价\\国信达价格-杭州.xlsx"
|
||||
def fileName = "D:\\数据\\建行\\房产估值\\指导价\\无价格小区(3)2.23.xlsx"
|
||||
ExcelUtils.multiThreadingModify(fileName, { d ->
|
||||
def dist = CommonDatautils.findDistrictById(d['A'])
|
||||
if(dist){
|
||||
d['C'] = dist.city
|
||||
d['D'] = dist.region
|
||||
d['E'] = dist.name
|
||||
d['G'] = dist.city
|
||||
d['H'] = dist.region
|
||||
d['I'] = dist.name
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
//def file = "C:\\Users\\gaojuan\\Desktop\\国信达小区.xlsx"
|
||||
//def cityCodeMap = CcbCommonUtils.findCityCodeValue()
|
||||
//ExcelUtils.multiThreadingModify(file, { d ->
|
||||
// if(d['A']){
|
||||
// def cityCode = cityCodeMap.get(d['A'])
|
||||
// def newRegin = RegionData.formatRegion(d['A'], d['B'])
|
||||
// if(newRegin){
|
||||
// def dist = CommonDatautils.findDistrict(d['A'], newRegin, d['C'], "district")
|
||||
// if(dist){
|
||||
// d['H'] = dist._id.toString()
|
||||
// def map = findAvgPrice(dist._id.toString(), pgsqlInstance, cityCode)
|
||||
// if(map){
|
||||
// d['I'] = map.avg_price
|
||||
// d['J'] = map.calc_type
|
||||
// d['K'] = map.month
|
||||
// }
|
||||
//
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//})
|
||||
|
||||
|
||||
def findAvgPrice(def commid, def pgsqlInstance, def cityid){
|
||||
def sql = "SELECT gujia_bds_clc_avprc,gujia_bds_clmtd,gujiabds_clc_yrmo_val 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
|
||||
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 fileName = "D:\\数据\\建行\\房产估值\\指导价\\0922入库数据.xlsx"
|
||||
//def datas = ExcelUtils.read(fileName, 0, 1)
|
||||
//def keys = []
|
||||
|
||||
+37
-3
@@ -22,9 +22,9 @@ import java.util.concurrent.ConcurrentHashMap
|
||||
@BatchOwner(Watcher.GaoJuan)
|
||||
class ThirdPartyPriceBatch extends BaseBatch {
|
||||
|
||||
def sDate= 202211//Integer.parseInt(DateUtils.addMonth(DateUtils.formatDateByPattern(new Date(), "yyyyMM"), -1, "yyyyMM"));
|
||||
def startDate = 202209
|
||||
def endDate = 202211
|
||||
def sDate= 202301//Integer.parseInt(DateUtils.addMonth(DateUtils.formatDateByPattern(new Date(), "yyyyMM"), -1, "yyyyMM"));
|
||||
def startDate = 202211
|
||||
def endDate = 202301
|
||||
// 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")
|
||||
@@ -36,6 +36,10 @@ class ThirdPartyPriceBatch extends BaseBatch {
|
||||
def sqlInstance = Sql.newInstance("jdbc:oracle:thin:@192.168.0.236:1521:orcl",
|
||||
"GOOJIA", "GOOJIA", "oracle.jdbc.driver.OracleDriver")
|
||||
|
||||
|
||||
def pgsqlInstance = Sql.newInstance("jdbc:postgresql://192.168.0.236:5432/warehouse?stringtype=unspecified",
|
||||
"postgres", "postgres", "org.postgresql.Driver")
|
||||
|
||||
static main(args) {
|
||||
runBatch(new ThirdPartyPriceBatch(), args);
|
||||
}
|
||||
@@ -69,6 +73,8 @@ class ThirdPartyPriceBatch extends BaseBatch {
|
||||
def header = []//["第三方均价ID","楼盘ID","小区名称","城市ID","城市名称","行政区ID","行政区名称","均价对应的月份","诸葛找房均价","安居客均价","房天下均价","链家均价","城市房产均价","麦田均价","贝壳均价","淘房365","中原均价","兔博士均价","Q房均价","房探均价","房多多均价","我爱我家均价","创建时间","更新时间","来源公司"]
|
||||
FileUtils.batchCreateFile(rows, fileName, header, "utf-8", true);
|
||||
|
||||
saveToPgSql(rows)
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -618,4 +624,32 @@ class ThirdPartyPriceBatch extends BaseBatch {
|
||||
}
|
||||
|
||||
|
||||
def saveToPgSql(rows){
|
||||
for(def r : rows) {
|
||||
for (def i = 0; i < r.size(); i++) {
|
||||
if("" == r[i]){
|
||||
r[i] = null
|
||||
}
|
||||
}
|
||||
r << null
|
||||
r << '2023-02-28'
|
||||
r << null
|
||||
r << '2999-12-31'
|
||||
r << null
|
||||
r << null
|
||||
r << null
|
||||
}
|
||||
|
||||
println "start: "+new Date()
|
||||
def sql = "insert into base.t0831_bigdata_third_party_price_gj_h values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)"
|
||||
|
||||
pgsqlInstance.withBatch(50000, 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])
|
||||
}
|
||||
}
|
||||
|
||||
println "end: "+new Date()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+6
-6
@@ -40,7 +40,7 @@ class TradeStatLog {
|
||||
|
||||
static main(args) {
|
||||
def task = new TradeStatLog()
|
||||
// task.run()//统计最近3个月抓取的成交数据量
|
||||
task.run()//统计最近3个月抓取的成交数据量
|
||||
// task.exportTrade()//导出未入库成交
|
||||
// task.thirdPartyStat()
|
||||
// println Calendar.getInstance().get(Calendar.YEAR)
|
||||
@@ -92,13 +92,13 @@ class TradeStatLog {
|
||||
def run(){
|
||||
def citys = CcbCommonUtils.citys_all;
|
||||
def rets = []
|
||||
rets << ["城市","9月总量","10月总量","11月总量","占比","贝壳","链家", "我爱我家","房天下","中原"]
|
||||
rets << ["城市","11月总量","12月总量","23年1月总量","占比","贝壳","链家", "我爱我家","房天下","中原"]
|
||||
def sources = ["贝壳找房","链家在线","我爱我家","房天下","中原地产"]
|
||||
//def startDate = "2021-05-01"
|
||||
def startDate = "2022-09-01"
|
||||
def date = "2022-10-01"
|
||||
def endDate = "2022-11-01"
|
||||
def newDate = "2022-12-01"
|
||||
def startDate = "2022-11-01"
|
||||
def date = "2022-12-01"
|
||||
def endDate = "2023-01-01"
|
||||
def newDate = "2023-02-01"
|
||||
|
||||
for(def city : citys){
|
||||
def lastMonthCount = findTradesCount(city, null, DateUtils.parseFromTightByPattern(startDate,"yyyy-MM-dd"), DateUtils.parseFromTightByPattern(date,"yyyy-MM-dd"))
|
||||
|
||||
+115
@@ -0,0 +1,115 @@
|
||||
package com.fangjia.script.ccbevaluation.data
|
||||
|
||||
import com.fangjia.core.util.BaiDuApiUtils
|
||||
import com.fangjia.script.commData.CommonDatautils
|
||||
import com.fangjia.script.util.DbUtils
|
||||
import com.fangjia.script.util.ElasticUtils
|
||||
import com.fangjia.script.util.ExcelUtils
|
||||
import com.mongodb.BasicDBObject
|
||||
|
||||
class TestData {
|
||||
|
||||
static main(args) {
|
||||
def task = new TestData()
|
||||
// task.run()
|
||||
task.update()
|
||||
}
|
||||
|
||||
def update(){
|
||||
ExcelUtils.modify("C:\\Users\\gaojuan\\Desktop\\ÁúÑÒ1.xlsx", { d ->
|
||||
def dist = CommonDatautils.findDistrictById(d['A'])
|
||||
if(dist){
|
||||
if(d['E'] && d['G']=="È˹¤"){
|
||||
def q = new BasicDBObject()
|
||||
def baidu = BaiDuApiUtils.geoconv(d['E'].toString().toDouble(), d['F'].toString().toDouble(), 3)
|
||||
def lng2 = baidu.x
|
||||
def lat2 = baidu.y
|
||||
|
||||
Long dLat2 = lat2 * 10000000000L
|
||||
Long dLng2 = lng2 * 10000000000L
|
||||
|
||||
q.put("lat2", dLat2)
|
||||
q.put("lng2", dLng2)
|
||||
|
||||
Long lng = d['E'].toString().toDouble() * 10000000000L
|
||||
Long lat = d['F'].toString().toDouble() * 10000000000L
|
||||
q.put("lng", lng)
|
||||
q.put("lat", lat)
|
||||
DbUtils.seaweed.update(new BasicDBObject('_id',d['A']),new BasicDBObject('$set',q))
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
def run(){
|
||||
ExcelUtils.modify("C:\\Users\\gaojuan\\Desktop\\ÁúÑÒ.xlsx", { d ->
|
||||
def dist = CommonDatautils.findDistrictById(d['A'])
|
||||
if(dist){
|
||||
def loc = getLocation(dist.city, dist.region, dist.name)
|
||||
if(loc){
|
||||
d['E'] = loc.x
|
||||
d['F'] = loc.y
|
||||
println d['C']+" "+loc.x+" "+loc.y
|
||||
}
|
||||
}
|
||||
|
||||
// if(!d['E']){
|
||||
// def loc = getAmapLocation("ÁúÑÒÊÐ", d['B'], d['C'])
|
||||
// if(loc){
|
||||
// d['E'] = loc.x
|
||||
// d['F'] = loc.y
|
||||
// }
|
||||
// }
|
||||
|
||||
// if(!d['E']){
|
||||
// def dist = CommonDatautils.findDistrictById(d['A'])
|
||||
// if(dist){
|
||||
// def loc = getAmapOldLocation(dist.city, dist.region, d['C'])
|
||||
// if(loc){
|
||||
// d['E'] = loc.x
|
||||
// d['F'] = loc.y
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// }
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
def getLocation(city, region, name){
|
||||
String sql = "select * from community where city='${city}' and region='${region}' and name='${name}' "
|
||||
def loc = null
|
||||
ElasticUtils.executeSqlQuery(sql,{ data->
|
||||
if(!loc && data.location){
|
||||
loc = data.location
|
||||
}
|
||||
})
|
||||
return loc;
|
||||
}
|
||||
|
||||
def getAmapLocation(city, region, name){
|
||||
String sql = "select * from amap_poi_detail where cityname='${city}' and adname='${region}' and MATCH(name, '${name}') "
|
||||
def loc = null
|
||||
ElasticUtils.executeSqlQuery(sql,{ data->
|
||||
if(!loc && data.location){
|
||||
if(name == data.name){
|
||||
loc = data.location
|
||||
}
|
||||
}
|
||||
})
|
||||
return loc;
|
||||
}
|
||||
|
||||
def getAmapOldLocation(city, region, name){
|
||||
String sql = "select * from amap_poi where cityname='${city}' and adname='${region}' and MATCH(name, '${name}') "
|
||||
def loc = null
|
||||
ElasticUtils.executeSqlQuery(sql,{ data->
|
||||
if(!loc && data.location){
|
||||
if(name == data.name){
|
||||
loc = data.location
|
||||
}
|
||||
}
|
||||
})
|
||||
return loc;
|
||||
}
|
||||
}
|
||||
+122
-123
@@ -1,6 +1,7 @@
|
||||
package com.fangjia.script.ccbevaluation.pgsql
|
||||
|
||||
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
|
||||
@@ -9,7 +10,7 @@ import groovy.sql.Sql
|
||||
|
||||
class ExportPgsqlBaseEvaluation {
|
||||
|
||||
def sqlInstance = Sql.newInstance("jdbc:postgresql://192.168.0.236:5432/postgres",
|
||||
def pgsqlInstance = Sql.newInstance("jdbc:postgresql://192.168.0.236:5432/warehouse",
|
||||
"postgres", "postgres", "org.postgresql.Driver")
|
||||
def citys = null
|
||||
def cityCodeMap = CcbCommonUtils.findCityCodeValue()
|
||||
@@ -26,42 +27,41 @@ class ExportPgsqlBaseEvaluation {
|
||||
|
||||
def run(args) {
|
||||
citys = CcbCommonUtils.getRunningCitys(args)
|
||||
citys = citys.reverse()
|
||||
def curMonth = Integer.parseInt(DateUtils.addMonth(DateUtils.formatDateByPattern(new Date(), "yyyyMM"), 0, "yyyyMM"));
|
||||
def lastMonth = Integer.parseInt(DateUtils.addMonth(DateUtils.formatDateByPattern(new Date(), "yyyyMM"), -1, "yyyyMM"));
|
||||
def lastMonthStr = "2022-09"//DateUtils.addMonth(DateUtils.formatDateByPattern(new Date(), "yyyy-MM"), -1, "yyyy-MM")
|
||||
def lastMonthStr = DateUtils.addMonth(DateUtils.formatDateByPattern(new Date(), "yyyy-MM"), -1, "yyyy-MM")
|
||||
def new_dists = []
|
||||
|
||||
// exportEvaluationRateData()
|
||||
// exportBigdataPoiData()
|
||||
// exportBigdataDistrictData()
|
||||
|
||||
//第三方网站权重表
|
||||
// exportWebsiteRate();
|
||||
|
||||
// exportGuidedPrice()//随人工改变//
|
||||
// exportCommunityGuidedPrice(lastMonth.toString()+"28")//随政策//
|
||||
exportEvaluationRateData()
|
||||
exportBigdataPoiData()
|
||||
exportBigdataDistrictData()
|
||||
//
|
||||
//// //处理小区情况
|
||||
// exportBigdataCommunity()//
|
||||
// exportCommunityStaging()//没cityid
|
||||
// exportCommunityBuildType()//
|
||||
//
|
||||
// exportThirdPartyPrice2(lastMonth, new_dists)//
|
||||
exportBigdataForsale(lastMonthStr +"-19", new_dists) //2022-07-19
|
||||
// exportBigdataDeal(lastMonthStr + "-01", new_dists) //2022-07-01
|
||||
// //第三方网站权重表
|
||||
exportWebsiteRate();
|
||||
|
||||
exportGuidedPrice()//随人工改变//
|
||||
exportCommunityGuidedPrice(lastMonth.toString()+"28")//随政策//
|
||||
//处理小区情况
|
||||
exportCommunityStaging()//没cityid
|
||||
exportBigdataCommunity()//
|
||||
|
||||
exportCommunityBuildType()//
|
||||
|
||||
exportThirdPartyPrice2(lastMonth, new_dists)//
|
||||
exportBigdataForsale(DateUtils.formatDateByPattern(new Date(), "yyyy-MM") +"-18", new_dists) //现在按updatetime导出
|
||||
exportBigdataDeal(lastMonthStr + "-01", new_dists) //2022-07-01
|
||||
}
|
||||
|
||||
def exportEvaluationRateData() {
|
||||
def sql = "select gujia_ceft_id,gujia_ceft_tp,gujia_ceft,gujia_seq, gujia_urbn,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 from "+database+".t0831_evaluate_rate_gj_w";
|
||||
def sql = "select gujia_ceft_id,gujia_ceft_tp,gujia_bds_ceft,gujia_bds_seq, gujia_urbn,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 from "+database+".t0831_evaluate_rate_gj_h";
|
||||
def allRows = []
|
||||
sqlInstance.eachRow(sql, { r ->
|
||||
pgsqlInstance.eachRow(sql, { r ->
|
||||
def data = []
|
||||
data << r.gujia_ceft_id
|
||||
data << r.gujia_ceft_tp
|
||||
data << r.gujia_ceft
|
||||
data << r.gujia_seq
|
||||
data << r.gujia_bds_ceft
|
||||
data << r.gujia_bds_seq
|
||||
data << r.gujia_urbn
|
||||
data << r.rmrk_dsc
|
||||
data << r.data_crt_tm
|
||||
@@ -82,8 +82,8 @@ class ExportPgsqlBaseEvaluation {
|
||||
def allRows = []
|
||||
for(def city : citys) {
|
||||
def cityCode = cityCodeMap.get(city)
|
||||
def sql = "select urbn_id,gujia_admndiv_id,gujia_fsid,poi_nm,gujia_tp,gujia_tp_ecd,lgt,ltt,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 from "+database+".t0831_bigdata_poi_gj_w where urbn_id='${cityCode}'";
|
||||
sqlInstance.eachRow(sql, { r ->
|
||||
def sql = "select urbn_id,gujia_admndiv_id,gujia_fsid,poi_nm,gujia_tp,gujia_tp_ecd,gujia_bds_ltt,gujia_bds_lgt,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 from "+database+".t0831_bigdata_poi_gj_h where urbn_id='${cityCode}'";
|
||||
pgsqlInstance.eachRow(sql, { r ->
|
||||
def data = []
|
||||
data << r.urbn_id
|
||||
data << r.gujia_admndiv_id
|
||||
@@ -91,8 +91,8 @@ class ExportPgsqlBaseEvaluation {
|
||||
data << r.poi_nm
|
||||
data << r.gujia_tp
|
||||
data << r.gujia_tp_ecd
|
||||
data << r.lgt
|
||||
data << r.ltt
|
||||
data << r.gujia_bds_ltt
|
||||
data << r.gujia_bds_lgt
|
||||
data << r.rmrk_dsc
|
||||
data << r.data_crt_tm
|
||||
data << r.data_udt_tm
|
||||
@@ -113,8 +113,8 @@ class ExportPgsqlBaseEvaluation {
|
||||
def allRows = []
|
||||
for(def city : citys) {
|
||||
def cityCode = cityCodeMap.get(city)
|
||||
def sql = "select gujia_admndiv_id,gujia_admndiv_nm,gujia_admndiv_nm_cpa,urbn_id,gujia_natstd_cd,gujia_dspl_seq,gujia_admndiv_cgy,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_lgc_admndiv_dsc,gujia_lgc_admndiv_cd,gujia_adiv_cd_val,gujia_data_tm from "+database+".t0831_bigdata_district_gj_w where urbn_id='${cityCode}'";
|
||||
sqlInstance.eachRow(sql, { r ->
|
||||
def sql = "select gujia_admndiv_id,gujia_admndiv_nm,gujia_admndiv_nm_cpa,urbn_id,gujia_natstd_cd,gujia_dspl_seq,gujia_admndiv_cgy,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_lgc_admndiv_dsc,gujia_lgc_admndiv_cd,gujia_adiv_cd_val,gujia_bds_data_tm_val from "+database+".t0831_bigdata_district_gj_h where urbn_id='${cityCode}'";
|
||||
pgsqlInstance.eachRow(sql, { r ->
|
||||
def data = []
|
||||
data << r.gujia_admndiv_id
|
||||
data << r.gujia_admndiv_nm
|
||||
@@ -130,7 +130,7 @@ class ExportPgsqlBaseEvaluation {
|
||||
data << r.gujia_lgc_admndiv_dsc
|
||||
data << r.gujia_lgc_admndiv_cd
|
||||
data << r.gujia_adiv_cd_val
|
||||
data << r.gujia_data_tm
|
||||
data << r.gujia_bds_data_tm_val
|
||||
allRows << data
|
||||
});
|
||||
}
|
||||
@@ -144,15 +144,15 @@ class ExportPgsqlBaseEvaluation {
|
||||
}
|
||||
|
||||
def exportWebsiteRate(){
|
||||
def sql = "select gujiadatawebst_src_id,gujia_data_webst_src,gujiadatawebstmpng_id,gujia_wgt,gujia_tp,gujia_src_co,urbn_id,gujia_urbn,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 from "+database+".t0831_website_config_gj_w";
|
||||
def sql = "select gujiadatawebst_src_id,gujia_data_webst_src,gujiadatawebstmpng_id,gujia_bds_wgt,gujia_bds_tp,gujia_src_co,urbn_id,gujia_urbn,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 from "+database+".t0831_website_config_gj_h";
|
||||
def allRows = []
|
||||
sqlInstance.eachRow(sql, { r ->
|
||||
pgsqlInstance.eachRow(sql, { r ->
|
||||
def data = []
|
||||
data << r.gujiadatawebst_src_id
|
||||
data << r.gujia_data_webst_src
|
||||
data << r.gujiadatawebstmpng_id
|
||||
data << r.gujia_wgt
|
||||
data << r.gujia_tp
|
||||
data << r.gujia_bds_wgt
|
||||
data << r.gujia_bds_tp
|
||||
data << r.gujia_src_co
|
||||
data << r.urbn_id
|
||||
data << r.gujia_urbn
|
||||
@@ -174,8 +174,8 @@ class ExportPgsqlBaseEvaluation {
|
||||
def allRows = []
|
||||
for(def city : citys) {
|
||||
def cityCode = cityCodeMap.get(city)
|
||||
def sql = "select gujia_fsid,gujia_bds_id,comm_nm,urbn_id,urbn_nm,gujia_admndiv_id,gujia_admndiv_nm,to_char(gujia_drc_dt,'yyyy-mm-dd') as gujia_drc_dt,gujia_drc_prc,gujia_add_psn,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 from "+database+".t0831_guided_price_gj_w where urbn_id='${cityCode}'";
|
||||
sqlInstance.eachRow(sql, { r ->
|
||||
def sql = "select gujia_fsid,gujia_bds_id,comm_nm,urbn_id,urbn_nm,gujia_admndiv_id,gujia_admndiv_nm,to_char(gujia_drc_dt,'yyyy-mm-dd') as gujia_drc_dt,gujia_bds_drc_prc,gujia_add_psn,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 from "+database+".t0831_guided_price_gj_h where urbn_id='${cityCode}'";
|
||||
pgsqlInstance.eachRow(sql, { r ->
|
||||
def data = []
|
||||
data << r.gujia_fsid
|
||||
data << r.gujia_bds_id
|
||||
@@ -185,7 +185,7 @@ class ExportPgsqlBaseEvaluation {
|
||||
data << r.gujia_admndiv_id
|
||||
data << r.gujia_admndiv_nm
|
||||
data << r.gujia_drc_dt
|
||||
data << r.gujia_drc_prc
|
||||
data << r.gujia_bds_drc_prc
|
||||
data << r.gujia_add_psn
|
||||
data << r.rmrk_dsc
|
||||
data << r.data_crt_tm
|
||||
@@ -207,8 +207,8 @@ class ExportPgsqlBaseEvaluation {
|
||||
def allRows = []
|
||||
for(def city : citys) {
|
||||
def cityCode = cityCodeMap.get(city)
|
||||
def sql = "select gujia_fsid,gujia_bds_id, comm_nm, urbn_id, urbn_nm, gujia_admndiv_id, gujia_admndiv_nm, gujia_drc_prc, gujia_drc_prc_src_val, 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 from "+database+".t0831_community_guide_price_gj_h where urbn_id='${cityCode}' and data_crt_tm>=to_date('${date}','yyyyMMdd')";
|
||||
sqlInstance.eachRow(sql, { r ->
|
||||
def sql = "select gujia_fsid,gujia_bds_id, comm_nm, urbn_id, urbn_nm, gujia_admndiv_id, gujia_admndiv_nm, gujia_bds_drc_prc, gujia_bds_drc_prc_src, 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 from "+database+".t0831_community_guide_price_gj_h where urbn_id='${cityCode}' and data_crt_tm>=to_date('${date}','yyyyMMdd')";
|
||||
pgsqlInstance.eachRow(sql, { r ->
|
||||
def data = []
|
||||
data << r.gujia_fsid
|
||||
data << r.gujia_bds_id
|
||||
@@ -217,8 +217,8 @@ class ExportPgsqlBaseEvaluation {
|
||||
data << r.urbn_nm
|
||||
data << r.gujia_admndiv_id
|
||||
data << r.gujia_admndiv_nm
|
||||
data << r.gujia_drc_prc
|
||||
data << r.gujia_drc_prc_src_val
|
||||
data << r.gujia_bds_drc_prc
|
||||
data << r.gujia_bds_drc_prc_src
|
||||
data << r.rmrk_dsc
|
||||
data << r.data_crt_tm
|
||||
data << r.data_udt_tm
|
||||
@@ -239,8 +239,8 @@ class ExportPgsqlBaseEvaluation {
|
||||
def allRows = []
|
||||
for(def city : citys) {
|
||||
def cityCode = cityCodeMap.get(city)
|
||||
def sql = "select urbn_id,gujia_admndiv_id,gujia_comm_id,gujia_admndiv_nm,comm_nm,gujia_dtl_adr,lgt,ltt,gujiaocpoflandtotarea,gujia_bld_tot_area,gujia_grnrate,gujia_vol_rate,gujia_park_num,gujia_bld_yr_rc,gujia_hs_use,gujia_totunits,gujia_data_tm,gujia_udt_mark_val,to_char(data_udt_tm,'yyyy-mm-dd hh24:mi:ss') as data_udt_tm,gujia_comm_tp_val,gujia_comm_fmnm,gujia_str,gujia_hsno,gujiawthr_new_pan_ind,gujia_comm_intd,rmrk_dsc,to_char(data_crt_tm,'yyyy-mm-dd hh24:mi:ss') as data_crt_tm,gujia_src_co,gujia_vlgtwn_str_mng,gujia_lgc_admndiv_cd,gujia_lgc_adiv,gujia_bds_st_val from "+database+".t0831_bigdata_community_gj_w where urbn_id='${cityCode}' ";//where cityId in (350200,150100)
|
||||
sqlInstance.eachRow(sql,{r->
|
||||
def sql = "select urbn_id,gujia_admndiv_id,gujia_comm_id,gujia_admndiv_nm,comm_nm,gujia_dtl_adr,gujia_bds_ltt,gujia_bds_lgt,gujiabdsocpoldtotarea,gujiabds_bld_tot_area,gujia_bds_grnrate,gujia_bds_vol_rate,gujia_bds_park_num,gujia_bds_bld_yr_rc,gujia_bds_hs_use_val,totunits,gujia_bds_data_tm_val,gujiabds_udt_flag_val,to_char(data_udt_tm,'yyyy-mm-dd hh24:mi:ss') as data_udt_tm,gujia_comm_tp_val,gujia_comm_fmnm,gujia_str,gujia_hsno,gujiawthr_new_pan_ind,gujia_comm_intd,rmrk_dsc,to_char(data_crt_tm,'yyyy-mm-dd hh24:mi:ss') as data_crt_tm,gujia_src_co,gujia_vlgtwn_str_mng,gujia_lgc_admndiv_cd,gujia_lgc_adiv,gujia_bds_bds_st from "+database+".t0831_bigdata_community_gj_h where urbn_id='${cityCode}' ";//where cityId in (350200,150100)
|
||||
pgsqlInstance.eachRow(sql,{r->
|
||||
def data = []
|
||||
data << r.urbn_id
|
||||
data << r.gujia_admndiv_id
|
||||
@@ -248,18 +248,18 @@ class ExportPgsqlBaseEvaluation {
|
||||
data << r.gujia_admndiv_nm
|
||||
data << r.comm_nm
|
||||
data << r.gujia_dtl_adr
|
||||
data << r.lgt
|
||||
data << r.ltt
|
||||
data << r.gujiaocpoflandtotarea
|
||||
data << r.gujia_bld_tot_area
|
||||
data << r.gujia_grnrate
|
||||
data << r.gujia_vol_rate
|
||||
data << r.gujia_park_num
|
||||
data << r.gujia_bld_yr_rc
|
||||
data << r.gujia_hs_use
|
||||
data << r.gujia_totunits
|
||||
data << r.gujia_data_tm
|
||||
data << r.gujia_udt_mark_val
|
||||
data << r.gujia_bds_ltt
|
||||
data << r.gujia_bds_lgt
|
||||
data << r.gujiabdsocpoldtotarea
|
||||
data << r.gujiabds_bld_tot_area
|
||||
data << r.gujia_bds_grnrate
|
||||
data << r.gujia_bds_vol_rate
|
||||
data << r.gujia_bds_park_num
|
||||
data << r.gujia_bds_bld_yr_rc
|
||||
data << r.gujia_bds_hs_use_val
|
||||
data << r.totunits
|
||||
data << r.gujia_bds_data_tm_val
|
||||
data << r.gujiabds_udt_flag_val
|
||||
data << r.data_udt_tm
|
||||
data << r.gujia_comm_tp_val
|
||||
data << r.gujia_comm_fmnm
|
||||
@@ -273,7 +273,7 @@ class ExportPgsqlBaseEvaluation {
|
||||
data << r.gujia_vlgtwn_str_mng
|
||||
data << r.gujia_lgc_admndiv_cd
|
||||
data << r.gujia_lgc_adiv
|
||||
data << r.gujia_bds_st_val
|
||||
data << r.gujia_bds_bds_st
|
||||
allRows << data
|
||||
});
|
||||
}
|
||||
@@ -287,8 +287,8 @@ class ExportPgsqlBaseEvaluation {
|
||||
def exportCommunityStaging() {
|
||||
|
||||
def allRows = []
|
||||
def sql = "select gujia_instm_id,gujia_comm_id,gujiacomm_prim_prd_id,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 from "+database+".t0831_community_staging_gj_w";
|
||||
sqlInstance.eachRow(sql, { r ->
|
||||
def sql = "select gujia_instm_id,gujia_comm_id,gujiacomm_prim_prd_id,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 from "+database+".t0831_community_staging_gj_h";
|
||||
pgsqlInstance.eachRow(sql, { r ->
|
||||
def data = []
|
||||
data << r.gujia_instm_id
|
||||
data << r.gujia_comm_id
|
||||
@@ -310,8 +310,8 @@ class ExportPgsqlBaseEvaluation {
|
||||
def allRows = []
|
||||
for(def city : citys) {
|
||||
def cityCode = cityCodeMap.get(city)
|
||||
def sql = "select urbn_id,gujia_comm_id,gujia_bld_tp_val,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_data_tm from "+database+".t0831_bigdata_commbuildtype_gj_w where urbn_id='${cityCode}'";
|
||||
sqlInstance.eachRow(sql, { r ->
|
||||
def sql = "select urbn_id,gujia_comm_id,gujia_bld_tp_val,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_data_tm_val from "+database+".t0831_bigdata_commbuildtype_gj_h where urbn_id='${cityCode}'";
|
||||
pgsqlInstance.eachRow(sql, { r ->
|
||||
def data = []
|
||||
data << r.urbn_id
|
||||
data << r.gujia_comm_id
|
||||
@@ -320,7 +320,7 @@ class ExportPgsqlBaseEvaluation {
|
||||
data << r.data_crt_tm
|
||||
data << r.data_udt_tm
|
||||
data << r.gujia_src_co
|
||||
data << r.gujia_data_tm
|
||||
data << r.gujia_bds_data_tm_val
|
||||
allRows << data
|
||||
});
|
||||
}
|
||||
@@ -343,17 +343,17 @@ class ExportPgsqlBaseEvaluation {
|
||||
def allRows = []
|
||||
if(new_dists) {
|
||||
def newstr = "('"+new_dists.join("','")+"')"
|
||||
def sql1 = "select gujia_trdpt_avprc_id,urbn_id,gujia_admndiv_id,gujia_bds_id,comm_nm,gujia_dtsr_id,gujia_dtsr_dsc,gujia_avprc_dt_val,gujia_comm_avprc,gujia_comm_hgst_prc,gujia_comm_lwst_prc,to_char(data_udt_tm,'yyyy-mm-dd hh24:mi:ss') as data_udt_tm from "+database+".t0831_bigdata_third_party_price_gj_h where " +
|
||||
"urbn_id='${cityCode}' and gujia_avprc_dt_val=${price_date} and gujia_admndiv_id not in ${newstr} ";
|
||||
def sql1 = "select gujia_trdpt_avprc_id,urbn_id,gujia_admndiv_id,gujia_bds_id,comm_nm,gujia_dtsr_id,gujia_dtsr_dsc,gujiabds_avprc_dt_val,gujia_bds_comm_avprc,gujiabdscomm_hgst_prc,gujiabdscomm_lwst_prc,to_char(data_udt_tm,'yyyy-mm-dd hh24:mi:ss') as data_udt_tm from "+database+".t0831_bigdata_third_party_price_gj_h where " +
|
||||
"urbn_id='${cityCode}' and gujiabds_avprc_dt_val=${price_date} and gujia_admndiv_id not in ${newstr} ";
|
||||
def rets1 = getThirdPartyDatas(sql1)
|
||||
allRows.addAll(rets1)
|
||||
|
||||
def sql2 = "select gujia_trdpt_avprc_id,urbn_id,gujia_admndiv_id,gujia_bds_id,comm_nm,gujia_dtsr_id,gujia_dtsr_dsc,gujia_avprc_dt_val,gujia_comm_avprc,gujia_comm_hgst_prc,gujia_comm_lwst_prc,to_char(data_udt_tm,'yyyy-mm-dd hh24:mi:ss') as data_udt_tm from "+database+".t0831_bigdata_third_party_price_gj_h where " +
|
||||
def sql2 = "select gujia_trdpt_avprc_id,urbn_id,gujia_admndiv_id,gujia_bds_id,comm_nm,gujia_dtsr_id,gujia_dtsr_dsc,gujiabds_avprc_dt_val,gujia_bds_comm_avprc,gujiabdscomm_hgst_prc,gujiabdscomm_lwst_prc,to_char(data_udt_tm,'yyyy-mm-dd hh24:mi:ss') as data_udt_tm from "+database+".t0831_bigdata_third_party_price_gj_h where " +
|
||||
"urbn_id='${cityCode}' and gujia_admndiv_id in ${newstr} ";
|
||||
def rets2 = getThirdPartyDatas(sql2)
|
||||
allRows.addAll(rets2)
|
||||
}else{
|
||||
def sql = "select gujia_trdpt_avprc_id,urbn_id,gujia_admndiv_id,gujia_bds_id,comm_nm,gujia_dtsr_id,gujia_dtsr_dsc,gujia_avprc_dt_val,gujia_comm_avprc,gujia_comm_hgst_prc,gujia_comm_lwst_prc,to_char(data_udt_tm,'yyyy-mm-dd hh24:mi:ss') as data_udt_tm from "+database+".t0831_bigdata_third_party_price_gj_h where urbn_id='${cityCode}' and gujia_avprc_dt_val='${price_date}' ";
|
||||
def sql = "select gujia_trdpt_avprc_id,urbn_id,gujia_admndiv_id,gujia_bds_id,comm_nm,gujia_dtsr_id,gujia_dtsr_dsc,gujiabds_avprc_dt_val,gujia_bds_comm_avprc,gujiabdscomm_hgst_prc,gujiabdscomm_lwst_prc,to_char(data_udt_tm,'yyyy-mm-dd hh24:mi:ss') as data_udt_tm from "+database+".t0831_bigdata_third_party_price_gj_h where urbn_id='${cityCode}' and gujiabds_avprc_dt_val='${price_date}' ";
|
||||
allRows = getThirdPartyDatas(sql)
|
||||
}
|
||||
if(allRows && allRows.size()>0){
|
||||
@@ -367,12 +367,12 @@ class ExportPgsqlBaseEvaluation {
|
||||
}
|
||||
|
||||
println "BIGDATA_THIRD_PARTY_PRICE_GJ 数据文件输出完成......"
|
||||
CcbFtpUtils.ftpUpload(null, fileName, curDate)
|
||||
CcbFtpTestUtils.ftpUpload(null, fileName, curDate)
|
||||
}
|
||||
|
||||
def getThirdPartyDatas(def sql){
|
||||
def allRows = []
|
||||
sqlInstance.eachRow(sql, { r ->
|
||||
pgsqlInstance.eachRow(sql, { r ->
|
||||
def data = []
|
||||
data << r.gujia_trdpt_avprc_id
|
||||
data << r.urbn_id
|
||||
@@ -381,10 +381,10 @@ class ExportPgsqlBaseEvaluation {
|
||||
data << r.comm_nm
|
||||
data << r.gujia_dtsr_id
|
||||
data << r.gujia_dtsr_dsc
|
||||
data << r.gujia_avprc_dt_val
|
||||
data << r.gujia_comm_avprc
|
||||
data << r.gujia_comm_hgst_prc
|
||||
data << r.gujia_comm_lwst_prc
|
||||
data << r.gujiabds_avprc_dt_val
|
||||
data << r.gujia_bds_comm_avprc
|
||||
data << r.gujiabdscomm_hgst_prc
|
||||
data << r.gujiabdscomm_lwst_prc
|
||||
data << r.data_udt_tm
|
||||
allRows << data
|
||||
})
|
||||
@@ -399,17 +399,17 @@ class ExportPgsqlBaseEvaluation {
|
||||
def cityCode = cityCodeMap.get(city)
|
||||
if(new_dists){
|
||||
def newstr = "('"+new_dists.join("','")+"')"
|
||||
def sql1 = "select urbn_id,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_bld_yr_rc,gujia_own_val,gujia_own_yrlmt_val,gujia_prd_val,gujia_wbt_floor,gujia_lyr_tp_val,gujia_tot_floor_num,gujia_bld_tp_val,gujia_bld_stc,gujiaconstructionarea,gujia_set_innr_area,gujia_acc_tp_val,gujia_room,gujia_dept,gujia_ktch_num,gujia_toliet,gujia_hs_use,gujia_indr_stc_val,gujia_twrd_val,gujia_dcrt_sttn,gujia_ases_bt_ln_num,gujia_trdtckt_prc,gujia_mdl_tot_prc,gujia_dcl_tot_prc,gujia_ases_tot_prc,gujiasigntonlinectrid,to_char(txn_dt,'yyyy-mm-dd') as txn_dt,gujia_txn_tp_val,gujia_sell_pymtmod,gujia_mdl_cyc,gujiawthrext_lift_ind,gujiagvlndfargrdnarea,gujia_gv_lu_tbl_area,gujia_gv_sun_tbl_area,gujiagvbaywindow_area,gujiagvarea_tower_flr,gujia_gv_grg_area,gujiagvundgdroom_area,gujia_gv_othr_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_mkdam,gujia_data_tm " +
|
||||
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 "+database+".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,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_bld_yr_rc,gujia_own_val,gujia_own_yrlmt_val,gujia_prd_val,gujia_wbt_floor,gujia_lyr_tp_val,gujia_tot_floor_num,gujia_bld_tp_val,gujia_bld_stc,gujiaconstructionarea,gujia_set_innr_area,gujia_acc_tp_val,gujia_room,gujia_dept,gujia_ktch_num,gujia_toliet,gujia_hs_use,gujia_indr_stc_val,gujia_twrd_val,gujia_dcrt_sttn,gujia_ases_bt_ln_num,gujia_trdtckt_prc,gujia_mdl_tot_prc,gujia_dcl_tot_prc,gujia_ases_tot_prc,gujiasigntonlinectrid,to_char(txn_dt,'yyyy-mm-dd') as txn_dt,gujia_txn_tp_val,gujia_sell_pymtmod,gujia_mdl_cyc,gujiawthrext_lift_ind,gujiagvlndfargrdnarea,gujia_gv_lu_tbl_area,gujia_gv_sun_tbl_area,gujiagvbaywindow_area,gujiagvarea_tower_flr,gujia_gv_grg_area,gujiagvundgdroom_area,gujia_gv_othr_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_mkdam,gujia_data_tm " +
|
||||
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 "+database+".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,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_bld_yr_rc,gujia_own_val,gujia_own_yrlmt_val,gujia_prd_val,gujia_wbt_floor,gujia_lyr_tp_val,gujia_tot_floor_num,gujia_bld_tp_val,gujia_bld_stc,gujiaconstructionarea,gujia_set_innr_area,gujia_acc_tp_val,gujia_room,gujia_dept,gujia_ktch_num,gujia_toliet,gujia_hs_use,gujia_indr_stc_val,gujia_twrd_val,gujia_dcrt_sttn,gujia_ases_bt_ln_num,gujia_trdtckt_prc,gujia_mdl_tot_prc,gujia_dcl_tot_prc,gujia_ases_tot_prc,gujiasigntonlinectrid,to_char(txn_dt,'yyyy-mm-dd') as txn_dt,gujia_txn_tp_val,gujia_sell_pymtmod,gujia_mdl_cyc,gujiawthrext_lift_ind,gujiagvlndfargrdnarea,gujia_gv_lu_tbl_area,gujia_gv_sun_tbl_area,gujiagvbaywindow_area,gujiagvarea_tower_flr,gujia_gv_grg_area,gujiagvundgdroom_area,gujia_gv_othr_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_mkdam,gujia_data_tm " +
|
||||
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 "+database+".t0831_bigdata_deal_gj_h where urbn_id='${cityCode}' and txn_dt>=to_date('${dealDate}','yyyy-MM-dd')";
|
||||
allRows.addAll(dealData(sql))
|
||||
}
|
||||
@@ -425,11 +425,10 @@ class ExportPgsqlBaseEvaluation {
|
||||
|
||||
def dealData(def sql){
|
||||
def allRows = []
|
||||
sqlInstance.eachRow(sql, { r ->
|
||||
pgsqlInstance.eachRow(sql, { r ->
|
||||
def data = []
|
||||
data << r.urbn_id
|
||||
data << r.urbn_id
|
||||
data << r.mdl_id
|
||||
data << r.gujia_bds_mdl_id
|
||||
data << r.urbn_nm
|
||||
data << r.gujia_admndiv_id
|
||||
data << r.gujia_admndiv_nm
|
||||
@@ -445,45 +444,45 @@ class ExportPgsqlBaseEvaluation {
|
||||
data << r.gujia_unit_nm
|
||||
data << r.gujia_acc_id
|
||||
data << r.gujia_dtl_adr
|
||||
data << r.gujia_bld_yr_rc
|
||||
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_wbt_floor
|
||||
data << r.gujia_bds_wbt_floor
|
||||
data << r.gujia_lyr_tp_val
|
||||
data << r.gujia_tot_floor_num
|
||||
data << r.gujiabdstot_floor_num
|
||||
data << r.gujia_bld_tp_val
|
||||
data << r.gujia_bld_stc
|
||||
data << r.gujiaconstructionarea
|
||||
data << r.gujia_set_innr_area
|
||||
data << r.guiabconstructionarea
|
||||
data << r.gujiabdsset_innr_area
|
||||
data << r.gujia_acc_tp_val
|
||||
data << r.gujia_room
|
||||
data << r.gujia_dept
|
||||
data << r.gujia_ktch_num
|
||||
data << r.gujia_toliet
|
||||
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_trdtckt_prc
|
||||
data << r.gujia_mdl_tot_prc
|
||||
data << r.gujia_dcl_tot_prc
|
||||
data << r.gujia_ases_tot_prc
|
||||
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_mdl_cyc
|
||||
data << r.gujia_bds_mdl_cyc
|
||||
data << r.gujiawthrext_lift_ind
|
||||
data << r.gujiagvlndfargrdnarea
|
||||
data << r.gujia_gv_lu_tbl_area
|
||||
data << r.gujia_gv_sun_tbl_area
|
||||
data << r.gujiagvbaywindow_area
|
||||
data << r.gujiagvarea_tower_flr
|
||||
data << r.gujia_gv_grg_area
|
||||
data << r.gujiagvundgdroom_area
|
||||
data << r.gujia_gv_othr_area
|
||||
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
|
||||
@@ -491,8 +490,8 @@ class ExportPgsqlBaseEvaluation {
|
||||
data << r.data_crt_tm
|
||||
data << r.data_udt_tm
|
||||
data << r.gujia_src_co
|
||||
data << r.gujia_mkdam
|
||||
data << r.gujia_data_tm
|
||||
data << r.gujia_bds_mkdam
|
||||
data << r.gujia_bds_data_tm_val
|
||||
allRows << data
|
||||
});
|
||||
return allRows
|
||||
@@ -511,15 +510,16 @@ class ExportPgsqlBaseEvaluation {
|
||||
def allRows = []
|
||||
if(new_dists){
|
||||
def newstr = "('"+new_dists.join("','")+"')"
|
||||
def sql1 = "select urbn_id,gujia_sell_id,gujia_listg_hs_id,urbn_nm,gujia_admndiv_id,gujia_admndiv_nm,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_bld_yr_rc,gujia_own_val,gujia_own_yrlmt_val,gujia_unitprc,gujia_tot_prc,gujia_sell_pymtmod,gujia_wbt_floor,gujia_tot_floor_num,gujia_bld_tp_val,gujia_indr_stc_val,gujia_bld_stc,gujiaconstructionarea,gujia_set_innr_area,gujia_acc_tp_val,gujia_room,gujia_dept,gujia_ktch_num,gujia_toliet,gujia_twrd_val,gujia_dcrt_sttn,gujiawthrext_lift_ind,gujiajiladderjiactval,to_char(anc_tm,'yyyy-mm-dd') as anc_tm,to_char(exdat,'yyyy-mm-dd') as exdat,gujia_wthr_strt_ind,gujia_hs_src_dtsrc,intr_co_id,intr_co_nm,gujia_anc_psn,gujia_anc_psn_tel,gujia_dsc_inf_cntnt,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_apd_inf " +
|
||||
"from "+database+".t0831_bigdata_forsale_gj_h where urbn_id='${cityCode}' and anc_tm>=to_date('${publishDate}','yyyy-MM-dd') and gujia_admndiv_id not in ${newstr}";
|
||||
def sql1 = "select urbn_id,gujia_sell_id,gujia_listg_hs_id,urbn_nm,gujia_admndiv_id,gujia_admndiv_nm,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_bds_unitprc,gujia_bds_tot_prc,gujia_sell_pymtmod,gujia_bds_wbt_floor,gujiabdstot_floor_num,gujia_bld_tp_val,gujia_indr_stc_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_twrd_val,gujia_dcrt_sttn,gujiawthrext_lift_ind,gujiajiladderjiactval,to_char(anc_tm,'yyyy-mm-dd') as anc_tm,to_char(exdat,'yyyy-mm-dd') as exdat,gujia_wthr_strt,gujia_hs_src_dtsrc,intr_co_id,intr_co_nm,gujia_anc_psn,gujia_anc_psn_tel,gujia_dsc_inf_cntnt,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_apd_inf " +
|
||||
"from "+database+".t0831_bigdata_forsale_gj_h where urbn_id='${cityCode}' and data_udt_tm>=to_date('${publishDate}','yyyy-MM-dd') and gujia_admndiv_id not in ${newstr}";
|
||||
def rets1 = getHouseDatas(sql1)
|
||||
allRows.addAll(rets1)
|
||||
}else{
|
||||
def sql = "select urbn_id,gujia_sell_id,gujia_listg_hs_id,urbn_nm,gujia_admndiv_id,gujia_admndiv_nm,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_bld_yr_rc,gujia_own_val,gujia_own_yrlmt_val,gujia_unitprc,gujia_tot_prc,gujia_sell_pymtmod,gujia_wbt_floor,gujia_tot_floor_num,gujia_bld_tp_val,gujia_indr_stc_val,gujia_bld_stc,gujiaconstructionarea,gujia_set_innr_area,gujia_acc_tp_val,gujia_room,gujia_dept,gujia_ktch_num,gujia_toliet,gujia_twrd_val,gujia_dcrt_sttn,gujiawthrext_lift_ind,gujiajiladderjiactval,to_char(anc_tm,'yyyy-mm-dd') as anc_tm,to_char(exdat,'yyyy-mm-dd') as exdat,gujia_wthr_strt_ind,gujia_hs_src_dtsrc,intr_co_id,intr_co_nm,gujia_anc_psn,gujia_anc_psn_tel,gujia_dsc_inf_cntnt,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_apd_inf " +
|
||||
"from "+database+".t0831_bigdata_forsale_gj_h where urbn_id='${cityCode}' and anc_tm>=to_date('${publishDate}','yyyy-MM-dd')";
|
||||
def sql = "select urbn_id,gujia_sell_id,gujia_listg_hs_id,urbn_nm,gujia_admndiv_id,gujia_admndiv_nm,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_bds_unitprc,gujia_bds_tot_prc,gujia_sell_pymtmod,gujia_bds_wbt_floor,gujiabdstot_floor_num,gujia_bld_tp_val,gujia_indr_stc_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_twrd_val,gujia_dcrt_sttn,gujiawthrext_lift_ind,gujiajiladderjiactval,to_char(anc_tm,'yyyy-mm-dd') as anc_tm,to_char(exdat,'yyyy-mm-dd') as exdat,gujia_wthr_strt,gujia_hs_src_dtsrc,intr_co_id,intr_co_nm,gujia_anc_psn,gujia_anc_psn_tel,gujia_dsc_inf_cntnt,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_apd_inf " +
|
||||
"from "+database+".t0831_bigdata_forsale_gj_h where urbn_id='${cityCode}' and data_udt_tm>=to_date('${publishDate}','yyyy-MM-dd')";
|
||||
allRows = getHouseDatas(sql)
|
||||
}
|
||||
println city +" "+allRows.size()
|
||||
if(allRows.size()>0){
|
||||
index = index + 1
|
||||
if(index == 1){
|
||||
@@ -533,7 +533,7 @@ class ExportPgsqlBaseEvaluation {
|
||||
|
||||
if(new_dists){//补充被修区域的数据
|
||||
def newstr = "('"+new_dists.join("','")+"')"
|
||||
def sql2 = "select urbn_id,gujia_sell_id,gujia_listg_hs_id,urbn_nm,gujia_admndiv_id,gujia_admndiv_nm,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_bld_yr_rc,gujia_own_val,gujia_own_yrlmt_val,gujia_unitprc,gujia_tot_prc,gujia_sell_pymtmod,gujia_wbt_floor,gujia_tot_floor_num,gujia_bld_tp_val,gujia_indr_stc_val,gujia_bld_stc,gujiaconstructionarea,gujia_set_innr_area,gujia_acc_tp_val,gujia_room,gujia_dept,gujia_ktch_num,gujia_toliet,gujia_twrd_val,gujia_dcrt_sttn,gujiawthrext_lift_ind,gujiajiladderjiactval,to_char(anc_tm,'yyyy-mm-dd') as anc_tm,to_char(exdat,'yyyy-mm-dd') as exdat,gujia_wthr_strt_ind,gujia_hs_src_dtsrc,intr_co_id,intr_co_nm,gujia_anc_psn,gujia_anc_psn_tel,gujia_dsc_inf_cntnt,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_apd_inf " +
|
||||
def sql2 = "select urbn_id,gujia_sell_id,gujia_listg_hs_id,urbn_nm,gujia_admndiv_id,gujia_admndiv_nm,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_bds_unitprc,gujia_bds_tot_prc,gujia_sell_pymtmod,gujia_bds_wbt_floor,gujiabdstot_floor_num,gujia_bld_tp_val,gujia_indr_stc_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_twrd_val,gujia_dcrt_sttn,gujiawthrext_lift_ind,gujiajiladderjiactval,to_char(anc_tm,'yyyy-mm-dd') as anc_tm,to_char(exdat,'yyyy-mm-dd') as exdat,gujia_wthr_strt,gujia_hs_src_dtsrc,intr_co_id,intr_co_nm,gujia_anc_psn,gujia_anc_psn_tel,gujia_dsc_inf_cntnt,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_apd_inf " +
|
||||
"from "+database+".t0831_bigdata_forsale_gj_h where gujia_admndiv_id in ${newstr}"
|
||||
def rets2 = getHouseDatas(sql2)
|
||||
if(rets2.size()>0){
|
||||
@@ -541,16 +541,15 @@ class ExportPgsqlBaseEvaluation {
|
||||
}
|
||||
}
|
||||
println "BIGDATA_FORSALE_GJ 数据文件输出完成......"
|
||||
CcbFtpUtils.ftpUpload(null, fileName, curDate)
|
||||
CcbFtpTestUtils.ftpUpload(null, fileName, curDate)
|
||||
println "BIGDATA_FORSALE_GJ 上传Ftp完成......"
|
||||
}
|
||||
|
||||
def getHouseDatas(sql){
|
||||
def allRows = []
|
||||
def index = 0
|
||||
sqlInstance.eachRow(sql,{r->
|
||||
pgsqlInstance.eachRow(sql,{r->
|
||||
index = index+1
|
||||
println r.urbn_nm +" "+index
|
||||
def data = []
|
||||
data << r.urbn_id
|
||||
data << r.gujia_sell_id
|
||||
@@ -568,31 +567,31 @@ class ExportPgsqlBaseEvaluation {
|
||||
data << r.gujia_unit_nm
|
||||
data << r.gujia_acc_id
|
||||
data << r.gujia_dtl_adr
|
||||
data << r.gujia_bld_yr_rc
|
||||
data << r.gujia_bds_bld_yr_rc
|
||||
data << r.gujia_own_val
|
||||
data << r.gujia_own_yrlmt_val
|
||||
data << r.gujia_unitprc
|
||||
data << r.gujia_tot_prc
|
||||
data << r.gujia_bds_unitprc
|
||||
data << r.gujia_bds_tot_prc
|
||||
data << r.gujia_sell_pymtmod
|
||||
data << r.gujia_wbt_floor
|
||||
data << r.gujia_tot_floor_num
|
||||
data << r.gujia_bds_wbt_floor
|
||||
data << r.gujiabdstot_floor_num
|
||||
data << r.gujia_bld_tp_val
|
||||
data << r.gujia_indr_stc_val
|
||||
data << r.gujia_bld_stc
|
||||
data << r.gujiaconstructionarea
|
||||
data << r.gujia_set_innr_area
|
||||
data << r.guiabconstructionarea
|
||||
data << r.gujiabdsset_innr_area
|
||||
data << r.gujia_acc_tp_val
|
||||
data << r.gujia_room
|
||||
data << r.gujia_dept
|
||||
data << r.gujia_ktch_num
|
||||
data << r.gujia_toliet
|
||||
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_twrd_val
|
||||
data << r.gujia_dcrt_sttn
|
||||
data << r.gujiawthrext_lift_ind
|
||||
data << r.gujiajiladderjiactval
|
||||
data << r.anc_tm
|
||||
data << r.exdat
|
||||
data << r.gujia_wthr_strt_ind
|
||||
data << r.gujia_wthr_strt
|
||||
data << r.gujia_hs_src_dtsrc
|
||||
data << r.intr_co_id
|
||||
data << r.intr_co_nm
|
||||
@@ -617,7 +616,7 @@ class ExportPgsqlBaseEvaluation {
|
||||
def createFileToFtp(tableName,allRows, fileName, curDate, isAppend){
|
||||
FileUtils.batchCreateFile(allRows, fileName, [], "utf-8", isAppend);
|
||||
println tableName+" 数据文件输出完成......"
|
||||
// CcbFtpUtils.ftpUpload(null, fileName, curDate)
|
||||
// println tableName+" 上传Ftp完成......"
|
||||
CcbFtpTestUtils.ftpUpload(null, fileName, curDate)
|
||||
println tableName+" 上传Ftp完成......"
|
||||
}
|
||||
}
|
||||
|
||||
+166
-105
@@ -1,8 +1,10 @@
|
||||
package com.fangjia.script.ccbevaluation.pgsql
|
||||
|
||||
import com.fangjia.script.ccbevaluation.CcbCommonUtils
|
||||
import com.fangjia.script.ccbevaluation.CcbFtpTestUtils
|
||||
import com.fangjia.script.ccbevaluation.CcbFtpUtils
|
||||
import com.fangjia.script.ccbevaluation.ronghe.SSHHelper
|
||||
import com.fangjia.script.ccbevaluation.ronghe.SSHHelperTest
|
||||
import com.fangjia.script.commData.CommonDatautils
|
||||
import com.fangjia.script.gj.ccb.FileUtils
|
||||
import com.fangjia.script.util.DateUtils
|
||||
@@ -12,7 +14,7 @@ import org.apache.commons.codec.digest.DigestUtils
|
||||
|
||||
class ExportPgsqlEvaluationResult {
|
||||
|
||||
def sqlInstance = Sql.newInstance("jdbc:postgresql://192.168.0.236:5432/postgres",
|
||||
def pgsqlInstance = Sql.newInstance("jdbc:postgresql://192.168.0.236:5432/warehouse",
|
||||
"postgres", "postgres", "org.postgresql.Driver")
|
||||
def citys = null
|
||||
def cityCodeMap = CcbCommonUtils.findCityCodeValue()
|
||||
@@ -32,24 +34,23 @@ class ExportPgsqlEvaluationResult {
|
||||
def curMonth = Integer.parseInt(DateUtils.addMonth(DateUtils.formatDateByPattern(new Date(), "yyyyMM"), 0, "yyyyMM"));
|
||||
|
||||
//计算结果相关
|
||||
// exportAvmEvaluationGJNB(curMonth)
|
||||
// exportAVMEvaluationItemGJNB(curMonth)
|
||||
exportAvmEvaluationGJNB(curMonth)
|
||||
exportAVMEvaluationItemGJNB(curMonth)
|
||||
|
||||
exportCityPrice(curMonth)
|
||||
exportRegionPrice(curMonth)
|
||||
|
||||
exportCommunityBasePrice(curMonth)
|
||||
// exportCommunityBasePrice1(curMonth)
|
||||
|
||||
exportCommunityPdescribeGj(curMonth)
|
||||
exportCommCaseDetailGj(curMonth)
|
||||
//
|
||||
// exportCityPrice(curMonth)
|
||||
// exportRegionPrice(curMonth)
|
||||
exportInOk()
|
||||
//
|
||||
// exportCommunityBasePrice(curMonth)
|
||||
//
|
||||
// exportCommunityPdescribeGj(curMonth)
|
||||
// exportCommCaseDetailGj(curMonth)
|
||||
//
|
||||
def curDate = curMonth.toString()+"28"
|
||||
// Éú³ÉMD5Îļþ
|
||||
exportMd5()
|
||||
SSHHelper jschCommand = new SSHHelper();
|
||||
System.out.println(jschCommand.executeCommand("sh /home/ccb/output/gz_package.sh ${curDate}"));
|
||||
// okÎļþ
|
||||
exportOkFile()
|
||||
SSHHelperTest jschCommand = new SSHHelperTest();
|
||||
System.out.println(jschCommand.executeCommand("sh /home/ccb_evaluation/output/eval_package.sh ${curDate}"));
|
||||
|
||||
}
|
||||
|
||||
def exportAvmEvaluationGJNB(yearMonth){
|
||||
@@ -57,36 +58,36 @@ class ExportPgsqlEvaluationResult {
|
||||
def allRows = []
|
||||
for(def city : citys) {
|
||||
def cityCode = cityCodeMap.get(city)
|
||||
def sql = "select gujia_fsid,urbn_id,urbn_nm,gujia_yrmo,gujia_comm_num,gujia_val_comm_num,gujia_prc_cvr_rate,gujiamnldrcprccommnum,gujia_mnl_drc_prc_pct,gujia_samp_comm_num,gujiaext_samp_clc_pct,gujianervethruncomnum,gujianervethrunclcpct,gujia_tst_case_num,gujia_tst_comm_num,gujiatst_comm_num_pct,gujia_ppe15_cvr_rate,gujia_rto_mdn,gujia_rto_lv_san_ceft,gujiamdl_tst_case_num,gujiamdl_tst_comm_num,gujiamdltstcommnumpct,gujiamdltst_ppe15_pct,gujiamdlrtolvsan_ceft,gujia_mdl_md_bit_rto,gujiatrdpttstcase_num,gujiatrdpttstcomm_num,gujiatrdpttcommnumpct,gujiatrdpttstppe15pct,gujiatrdptrolvsanceft,gujiatrdpt_md_bit_rto,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 from "+database+"avm_evaluation_gj_h where gujia_yrmo = ${yearMonth} and urbn_id='${cityCode}'";
|
||||
sqlInstance.eachRow(sql, { r ->
|
||||
def sql = "select gujia_fsid,urbn_id,urbn_nm,gujia_bds_yrmo,gujia_bds_comm_num,gujiabdsvalmnycommnum,gujia_prc_cvr_rate,gujiabdsmnldpccommnum,gujia_mnl_drc_prc_pct,gujiabdssamp_comm_num,gujiaext_samp_clc_pct,gujiabdsnervetncomnum,gujianervethrunclcpct,gujiabds_tst_case_num,gujiabds_tst_comm_num,gujiatst_comm_num_pct,gujia_ppe15_cvr_rate,gujia_rto_mdn,gujia_rto_lv_san_ceft,gujiabdsmdltstcasenum,gujiabdsmdltstcommnum,gujiamdltstcommnumpct,gujiamdltst_ppe15_pct,gujiamdlrtolvsan_ceft,gujia_mdl_md_bit_rto,gujiabdstrdpttcasenum,gujiabdstrdpttcommnum,gujiatrdpttcommnumpct,gujiatrdpttstppe15pct,gujiatrdptrolvsanceft,gujiatrdpt_md_bit_rto,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 from "+database+"avm_evaluation_gj_h where gujia_bds_yrmo = ${yearMonth} and urbn_id='${cityCode}'";
|
||||
pgsqlInstance.eachRow(sql, { r ->
|
||||
def data = []
|
||||
data << r.gujia_fsid
|
||||
data << r.urbn_id
|
||||
data << r.urbn_nm
|
||||
data << r.gujia_yrmo
|
||||
data << r.gujia_comm_num
|
||||
data << r.gujia_val_comm_num
|
||||
data << r.gujia_bds_yrmo
|
||||
data << r.gujia_bds_comm_num
|
||||
data << r.gujiabdsvalmnycommnum
|
||||
data << r.gujia_prc_cvr_rate
|
||||
data << r.gujiamnldrcprccommnum
|
||||
data << r.gujiabdsmnldpccommnum
|
||||
data << r.gujia_mnl_drc_prc_pct
|
||||
data << r.gujia_samp_comm_num
|
||||
data << r.gujiabdssamp_comm_num
|
||||
data << r.gujiaext_samp_clc_pct
|
||||
data << r.gujianervethruncomnum
|
||||
data << r.gujiabdsnervetncomnum
|
||||
data << r.gujianervethrunclcpct
|
||||
data << r.gujia_tst_case_num
|
||||
data << r.gujia_tst_comm_num
|
||||
data << r.gujiabds_tst_case_num
|
||||
data << r.gujiabds_tst_comm_num
|
||||
data << r.gujiatst_comm_num_pct
|
||||
data << r.gujia_ppe15_cvr_rate
|
||||
data << r.gujia_rto_mdn
|
||||
data << r.gujia_rto_lv_san_ceft
|
||||
data << r.gujiamdl_tst_case_num
|
||||
data << r.gujiamdl_tst_comm_num
|
||||
data << r.gujiabdsmdltstcasenum
|
||||
data << r.gujiabdsmdltstcommnum
|
||||
data << r.gujiamdltstcommnumpct
|
||||
data << r.gujiamdltst_ppe15_pct
|
||||
data << r.gujiamdlrtolvsan_ceft
|
||||
data << r.gujia_mdl_md_bit_rto
|
||||
data << r.gujiatrdpttstcase_num
|
||||
data << r.gujiatrdpttstcomm_num
|
||||
data << r.gujiabdstrdpttcasenum
|
||||
data << r.gujiabdstrdpttcommnum
|
||||
data << r.gujiatrdpttcommnumpct
|
||||
data << r.gujiatrdpttstppe15pct
|
||||
data << r.gujiatrdptrolvsanceft
|
||||
@@ -115,8 +116,8 @@ class ExportPgsqlEvaluationResult {
|
||||
|
||||
for(def city : citys) {
|
||||
def cityCode = cityCodeMap.get(city)
|
||||
def sql = "select gujia_fsid,urbn_id,urbn_nm,gujia_rgon_id,gujia_rgon_nm,gujia_comm_id,gujia_comm_nm,gujia_clc_yrmo,gujia_clc_avprc,gujia_avprc,gujia_clc_tp_val,gujia_rlb,gujia_to_mkprc_mny, to_char(mdl_dt,'yyyy-mm-dd') as mdl_dt,gujia_valt_unitprc,gujia_area,gujia_dcrt_val,gujia_twrd_val,gujia_wbt_floor,gujia_tot_floor,gujia_data_tp,gujia_rto,gujia_mns_rto, to_char(data_crt_tm,'yyyy-mm-dd hh24:mi:ss') as data_crt_tm from "+database+"avm_evaluation_item_gj_h where gujia_clc_yrmo = ${yearMonth} AND urbn_id='${cityCode}'";
|
||||
sqlInstance.eachRow(sql, { r ->
|
||||
def sql = "select gujia_fsid,urbn_id,urbn_nm,gujia_rgon_id,gujia_rgon_nm,gujia_comm_id,gujia_comm_nm,gujiabds_clc_yrmo_val,gujia_bds_clc_avprc,gujia_bds_avprc,gujia_bds_clc_tp,gujia_bds_rlb,gujiabds_to_mkprc_mny,to_char(mdl_dt,'yyyy-mm-dd') as mdl_dt,gujiabds_valt_unitprc,gujia_area,gujia_dcrt_val,gujia_twrd_val,gujia_bds_floor_num,gujiabdstot_floor_num,gujia_data_tp,gujia_rto,gujia_mns_rto,to_char(data_crt_tm,'yyyy-mm-dd hh24:mi:ss') AS data_crt_tm from "+database+"avm_evaluation_item_gj_h where gujiabds_clc_yrmo_val = ${yearMonth} AND urbn_id='${cityCode}'";
|
||||
pgsqlInstance.eachRow(sql, { r ->
|
||||
def data = []
|
||||
data << r.gujia_fsid
|
||||
data << r.urbn_id
|
||||
@@ -125,19 +126,19 @@ class ExportPgsqlEvaluationResult {
|
||||
data << r.gujia_rgon_nm
|
||||
data << r.gujia_comm_id
|
||||
data << r.gujia_comm_nm
|
||||
data << r.gujia_clc_yrmo
|
||||
data << r.gujia_clc_avprc
|
||||
data << r.gujia_avprc
|
||||
data << r.gujia_clc_tp_val
|
||||
data << r.gujia_rlb
|
||||
data << r.gujia_to_mkprc_mny
|
||||
data << r.gujiabds_clc_yrmo_val
|
||||
data << r.gujia_bds_clc_avprc
|
||||
data << r.gujia_bds_avprc
|
||||
data << r.gujia_bds_clc_tp
|
||||
data << r.gujia_bds_rlb
|
||||
data << r.gujiabds_to_mkprc_mny
|
||||
data << r.mdl_dt
|
||||
data << r.gujia_valt_unitprc
|
||||
data << r.gujiabds_valt_unitprc
|
||||
data << r.gujia_area
|
||||
data << r.gujia_dcrt_val
|
||||
data << r.gujia_twrd_val
|
||||
data << r.gujia_wbt_floor
|
||||
data << r.gujia_tot_floor
|
||||
data << r.gujia_bds_floor_num
|
||||
data << r.gujiabdstot_floor_num
|
||||
data << r.gujia_data_tp
|
||||
data << r.gujia_rto
|
||||
data << r.gujia_mns_rto
|
||||
@@ -161,15 +162,15 @@ class ExportPgsqlEvaluationResult {
|
||||
def allRows = []
|
||||
for(def city : citys) {
|
||||
def cityCode = cityCodeMap.get(city)
|
||||
def sql = "select gujia_trdpt_avprc_id,urbn_id,urbn_nm,gujia_clc_yrmo,gujia_clc_avprc,gujia_urbn_avprc,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 from "+database+"avm_city_price_gj_h where gujia_clc_yrmo=${month} AND urbn_id='${cityCode}'";
|
||||
sqlInstance.eachRow(sql, { r ->
|
||||
def sql = "select gujia_trdpt_avprc_id,urbn_id,urbn_nm,gujiabds_clc_yrmo_val,gujia_bds_clc_avprc,gujia_bds_urbn_avprc,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 from "+database+"avm_city_price_gj_h where gujiabds_clc_yrmo_val=${month} AND urbn_id='${cityCode}'";//
|
||||
pgsqlInstance.eachRow(sql, { r ->
|
||||
def data = []
|
||||
data << r.gujia_trdpt_avprc_id
|
||||
data << r.urbn_id
|
||||
data << r.urbn_nm
|
||||
data << r.gujia_clc_yrmo
|
||||
data << r.gujia_clc_avprc
|
||||
data << r.gujia_urbn_avprc
|
||||
data << r.gujiabds_clc_yrmo_val
|
||||
data << r.gujia_bds_clc_avprc
|
||||
data << r.gujia_bds_urbn_avprc
|
||||
data << r.data_crt_tm
|
||||
data << r.data_udt_tm
|
||||
data << r.gujia_src_co
|
||||
@@ -188,18 +189,18 @@ class ExportPgsqlEvaluationResult {
|
||||
def allRows = []
|
||||
for(def city : citys) {
|
||||
def cityCode = cityCodeMap.get(city)
|
||||
def sql = "select gujia_trdpt_avprc_id,urbn_id,urbn_nm,gujia_admndiv_id,gxda_admndiv_nm,gujia_clc_yrmo,gujia_clc_avprc,gujia_urbn_avprc,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 from "+database+"avm_district_price_gj_h where gujia_clc_yrmo=${month} AND urbn_id='${cityCode}'";
|
||||
def sql = "select gujia_trdpt_avprc_id,urbn_id,urbn_nm,gujia_admndiv_id,gxda_admndiv_nm,gujiabds_clc_yrmo_val,gujia_bds_clc_avprc,gujia_bds_urbn_avprc,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 from "+database+"avm_district_price_gj_h where gujiabds_clc_yrmo_val=${month} AND urbn_id='${cityCode}'"; //
|
||||
|
||||
sqlInstance.eachRow(sql, { r ->
|
||||
pgsqlInstance.eachRow(sql, { r ->
|
||||
def data = []
|
||||
data << r.gujia_trdpt_avprc_id
|
||||
data << r.urbn_id
|
||||
data << r.urbn_nm
|
||||
data << r.gujia_admndiv_id
|
||||
data << r.gxda_admndiv_nm
|
||||
data << r.gujia_clc_yrmo
|
||||
data << r.gujia_clc_avprc
|
||||
data << r.gujia_urbn_avprc
|
||||
data << r.gujiabds_clc_yrmo_val
|
||||
data << r.gujia_bds_clc_avprc
|
||||
data << r.gujia_bds_urbn_avprc
|
||||
data << r.data_crt_tm
|
||||
data << r.data_udt_tm
|
||||
data << r.gujia_src_co
|
||||
@@ -219,8 +220,8 @@ class ExportPgsqlEvaluationResult {
|
||||
def allRows = []
|
||||
for(def city : citys) {
|
||||
def cityCode = cityCodeMap.get(city)
|
||||
def sql = "select gujia_bss_prc_id,urbn_id,urbn_nm,gujia_admndiv_id,gujia_admndiv_nm,gujia_bds_id,comm_nm,gujia_clc_yrmo,gujia_clc_avprc,gujia_comm_basic_prc,gujia_clmtd_val,gujia_fwd_samp_rto,gujia_mns_grd,gujia_cfdrg,gujiaarndcommprc_crlt,gujia_cfdc_dgr_val,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 from "+database+"avm_community_base_price_gj_h where gujia_clc_yrmo=${yearMonth} AND urbn_id='${cityCode}'";
|
||||
sqlInstance.eachRow(sql, { r ->
|
||||
def sql = "select gujia_bss_prc_id,urbn_id,urbn_nm,gujia_admndiv_id,gujia_admndiv_nm,gujia_bds_id,comm_nm,gujiabds_clc_yrmo_val,gujia_bds_clc_avprc,gujia_comm_basic_prc,gujia_bds_clmtd,gujiabds_fwd_samp_rto,gujia_bds_mns_grd,gujia_bds_cfdrg,gujiabdsarndcmprccrlt,gujia_bds_cfdc_dgr,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 from "+database+"avm_community_base_price_gj_h where gujiabds_clc_yrmo_val=${yearMonth} AND urbn_id='${cityCode}'";//
|
||||
pgsqlInstance.eachRow(sql, { r ->
|
||||
def data = []
|
||||
data << r.gujia_bss_prc_id
|
||||
data << r.urbn_id
|
||||
@@ -229,19 +230,20 @@ class ExportPgsqlEvaluationResult {
|
||||
data << r.gujia_admndiv_nm
|
||||
data << r.gujia_bds_id
|
||||
data << r.comm_nm
|
||||
data << r.gujia_clc_yrmo
|
||||
data << r.gujia_clc_avprc
|
||||
data << r.gujiabds_clc_yrmo_val
|
||||
data << r.gujia_bds_clc_avprc
|
||||
data << r.gujia_comm_basic_prc
|
||||
data << r.gujia_clmtd_val
|
||||
data << r.gujia_fwd_samp_rto
|
||||
data << r.gujia_mns_grd
|
||||
data << r.gujia_cfdrg
|
||||
data << r.gujiaarndcommprc_crlt
|
||||
data << r.gujia_cfdc_dgr_val
|
||||
data << r.gujia_bds_clmtd
|
||||
data << r.gujiabds_fwd_samp_rto
|
||||
data << r.gujia_bds_mns_grd
|
||||
data << r.gujia_bds_cfdrg
|
||||
data << r.gujiabdsarndcmprccrlt
|
||||
data << r.gujia_bds_cfdc_dgr
|
||||
data << r.data_crt_tm
|
||||
data << r.data_udt_tm
|
||||
data << r.gujia_src_co
|
||||
allRows << data
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
@@ -255,6 +257,53 @@ class ExportPgsqlEvaluationResult {
|
||||
createFileToFtp("COMMUNITY_BASE_PRICE_GJ",allRows, fileName1, curDate, false)
|
||||
}
|
||||
|
||||
|
||||
def exportCommunityBasePrice1(yearMonth){
|
||||
|
||||
def fileName1 = linux_prefix + "MODEL_000000_000000_COMMUNITY_BASE_PRICE_GJ_ADD_${curDate}_0001.dat"
|
||||
if(CommonDatautils.isWindow()){
|
||||
fileName1 = win_prefix + "MODEL_000000_000000_COMMUNITY_BASE_PRICE_GJ_ADD_${curDate}_0001.dat"
|
||||
}
|
||||
|
||||
def allRows = []
|
||||
for(def city : citys) {
|
||||
def cityCode = cityCodeMap.get(city)
|
||||
def sql = "select gujia_bss_prc_id,urbn_id,urbn_nm,gujia_admndiv_id,gujia_admndiv_nm,gujia_bds_id,comm_nm,gujiabds_clc_yrmo_val,gujia_bds_clc_avprc,gujia_comm_basic_prc,gujia_bds_clmtd,gujiabds_fwd_samp_rto,gujia_bds_mns_grd,gujia_bds_cfdrg,gujiabdsarndcmprccrlt,gujia_bds_cfdc_dgr,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 from "+database+"avm_community_base_price_gj_h where urbn_id='${cityCode}'";//gujiabds_clc_yrmo_val=${yearMonth} AND
|
||||
pgsqlInstance.eachRow(sql, { r ->
|
||||
def data = []
|
||||
data << r.gujia_bss_prc_id
|
||||
data << r.urbn_id
|
||||
data << r.urbn_nm
|
||||
data << r.gujia_admndiv_id
|
||||
data << r.gujia_admndiv_nm
|
||||
data << r.gujia_bds_id
|
||||
data << r.comm_nm
|
||||
data << r.gujiabds_clc_yrmo_val
|
||||
data << r.gujia_bds_clc_avprc
|
||||
data << r.gujia_comm_basic_prc
|
||||
data << r.gujia_bds_clmtd
|
||||
data << r.gujiabds_fwd_samp_rto
|
||||
data << r.gujia_bds_mns_grd
|
||||
data << r.gujia_bds_cfdrg
|
||||
data << r.gujiabdsarndcmprccrlt
|
||||
data << r.gujia_bds_cfdc_dgr
|
||||
data << r.data_crt_tm
|
||||
data << r.data_udt_tm
|
||||
data << r.gujia_src_co
|
||||
allRows << data
|
||||
|
||||
if(allRows.size()%200000==0){
|
||||
FileUtils.batchCreateFile(allRows, fileName1, [], "utf-8", true);
|
||||
allRows.clear()
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if(allRows.size()>0){
|
||||
FileUtils.batchCreateFile(allRows, fileName1, [], "utf-8", true);
|
||||
}
|
||||
}
|
||||
|
||||
def exportCommunityPdescribeGj(month){
|
||||
|
||||
def fileName = linux_prefix + "MODEL_000000_000000_COMMUNITY_P_DESCRIBE_GJ_ADD_${curDate}_0001.dat"
|
||||
@@ -264,9 +313,9 @@ class ExportPgsqlEvaluationResult {
|
||||
def allRows = []
|
||||
for(def city : citys) {
|
||||
def cityCode = cityCodeMap.get(city)
|
||||
def sql = "select gujia_fsid,gujia_comm_id,urbn_id,urbn_nm,admndiv_ecd,gujia_admndiv_nm,comm_nm,gujia_als_dsc,gujia_bss_prc,gujia_cfdc_dgr_grd,gujiart3mlistgcasenum,gujialistgcaselwstprc,gujialistgcase_md_val,gujia_listg_case_avg,gujialistgcasemax_prc,gujiaavprc_crpnd_s_mo,gujiaavgwithminvalavg,gujiaavgwithmaxvalavg,gujia_rel_err,gujia_dvtdgr_dsc,gujia_als_prc_rng,gujiaprcminandmax_rng,gujia_dsc,gujia_lmth_bss_prc,gujia_wthr_mnl_ind,gujia_lmth_fnl_prc,to_char(data_crt_tm,'yyyy-mm-dd hh24:mi:ss') as data_crt_tm,gujianervethruntw_prc,gujia_prc_src,gujiaabtjanlcmdbitval,gujiaabtjanligcaseavg,gujia_indx_lbl,gujia_prim_pty_tp,gujia_comm_tp_val,gujia_ltst_mdl_prc,to_char(gujia_ltst_mdl_dt,'yyyy-mm-dd') as gujia_ltst_mdl_dt,gujia_idxn_mo_moonmo,gujiaabt1yiminmmoonmo,gujia_idxn_yr_moonmo,gujiaabt1yr_samp_scvl,gujiaarnd1kscommavprc from "+database+"avm_community_p_describe_gj_h where gujiaavprc_crpnd_s_mo=${month} AND urbn_id='${cityCode}'";
|
||||
def sql = "select gujia_fsid,gujia_comm_id,urbn_id,urbn_nm,admndiv_ecd,gujia_admndiv_nm,comm_nm,gujia_als_dsc,gujia_bds_bss_prc,gujiabds_cfdc_dgr_grd,gujiabdsrt3mlgcasenum,gujiabdslistgclwstprc,gujiabdslistgcaemdval,gujiabdslistgcase_avg,gujiabdslistgcemaxprc,gujia_bds_mo_val,gujiabdsavgwminvalavg,gujiabdsavgwmaxvalavg,gujia_bds_rel_err_val,gujia_dvtdgr_dsc,gujia_als_prc_rng,gujiaprcminandmax_rng,gujia_dsc,gujiabds_lmth_bss_prc,gujiabds_wthr_mnl_val,gujiabds_lmth_fnl_prc,to_char(data_crt_tm,'yyyy-mm-dd') as data_crt_tm,gujiabdsnervetuntwprc,gujia_prc_src,gujiabdsabtjlcmbitval,gujiabdsabtjlgcaseavg,gujia_indx_lbl,gujia_prim_pty_tp,gujia_comm_tp_val,gujiabds_ltst_mdl_prc,to_char(gujia_ltst_mdl_dt,'yyyy-mm-dd') as gujia_ltst_mdl_dt,gujiabdsidxnmo_moonmo,gujiabdsa1yiminmmonmo,gujiabdsidxnyr_moonmo,gujiabdsat1yspdgrscor,gujiabdsarnd1kscavprc from "+database+"avm_community_p_describe_gj_h where gujia_bds_mo_val=${month} AND urbn_id='${cityCode}'";
|
||||
|
||||
sqlInstance.eachRow(sql, { r ->
|
||||
pgsqlInstance.eachRow(sql, { r ->
|
||||
def data = []
|
||||
data << r.gujia_fsid
|
||||
data << r.gujia_comm_id
|
||||
@@ -276,39 +325,39 @@ class ExportPgsqlEvaluationResult {
|
||||
data << r.gujia_admndiv_nm
|
||||
data << r.comm_nm
|
||||
data << r.gujia_als_dsc
|
||||
data << r.gujia_bss_prc
|
||||
data << r.gujia_cfdc_dgr_grd
|
||||
data << r.gujiart3mlistgcasenum
|
||||
data << r.gujialistgcaselwstprc
|
||||
data << r.gujialistgcase_md_val
|
||||
data << r.gujia_listg_case_avg
|
||||
data << r.gujialistgcasemax_prc
|
||||
data << r.gujiaavprc_crpnd_s_mo
|
||||
data << r.gujiaavgwithminvalavg
|
||||
data << r.gujiaavgwithmaxvalavg
|
||||
data << r.gujia_rel_err
|
||||
data << r.gujia_bds_bss_prc
|
||||
data << r.gujiabds_cfdc_dgr_grd
|
||||
data << r.gujiabdsrt3mlgcasenum
|
||||
data << r.gujiabdslistgclwstprc
|
||||
data << r.gujiabdslistgcaemdval
|
||||
data << r.gujiabdslistgcase_avg
|
||||
data << r.gujiabdslistgcemaxprc
|
||||
data << r.gujia_bds_mo_val
|
||||
data << r.gujiabdsavgwminvalavg
|
||||
data << r.gujiabdsavgwmaxvalavg
|
||||
data << r.gujia_bds_rel_err_val
|
||||
data << r.gujia_dvtdgr_dsc
|
||||
data << r.gujia_als_prc_rng
|
||||
data << r.gujiaprcminandmax_rng
|
||||
data << r.gujia_dsc
|
||||
data << r.gujia_lmth_bss_prc
|
||||
data << r.gujia_wthr_mnl_ind
|
||||
data << r.gujia_lmth_fnl_prc
|
||||
data << r.gujiabds_lmth_bss_prc
|
||||
data << r.gujiabds_wthr_mnl_val
|
||||
data << r.gujiabds_lmth_fnl_prc
|
||||
data << r.data_crt_tm
|
||||
data << r.gujianervethruntw_prc
|
||||
data << r.gujiabdsnervetuntwprc
|
||||
data << r.gujia_prc_src
|
||||
data << r.gujiaabtjanlcmdbitval
|
||||
data << r.gujiaabtjanligcaseavg
|
||||
data << r.gujiabdsabtjlcmbitval
|
||||
data << r.gujiabdsabtjlgcaseavg
|
||||
data << r.gujia_indx_lbl
|
||||
data << r.gujia_prim_pty_tp
|
||||
data << r.gujia_comm_tp_val
|
||||
data << r.gujia_ltst_mdl_prc
|
||||
data << r.gujiabds_ltst_mdl_prc
|
||||
data << r.gujia_ltst_mdl_dt
|
||||
data << r.gujia_idxn_mo_moonmo
|
||||
data << r.gujiaabt1yiminmmoonmo
|
||||
data << r.gujia_idxn_yr_moonmo
|
||||
data << r.gujiaabt1yr_samp_scvl
|
||||
data << r.gujiaarnd1kscommavprc
|
||||
data << r.gujiabdsidxnmo_moonmo
|
||||
data << r.gujiabdsa1yiminmmonmo
|
||||
data << r.gujiabdsidxnyr_moonmo
|
||||
data << r.gujiabdsat1yspdgrscor
|
||||
data << r.gujiabdsarnd1kscavprc
|
||||
allRows << data
|
||||
});
|
||||
}
|
||||
@@ -322,27 +371,26 @@ class ExportPgsqlEvaluationResult {
|
||||
}
|
||||
for(def city : citys){
|
||||
def cityCode = cityCodeMap.get(city)
|
||||
def sql = "select gujia_fsid, urbn_id, gujia_comm_id, gujia_case_id,crterm,to_char(data_crt_tm,'yyyy-mm-dd') as data_crt_tm from "+database+"avm_comm_case_detail_gj_h where urbn_id='${cityCode}' and crterm=${month}";
|
||||
def sql = "select gujia_fsid, urbn_id, gujia_comm_id, gujia_case_id,gujia_bds_crterm,to_char(data_crt_tm,'yyyy-mm-dd') as data_crt_tm from "+database+"avm_comm_case_detail_gj_h where urbn_id='${cityCode}' and gujia_bds_crterm=${month}";
|
||||
def allRows = []
|
||||
sqlInstance.eachRow(sql,{r->
|
||||
pgsqlInstance.eachRow(sql,{r->
|
||||
def data = []
|
||||
data << r.gujia_fsid
|
||||
data << r.urbn_id
|
||||
data << r.gujia_comm_id
|
||||
data << r.gujia_case_id
|
||||
data << r.crterm
|
||||
data << r.gujia_bds_crterm
|
||||
data << r.data_crt_tm
|
||||
allRows << data
|
||||
if(allRows.size()%200000==0){
|
||||
FileUtils.batchCreateFile(allRows, fileName, [], "utf-8", true);
|
||||
allRows.clear()
|
||||
}
|
||||
// if(allRows.size()%200000==0){
|
||||
// FileUtils.batchCreateFile(allRows, fileName, [], "utf-8", true);
|
||||
// allRows.clear()
|
||||
// }
|
||||
});
|
||||
if(allRows.size()>0){
|
||||
FileUtils.batchCreateFile(allRows, fileName, [], "utf-8", true);
|
||||
}
|
||||
|
||||
FileUtils.batchCreateFile(allRows, fileName, [], "utf-8", false);
|
||||
}
|
||||
CcbFtpUtils.ftpUpload(null, fileName, curDate)
|
||||
CcbFtpTestUtils.ftpUpload(null, fileName, curDate)
|
||||
}
|
||||
|
||||
def exportMd5(){
|
||||
@@ -363,20 +411,33 @@ class ExportPgsqlEvaluationResult {
|
||||
}
|
||||
|
||||
|
||||
def exportOkFile(){
|
||||
def dataCodeFileName = linux_prefix + "${curDate}.ok"
|
||||
if(CommonDatautils.isWindow()){
|
||||
dataCodeFileName = win_prefix + "${curDate}.ok"
|
||||
def exportInOk(){
|
||||
Vector files = CcbFtpTestUtils.listFileNames(null, curDate)
|
||||
Iterator fileVec = files.iterator()
|
||||
def fileRows = []
|
||||
while(fileVec.hasNext()){
|
||||
ChannelSftp.LsEntry file = fileVec.next()
|
||||
|
||||
if(org.apache.commons.lang.StringUtils.isNotBlank(file.getFilename()) && file.getFilename().endsWith(".dat")){
|
||||
fileRows << file.getFilename() +" "+CcbFtpTestUtils.getFileLength(null, file.getFilename(), curDate)
|
||||
}
|
||||
}
|
||||
createFileToFtp("ok txt", [], dataCodeFileName, curDate, false)
|
||||
def fileName = linux_prefix + "/${curDate}.ok"
|
||||
if(CommonDatautils.isWindow()){
|
||||
fileName = win_prefix + "${curDate}.ok"
|
||||
}
|
||||
|
||||
FileUtils.createTxtFile(fileRows, fileName, "utf-8", false);
|
||||
CcbFtpTestUtils.ftpUpload(null, fileName, curDate)
|
||||
println "okÎļþÉÏ´«FtpÍê³É......"
|
||||
}
|
||||
|
||||
|
||||
def createFileToFtp(tableName,allRows, fileName, curDate, isAppend){
|
||||
FileUtils.batchCreateFile(allRows, fileName, [], "utf-8", isAppend);
|
||||
println tableName+" 数据文件输出完成......"
|
||||
CcbFtpUtils.ftpUpload(null, fileName, curDate)
|
||||
// println tableName+" ÉÏ´«FtpÍê³É......"
|
||||
CcbFtpTestUtils.ftpUpload(null, fileName, curDate)
|
||||
println tableName+" ÉÏ´«FtpÍê³É......"
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+604
@@ -1,14 +1,618 @@
|
||||
package com.fangjia.script.ccbevaluation.pgsql
|
||||
|
||||
import com.fangjia.script.ccbevaluation.CcbCommonUtils
|
||||
import com.fangjia.script.ccbevaluation.CcbFtpTestUtils
|
||||
import com.fangjia.script.ccbevaluation.CcbFtpUtils
|
||||
import com.fangjia.script.ccbevaluation.ronghe.SSHHelperTest
|
||||
import com.fangjia.script.commData.CommonDatautils
|
||||
import com.fangjia.script.gj.ccb.FileUtils
|
||||
import com.fangjia.script.util.DateUtils
|
||||
import com.jcraft.jsch.ChannelSftp
|
||||
import groovy.sql.Sql
|
||||
|
||||
class ExportPgsqlRonghe {
|
||||
|
||||
def sqlInstance = Sql.newInstance("jdbc:postgresql://192.168.0.236:5432/postgres",
|
||||
"postgres", "postgres", "org.postgresql.Driver")
|
||||
|
||||
def citys = []
|
||||
|
||||
def database = "base."
|
||||
def cityCodeMap = CcbCommonUtils.findCityCodeValue()
|
||||
|
||||
def curDate = DateUtils.formatDateByPattern(new Date()+1, "yyyyMMdd")
|
||||
def linux_prefix = "/ccb_ronghe/${curDate}/"
|
||||
def win_prefix = "D:\\数据\\建行\\房产估值\\数据文件\\txt\\ccb_ronghe\\${curDate}\\"
|
||||
|
||||
static main(args) {
|
||||
def task = new ExportPgsqlRonghe()
|
||||
task.run(args)
|
||||
}
|
||||
|
||||
def run(args) {
|
||||
def new_dists = []
|
||||
citys = CcbCommonUtils.getRunningCitys(args)
|
||||
//按天导(每天一个文件夹)
|
||||
exportBigdataDealFJW2(curDate, DateUtils.formatDateByPattern(DateUtils.getFirstDayOfMonth(new Date() + 1, -1), "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)
|
||||
|
||||
exportInOk()
|
||||
|
||||
// }
|
||||
|
||||
// SSHHelperTest jschCommand = new SSHHelperTest();
|
||||
// System.out.println(jschCommand.executeCommand("sh /home/ccb_ronghe/output/rh_package.sh ${curDate}"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
def exportBigdataDealFJW2(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 = "FJW_000000_000000_BIGDATA_DEAL_FJW_ADD_${curDate}_0001.dat"
|
||||
if(CommonDatautils.isWindow()){
|
||||
fileName = win_prefix + "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,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_bld_yr_rc,gujia_own_val,gujia_own_yrlmt_val,gujia_prd_val,gujia_wbt_floor,gujia_lyr_tp_val,gujia_tot_floor_num,gujia_bld_tp_val,gujia_bld_stc,gujiaconstructionarea,gujia_set_innr_area,gujia_acc_tp_val,gujia_room,gujia_dept,gujia_ktch_num,gujia_toliet,gujia_hs_use,gujia_indr_stc_val,gujia_twrd_val,gujia_dcrt_sttn,gujia_ases_bt_ln_num,gujia_trdtckt_prc,gujia_mdl_tot_prc,gujia_dcl_tot_prc,gujia_ases_tot_prc,gujiasigntonlinectrid,to_char(txn_dt,'yyyy-mm-dd') as txn_dt,gujia_txn_tp_val,gujia_sell_pymtmod,gujia_mdl_cyc,gujiawthrext_lift_ind,gujiagvlndfargrdnarea,gujia_gv_lu_tbl_area,gujia_gv_sun_tbl_area,gujiagvbaywindow_area,gujiagvarea_tower_flr,gujia_gv_grg_area,gujiagvundgdroom_area,gujia_gv_othr_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_mkdam,gujia_data_tm " +
|
||||
"from "+database+"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,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_bld_yr_rc,gujia_own_val,gujia_own_yrlmt_val,gujia_prd_val,gujia_wbt_floor,gujia_lyr_tp_val,gujia_tot_floor_num,gujia_bld_tp_val,gujia_bld_stc,gujiaconstructionarea,gujia_set_innr_area,gujia_acc_tp_val,gujia_room,gujia_dept,gujia_ktch_num,gujia_toliet,gujia_hs_use,gujia_indr_stc_val,gujia_twrd_val,gujia_dcrt_sttn,gujia_ases_bt_ln_num,gujia_trdtckt_prc,gujia_mdl_tot_prc,gujia_dcl_tot_prc,gujia_ases_tot_prc,gujiasigntonlinectrid,to_char(txn_dt,'yyyy-mm-dd') as txn_dt,gujia_txn_tp_val,gujia_sell_pymtmod,gujia_mdl_cyc,gujiawthrext_lift_ind,gujiagvlndfargrdnarea,gujia_gv_lu_tbl_area,gujia_gv_sun_tbl_area,gujiagvbaywindow_area,gujiagvarea_tower_flr,gujia_gv_grg_area,gujiagvundgdroom_area,gujia_gv_othr_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_mkdam,gujia_data_tm " +
|
||||
"from "+database+"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,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_bld_yr_rc,gujia_own_val,gujia_own_yrlmt_val,gujia_prd_val,gujia_wbt_floor,gujia_lyr_tp_val,gujia_tot_floor_num,gujia_bld_tp_val,gujia_bld_stc,gujiaconstructionarea,gujia_set_innr_area,gujia_acc_tp_val,gujia_room,gujia_dept,gujia_ktch_num,gujia_toliet,gujia_hs_use,gujia_indr_stc_val,gujia_twrd_val,gujia_dcrt_sttn,gujia_ases_bt_ln_num,gujia_trdtckt_prc,gujia_mdl_tot_prc,gujia_dcl_tot_prc,gujia_ases_tot_prc,gujiasigntonlinectrid,to_char(txn_dt,'yyyy-mm-dd') as txn_dt,gujia_txn_tp_val,gujia_sell_pymtmod,gujia_mdl_cyc,gujiawthrext_lift_ind,gujiagvlndfargrdnarea,gujia_gv_lu_tbl_area,gujia_gv_sun_tbl_area,gujiagvbaywindow_area,gujiagvarea_tower_flr,gujia_gv_grg_area,gujiagvundgdroom_area,gujia_gv_othr_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_mkdam,gujia_data_tm " +
|
||||
"from "+database+".t0831_bigdata_deal_gj_h where urbn_id='${cityCode}' and txn_dt>=to_date('${dealDate}','yyyy-MM-dd')";
|
||||
allRows.addAll(dealData(sql))
|
||||
}
|
||||
}
|
||||
}
|
||||
createFileToFtp("BIGDATA_DEAL_FJW", allRows, fileName, curDate, false)
|
||||
}
|
||||
|
||||
|
||||
|
||||
def dealData(def sql){
|
||||
def allRows = []
|
||||
sqlInstance.eachRow(sql, { r ->
|
||||
def data = []
|
||||
data << r.urbn_id
|
||||
data << r.urbn_id
|
||||
data << r.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_bld_yr_rc
|
||||
data << r.gujia_own_val
|
||||
data << r.gujia_own_yrlmt_val
|
||||
data << r.gujia_prd_val
|
||||
data << r.gujia_wbt_floor
|
||||
data << r.gujia_lyr_tp_val
|
||||
data << r.gujia_tot_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.gujiaconstructionarea
|
||||
data << r.gujia_set_innr_area
|
||||
data << r.gujia_acc_tp_val
|
||||
data << r.gujia_room
|
||||
data << r.gujia_dept
|
||||
data << r.gujia_ktch_num
|
||||
data << r.gujia_toliet
|
||||
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_trdtckt_prc
|
||||
data << r.gujia_mdl_tot_prc
|
||||
data << r.gujia_dcl_tot_prc
|
||||
data << r.gujia_ases_tot_prc
|
||||
data << r.gujiasigntonlinectrid
|
||||
data << r.txn_dt
|
||||
data << r.gujia_txn_tp_val
|
||||
data << r.gujia_sell_pymtmod
|
||||
data << r.gujia_mdl_cyc
|
||||
data << r.gujiawthrext_lift_ind
|
||||
data << r.gujiagvlndfargrdnarea
|
||||
data << r.gujia_gv_lu_tbl_area
|
||||
data << r.gujia_gv_sun_tbl_area
|
||||
data << r.gujiagvbaywindow_area
|
||||
data << r.gujiagvarea_tower_flr
|
||||
data << r.gujia_gv_grg_area
|
||||
data << r.gujiagvundgdroom_area
|
||||
data << r.gujia_gv_othr_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_mkdam
|
||||
data << r.gujia_data_tm
|
||||
allRows << data
|
||||
});
|
||||
return allRows
|
||||
}
|
||||
|
||||
def exportEvaluateRate(){
|
||||
def sql = "select gujia_ceft_id,gujia_ceft_tp,gujia_ceft,gujia_seq, gujia_urbn,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 from t0831_evaluate_rate_fjw_w";
|
||||
def allRows = []
|
||||
sqlInstance.eachRow(sql,{r->
|
||||
def data = []
|
||||
data << r.gujia_ceft_id
|
||||
data << r.gujia_ceft_tp
|
||||
data << r.gujia_ceft
|
||||
data << r.gujia_seq
|
||||
data << r.gujia_urbn
|
||||
data << r.rmrk_dsc
|
||||
data << r.data_crt_tm
|
||||
data << r.data_udt_tm
|
||||
data << r.gujia_src_co
|
||||
allRows << data
|
||||
});
|
||||
def fileName = linux_prefix + "FJW_000000_000000_EVALUATE_RATE_FJW_ALL_${curDate}_0001.dat"
|
||||
if(CommonDatautils.isWindow()){
|
||||
fileName = win_prefix + "FJW_000000_000000_EVALUATE_RATE_FJW_ALL_${curDate}_0001.dat"
|
||||
}
|
||||
|
||||
createFileToFtp("EVALUATE_RATE_FJW", allRows, fileName, curDate, false)
|
||||
}
|
||||
|
||||
def exportBigdataBuildprojFjw(){
|
||||
def fileName = linux_prefix + "FJW_000000_000000_BIGDATA_BUILDPROJ_FJW_ALL_${curDate}_0001.dat"
|
||||
if(CommonDatautils.isWindow()){
|
||||
fileName = win_prefix + "FJW_000000_000000_BIGDATA_BUILDPROJ_FJW_ALL_${curDate}_0001.dat"
|
||||
}
|
||||
createFileToFtp("BIGDATA_BUILDPROJ_FJW", [], fileName, curDate, false)
|
||||
}
|
||||
|
||||
def exportBigdataCommlayoutpicFjw(){
|
||||
def fileName = linux_prefix + "FJW_000000_000000_BIGDATA_COMMLAYOUTPIC_FJW_ALL_${curDate}_0001.dat"
|
||||
if(CommonDatautils.isWindow()){
|
||||
fileName = win_prefix + "FJW_000000_000000_BIGDATA_COMMLAYOUTPIC_FJW_ALL_${curDate}_0001.dat"
|
||||
}
|
||||
createFileToFtp("BIGDATA_COMMLAYOUTPIC_FJW", [], fileName, curDate, false)
|
||||
}
|
||||
|
||||
def exportBigdataCommunityGJRH(){
|
||||
|
||||
def fileName = linux_prefix + "FJW_000000_000000_BIGDATA_COMMUNITY_FJW_ALL_${curDate}_0001.dat"
|
||||
if(CommonDatautils.isWindow()){
|
||||
fileName = win_prefix + "FJW_000000_000000_BIGDATA_COMMUNITY_FJW_ALL_${curDate}_0001.dat"
|
||||
}
|
||||
def allRows = []
|
||||
for(def city : citys){
|
||||
def cityCode = cityCodeMap.get(city)
|
||||
def sql = "select urbn_id,gujia_comm_id,comm_nm,gujia_comm_fmnm,gujia_admndiv_id,gujia_str,gujia_hsno,gujia_dtl_adr,gujiaocpoflandtotarea,gujia_bld_tot_area,gujia_comm_tp_val,gujiawthr_new_pan_ind,gujia_grnrate,gujia_vol_rate,gujia_park_num,gujia_comm_intd,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,gujiaprhsld_hspty_prc,gujiacomm_tot_rsd_num,gujiacommrntfee_avprc,gujia_comm_avprc from "+database+"t0831_bigdata_community_fjw_w where urbn_id='${cityCode}'";
|
||||
sqlInstance.eachRow(sql,{r->
|
||||
def data = []
|
||||
data << r.urbn_id
|
||||
data << r.gujia_comm_id
|
||||
data << r.comm_nm
|
||||
data << r.gujia_comm_fmnm
|
||||
data << r.gujia_admndiv_id
|
||||
data << r.gujia_str
|
||||
data << r.gujia_hsno
|
||||
data << r.gujia_dtl_adr
|
||||
data << r.gujiaocpoflandtotarea
|
||||
data << r.gujia_bld_tot_area
|
||||
data << r.gujia_comm_tp_val
|
||||
data << r.gujiawthr_new_pan_ind
|
||||
data << r.gujia_grnrate
|
||||
data << r.gujia_vol_rate
|
||||
data << r.gujia_park_num
|
||||
data << r.gujia_comm_intd
|
||||
data << r.rmrk_dsc
|
||||
data << r.data_crt_tm
|
||||
data << r.data_udt_tm
|
||||
data << r.gujia_src_co
|
||||
allRows << data
|
||||
});
|
||||
}
|
||||
|
||||
createFileToFtp("BIGDATA_COMMUNITY_FJW", allRows, fileName, curDate, false)
|
||||
}
|
||||
|
||||
def exportBigdataCommbuildstruGJ(){
|
||||
def allRows = []
|
||||
for(def city : citys) {
|
||||
def cityCode = cityCodeMap.get(city)
|
||||
def sql = "select urbn_id, gujia_comm_id, gujia_bld_stc, 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 from "+database+"t0831_bigdata_commbuildstru_fjw_w where urbn_id='${cityCode}'";
|
||||
sqlInstance.eachRow(sql,{r->
|
||||
def data = []
|
||||
data << r.urbn_id
|
||||
data << r.gujia_comm_id
|
||||
data << r.gujia_bld_stc
|
||||
data << r.rmrk_dsc
|
||||
data << r.data_crt_tm
|
||||
data << r.data_udt_tm
|
||||
data << r.gujia_src_co
|
||||
allRows << data
|
||||
});
|
||||
}
|
||||
|
||||
def fileName = linux_prefix + "FJW_000000_000000_BIGDATA_COMMBUILDSTRU_FJW_ALL_${curDate}_0001.dat"
|
||||
if(CommonDatautils.isWindow()){
|
||||
fileName = win_prefix + "FJW_000000_000000_BIGDATA_COMMBUILDSTRU_FJW_ALL_${curDate}_0001.dat"
|
||||
}
|
||||
createFileToFtp("BIGDATA_COMMBUILDSTRU_FJW", allRows, fileName, curDate, false)
|
||||
|
||||
}
|
||||
|
||||
def exportBigdataCommfeeGj(){
|
||||
|
||||
def allRows = []
|
||||
for(def city : citys){
|
||||
def cityCode = cityCodeMap.get(city)
|
||||
def sql = "select urbn_id,gujia_comm_id,co_id,gujia_eps_val,gujia_hs_use,gujia_bld_tp_val,gujia_comm_eps_tp,gujia_eps_cmnt,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 from "+database+"t0831_bigdata_commfee_fjw_w where urbn_id='${cityCode}'";
|
||||
sqlInstance.eachRow(sql,{r->
|
||||
def data = []
|
||||
data << r.urbn_id
|
||||
data << r.gujia_comm_id
|
||||
data << r.co_id
|
||||
data << r.gujia_eps_val
|
||||
data << r.gujia_hs_use
|
||||
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_comm_eps_tp
|
||||
data << r.gujia_eps_cmnt
|
||||
data << r.rmrk_dsc
|
||||
data << r.data_crt_tm
|
||||
data << r.data_udt_tm
|
||||
data << r.gujia_src_co
|
||||
allRows << data
|
||||
});
|
||||
}
|
||||
def fileName = linux_prefix + "FJW_000000_000000_BIGDATA_COMMFEE_FJW_ALL_${curDate}_0001.dat"
|
||||
if(CommonDatautils.isWindow()){
|
||||
fileName = win_prefix + "FJW_000000_000000_BIGDATA_COMMFEE_FJW_ALL_${curDate}_0001.dat"
|
||||
}
|
||||
createFileToFtp("BIGDATA_COMMFEE_FJW", allRows, fileName, curDate, false)
|
||||
}
|
||||
|
||||
def exportBigdataCommhousetypeGJ(){
|
||||
|
||||
def allRows = []
|
||||
for(def city : citys) {
|
||||
def cityCode = cityCodeMap.get(city)
|
||||
def sql = "select urbn_id,gujia_comm_id,gujia_comm_hs_tp,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 from "+database+"t0831_bigdata_commhousetype_fjw_w where urbn_id='${cityCode}'";
|
||||
sqlInstance.eachRow(sql,{r->
|
||||
def data = []
|
||||
data << r.urbn_id
|
||||
data << r.gujia_comm_id
|
||||
data << r.gujia_comm_hs_tp
|
||||
data << r.rmrk_dsc
|
||||
data << r.data_crt_tm
|
||||
data << r.data_udt_tm
|
||||
data << r.gujia_src_co
|
||||
allRows << data
|
||||
});
|
||||
}
|
||||
|
||||
def fileName = linux_prefix + "FJW_000000_000000_BIGDATA_COMMHOUSETYPE_FJW_ALL_${curDate}_0001.dat"
|
||||
if(CommonDatautils.isWindow()){
|
||||
fileName = win_prefix + "FJW_000000_000000_BIGDATA_COMMHOUSETYPE_FJW_ALL_${curDate}_0001.dat"
|
||||
}
|
||||
createFileToFtp("BIGDATA_COMMHOUSETYPE_FJW", allRows, fileName, curDate, false)
|
||||
}
|
||||
|
||||
def exportBigdataCommbuildyearGj(){
|
||||
def allRows = []
|
||||
for(def city : citys) {
|
||||
def cityCode = cityCodeMap.get(city)
|
||||
def sql = "select urbn_id,gujia_comm_id,gujia_bld_yr_rc,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 from "+database+"t0831_bigdata_commbuildyear_fjw_w where urbn_id='${cityCode}'";//
|
||||
sqlInstance.eachRow(sql,{r->
|
||||
def data = []
|
||||
data << r.urbn_id
|
||||
data << r.gujia_comm_id
|
||||
data << r.gujia_bld_yr_rc
|
||||
data << r.rmrk_dsc
|
||||
data << r.data_crt_tm
|
||||
data << r.data_udt_tm
|
||||
data << r.gujia_src_co
|
||||
allRows << data
|
||||
});
|
||||
}
|
||||
def fileName = linux_prefix + "FJW_000000_000000_BIGDATA_COMMBUILDYEAR_FJW_ALL_${curDate}_0001.dat"
|
||||
if(CommonDatautils.isWindow()){
|
||||
fileName = win_prefix + "FJW_000000_000000_BIGDATA_COMMBUILDYEAR_FJW_ALL_${curDate}_0001.dat"
|
||||
}
|
||||
createFileToFtp("BIGDATA_COMMBUILDYEAR_FJW", allRows, fileName, curDate, false)
|
||||
}
|
||||
|
||||
def exportBigdataCommhouseuseGJ(){
|
||||
def allRows = []
|
||||
for(def city : citys) {
|
||||
def cityCode = cityCodeMap.get(city)
|
||||
def sql = "select urbn_id,gujia_comm_id,gujia_hs_use,gujia_ladder_accnum,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 from "+database+"t0831_bigdata_commhouseuse_fjw_w where urbn_id='${cityCode}'";//
|
||||
sqlInstance.eachRow(sql,{r->
|
||||
def data = []
|
||||
data << r.urbn_id
|
||||
data << r.gujia_comm_id
|
||||
data << r.gujia_hs_use
|
||||
data << r.gujia_ladder_accnum
|
||||
data << r.rmrk_dsc
|
||||
data << r.data_crt_tm
|
||||
data << r.data_udt_tm
|
||||
data << r.gujia_src_co
|
||||
allRows << data
|
||||
});
|
||||
}
|
||||
def fileName = linux_prefix + "FJW_000000_000000_BIGDATA_COMMHOUSEUSE_FJW_ALL_${curDate}_0001.dat"
|
||||
if(CommonDatautils.isWindow()){
|
||||
fileName = win_prefix + "FJW_000000_000000_BIGDATA_COMMHOUSEUSE_FJW_ALL_${curDate}_0001.dat"
|
||||
}
|
||||
createFileToFtp("BIGDATA_COMMHOUSEUSE_FJW", allRows, fileName, curDate, false)
|
||||
}
|
||||
|
||||
def exportBigdataPositionGJ(){
|
||||
def allRows = []
|
||||
for(def city : citys) {
|
||||
def cityCode = cityCodeMap.get(city)
|
||||
def sql = "select urbn_id,gujia_obj_tp,gujia_obj_id,gujia_lo_tp,gujia_sn,lgt,ltt,gujia_hignas_val,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 from "+database+"t0831_bigdata_position_fjw_w where urbn_id='${cityCode}'";//
|
||||
sqlInstance.eachRow(sql,{r->
|
||||
def data = []
|
||||
data << r.urbn_id
|
||||
data << r.gujia_obj_tp
|
||||
data << r.gujia_obj_id
|
||||
data << r.gujia_lo_tp
|
||||
data << r.gujia_sn
|
||||
data << r.lgt
|
||||
data << r.ltt
|
||||
data << r.gujia_hignas_val
|
||||
data << r.rmrk_dsc
|
||||
data << r.data_crt_tm
|
||||
data << r.data_udt_tm
|
||||
data << r.gujia_src_co
|
||||
allRows << data
|
||||
});
|
||||
}
|
||||
def fileName = linux_prefix + "FJW_000000_000000_BIGDATA_POSITION_FJW_ALL_${curDate}_0001.dat"
|
||||
if(CommonDatautils.isWindow()){
|
||||
fileName = win_prefix + "FJW_000000_000000_BIGDATA_POSITION_FJW_ALL_${curDate}_0001.dat"
|
||||
}
|
||||
createFileToFtp("BIGDATA_POSITION_FJW", allRows, fileName, curDate, false)
|
||||
}
|
||||
|
||||
def exportBigdataDistrictFJW(){
|
||||
def allRows = []
|
||||
for(def city : citys) {
|
||||
def cityCode = cityCodeMap.get(city)
|
||||
def sql = "select gujia_admndiv_id,gujia_admndiv_nm,gujia_admndiv_nm_cpa,urbn_id,gujia_natstd_cd,gujia_dspl_seq,gujia_admndiv_cgy,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 from "+database+"t0831_bigdata_district_fjw_w where urbn_id='${cityCode}'";//
|
||||
sqlInstance.eachRow(sql,{r->
|
||||
def data = []
|
||||
data << r.gujia_admndiv_id
|
||||
data << r.gujia_admndiv_nm
|
||||
data << r.gujia_admndiv_nm_cpa
|
||||
data << r.urbn_id
|
||||
data << r.gujia_natstd_cd
|
||||
data << r.gujia_dspl_seq
|
||||
data << r.gujia_admndiv_cgy
|
||||
data << r.rmrk_dsc
|
||||
data << r.data_crt_tm
|
||||
data << r.data_udt_tm
|
||||
data << r.gujia_src_co
|
||||
allRows << data
|
||||
});
|
||||
}
|
||||
|
||||
def fileName = linux_prefix + "FJW_000000_000000_BIGDATA_DISTRICT_FJW_ALL_${curDate}_0001.dat"
|
||||
if(CommonDatautils.isWindow()){
|
||||
fileName = win_prefix + "FJW_000000_000000_BIGDATA_DISTRICT_FJW_ALL_${curDate}_0001.dat"
|
||||
}
|
||||
createFileToFtp("BIGDATA_DISTRICT_FJW", allRows, fileName, curDate, false)
|
||||
}
|
||||
|
||||
def exportBigdataAliasFJW(){
|
||||
def allRows = []
|
||||
for(def city : citys) {
|
||||
def cityCode = cityCodeMap.get(city)
|
||||
def sql = "select urbn_id,rel_id,gujia_comm_id,comm_nm,gujia_pcsst,gujia_vld_dt,gujia_vrsn_dsc,gujia_wthr_prim_nm,gujia_dtsrc,gujia_dsc,gujia_als_lvl,gujia_adr_tp_ecd,gujia_wthr_adt_ind,gujia_wthr_dspl_ind from "+database+"t0831_address_alias_fjw_w where urbn_id='${cityCode}'";//
|
||||
sqlInstance.eachRow(sql,{r->
|
||||
def data = []
|
||||
data << r.urbn_id
|
||||
data << r.rel_id
|
||||
data << r.gujia_comm_id
|
||||
data << r.comm_nm
|
||||
data << r.gujia_pcsst
|
||||
data << r.gujia_vld_dt
|
||||
data << r.gujia_vrsn_dsc
|
||||
data << r.gujia_wthr_prim_nm
|
||||
data << r.gujia_dtsrc
|
||||
data << r.gujia_dsc
|
||||
data << r.gujia_als_lvl
|
||||
data << r.gujia_adr_tp_ecd
|
||||
data << r.gujia_wthr_adt_ind
|
||||
data << r.gujia_wthr_dspl_ind
|
||||
allRows << data
|
||||
});
|
||||
}
|
||||
def fileName = linux_prefix + "FJW_000000_000000_ADDRESS_ALIAS_FJW_ALL_${curDate}_0001.dat"
|
||||
if(CommonDatautils.isWindow()){
|
||||
fileName = win_prefix + "FJW_000000_000000_ADDRESS_ALIAS_FJW_ALL_${curDate}_0001.dat"
|
||||
}
|
||||
createFileToFtp("ADDRESS_ALIAS_FJW", allRows, fileName, curDate, false)
|
||||
}
|
||||
|
||||
def exportBigdataBuildingFJW(){
|
||||
def fileName = linux_prefix + "FJW_000000_000000_BIGDATA_BUILDING_FJW_ALL_${curDate}_0001.dat"
|
||||
if(CommonDatautils.isWindow()){
|
||||
fileName = win_prefix + "FJW_000000_000000_BIGDATA_BUILDING_FJW_ALL_${curDate}_0001.dat"
|
||||
}
|
||||
def index = 0
|
||||
for(def city : citys) {
|
||||
def allRows = []
|
||||
def cityCode = cityCodeMap.get(city)
|
||||
def sql = "select urbn_id,gujia_bld_id,bld_id,gujia_bld_nm,gujia_bld_als_dsc,gujia_admndiv_id,gujia_comm_id,gujia_bld_yr_rc,gujia_bld_tp_val,gujia_bld_stc,floor_num,gujia_unit_num,gujia_accnum_val,gujiawthrext_lift_ind,gujia_lift_num,gujiajiladderjiactval,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_vld_ind from "+database+"t0831_bigdata_building_fjw_w where urbn_id='${cityCode}'";//
|
||||
sqlInstance.eachRow(sql,{r->
|
||||
def data = []
|
||||
data << r.urbn_id
|
||||
data << r.gujia_bld_id
|
||||
data << r.bld_id
|
||||
data << r.gujia_bld_nm
|
||||
data << r.gujia_bld_als_dsc
|
||||
data << r.gujia_admndiv_id
|
||||
data << r.gujia_comm_id
|
||||
data << r.gujia_bld_yr_rc
|
||||
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.floor_num
|
||||
data << r.gujia_unit_num
|
||||
data << r.gujia_accnum_val
|
||||
data << r.gujiawthrext_lift_ind
|
||||
data << r.gujia_lift_num
|
||||
data << r.gujiajiladderjiactval
|
||||
data << r.rmrk_dsc
|
||||
data << r.data_crt_tm
|
||||
data << r.data_udt_tm
|
||||
data << r.gujia_src_co
|
||||
data << r.gujia_vld_ind
|
||||
allRows << data
|
||||
});
|
||||
|
||||
if(allRows && allRows.size()>0){
|
||||
index = index + 1
|
||||
if(index == 1){
|
||||
FileUtils.batchCreateFile(allRows, fileName, [], "utf-8", false);
|
||||
}else{
|
||||
FileUtils.batchCreateFile(allRows, fileName, [], "utf-8", true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
CcbFtpTestUtils.ftpUpload("rh",fileName, curDate)
|
||||
println "BIGDATA_BUILDING_FJW 上传Ftp完成......"
|
||||
}
|
||||
|
||||
def exportBigdataCityPrice(queryDate){
|
||||
def fileName = linux_prefix + "FJW_000000_000000_BIGDATA_CITYPRICE_FJW_ADD_${curDate}_0001.dat"
|
||||
if(CommonDatautils.isWindow()){
|
||||
fileName = win_prefix + "FJW_000000_000000_BIGDATA_CITYPRICE_FJW_ADD_${curDate}_0001.dat"
|
||||
}
|
||||
def allRows = []
|
||||
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 t0831_city_price_gj_h where CITYID='${cityCode}'";//
|
||||
|
||||
sqlInstance.eachRow(sql,{r->
|
||||
def data = []
|
||||
data << r.CITYID
|
||||
data << r.YMID
|
||||
data << r.SALEPRICE?r.SALEPRICE:''
|
||||
data << r.RENTPRICE?r.RENTPRICE:''
|
||||
if(r.SALECOUNT>0) {
|
||||
data << r.SALECOUNT
|
||||
}else{
|
||||
data << ''
|
||||
}
|
||||
if(r.RENTCOUNT>0){
|
||||
data << r.RENTCOUNT
|
||||
}else{
|
||||
data << ''
|
||||
}
|
||||
data << r.UPDATETIME
|
||||
data << r.HOUSEUSE
|
||||
data << r.SALEBLDGAREA?r.SALEBLDGAREA:''
|
||||
data << r.RENTBLDGAREA?r.RENTBLDGAREA:''
|
||||
data << r.SALETOTALPRICE?r.SALETOTALPRICE:''
|
||||
data << r.RENTTOTALPRICE?r.RENTTOTALPRICE:''
|
||||
data << r.DATATYPE
|
||||
data << r.SDATERANGE
|
||||
data << r.RDATERANGE
|
||||
data << r.SOURCECODE
|
||||
allRows << data
|
||||
});
|
||||
}
|
||||
|
||||
createFileToFtp("BIGDATA_CITYPRICE", allRows, fileName, curDate, false)
|
||||
}
|
||||
|
||||
def exportInOk(){
|
||||
Vector files = CcbFtpTestUtils.listFileNames("rh", curDate)
|
||||
Iterator fileVec = files.iterator()
|
||||
def fileRows = []
|
||||
while(fileVec.hasNext()){
|
||||
ChannelSftp.LsEntry file = fileVec.next()
|
||||
|
||||
if(org.apache.commons.lang.StringUtils.isNotBlank(file.getFilename()) && file.getFilename().endsWith(".dat")){
|
||||
fileRows << file.getFilename() +" "+CcbFtpTestUtils.getFileLength("rh", file.getFilename(), curDate)
|
||||
}
|
||||
}
|
||||
def fileName = linux_prefix+"${curDate}.ok"
|
||||
if(CommonDatautils.isWindow()){
|
||||
fileName = win_prefix + "${curDate}.ok"
|
||||
}
|
||||
createFileToFtp("融合统计文件长度ok文件", fileRows, fileName, curDate, false)
|
||||
}
|
||||
|
||||
def createFileToFtp(tableName,allRows, fileName, curDate, isAppend){
|
||||
FileUtils.batchCreateFile(allRows, fileName, [], "utf-8", isAppend);
|
||||
println tableName+" 数据文件输出完成......"
|
||||
CcbFtpTestUtils.ftpUpload("rh", fileName, curDate)
|
||||
println tableName+" 上传Ftp完成......"
|
||||
}
|
||||
}
|
||||
|
||||
+4
-2
@@ -27,6 +27,8 @@ class BigdataCitypriceBatch extends BaseBatch{
|
||||
|
||||
public static ExecutorService fixedThreadPool = Executors.newFixedThreadPool(80)
|
||||
|
||||
def curRunDate = DateUtils.formatDateByPattern(DateUtils.getFirstDayOfMonth(new Date(),-1), "yyyyMM").toInteger();
|
||||
|
||||
static main(args) {
|
||||
runBatch(new BigdataCitypriceBatch(), args)
|
||||
}
|
||||
@@ -238,7 +240,7 @@ class BigdataCitypriceBatch extends BaseBatch{
|
||||
if (sell_avg_price || rent_avg_price) {
|
||||
def row = []
|
||||
row << cityCodeDataMap.get(dist.city)
|
||||
row << DateUtils.formatDateByPattern(DateUtils.getFirstDayOfMonth(new Date(),-1), "yyyyMM").toInteger();
|
||||
row << curRunDate//DateUtils.formatDateByPattern(DateUtils.getFirstDayOfMonth(new Date(),-1), "yyyyMM").toInteger();
|
||||
row << dist._id.toString()
|
||||
|
||||
if (sell_avg_price) {
|
||||
@@ -362,7 +364,7 @@ class BigdataCitypriceBatch extends BaseBatch{
|
||||
if (sell_avg_price || rent_avg_price) {
|
||||
def row = []
|
||||
row << cityCodeDataMap.get(city)
|
||||
row << DateUtils.formatDateByPattern(DateUtils.getFirstDayOfMonth(new Date(),-1), "yyyyMM").toInteger();
|
||||
row << curRunDate//DateUtils.formatDateByPattern(DateUtils.getFirstDayOfMonth(new Date(),-1), "yyyyMM").toInteger();
|
||||
|
||||
if(region){
|
||||
row << regionCodeDataMap.district_code
|
||||
|
||||
+549
-8
@@ -4,10 +4,12 @@ import com.fangjia.script.BaseBatch
|
||||
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
|
||||
import com.jcraft.jsch.ChannelSftp
|
||||
import groovy.sql.Sql
|
||||
|
||||
import java.sql.ResultSet
|
||||
@@ -27,11 +29,16 @@ class ExportDistrictRongHe extends BaseBatch{
|
||||
|
||||
@Override
|
||||
void process(Object args) {
|
||||
|
||||
def queryDate = DateUtils.addMonth(DateUtils.formatDateByPattern(new Date(), "yyyyMM"), -1, "yyyyMM").toInteger()
|
||||
|
||||
|
||||
citys = CcbCommonUtils.getRunningCitys(args)
|
||||
def lastMonth = Integer.parseInt(DateUtils.addMonth(DateUtils.formatDateByPattern(new Date(), "yyyyMM"), -1, "yyyyMM"));
|
||||
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,-2), "yyyy-MM-dd"), new_dists)
|
||||
|
||||
if(curDate.toString().endsWith("10")){
|
||||
exportBigdataCommunityGJRH()//
|
||||
@@ -50,10 +57,27 @@ class ExportDistrictRongHe extends BaseBatch{
|
||||
exportBigdataCommlayoutpicFjw()
|
||||
exportEvaluateRate()
|
||||
|
||||
//因为融合暂不切库,所以需要加传一张第三方均价表到融合中, 从1月10日开始传输
|
||||
def lastMonth = Integer.parseInt(DateUtils.addMonth(DateUtils.formatDateByPattern(new Date(), "yyyyMM"), -1, "yyyyMM"));
|
||||
exportThirdPartyPrice2(lastMonth, new_dists)
|
||||
exportBigdataCityPrice(queryDate)
|
||||
exportBigdataDistPrice(queryDate)
|
||||
exportBigdataCommPrice(queryDate)
|
||||
|
||||
//因为融合暂不切库,所以需要加传一张第三方均价表到融合中, 从1月10日开始传输,长期供
|
||||
def thirdPartyMonth = Integer.parseInt(DateUtils.addMonth(DateUtils.formatDateByPattern(new Date(), "yyyyMM"), -2, "yyyyMM"));
|
||||
exportThirdPartyPrice2(thirdPartyMonth, new_dists)
|
||||
|
||||
|
||||
//1月10日 新增5张表,导92城,增量数据,2月10日导344城,其中252城所有历史数据,92城增量,3月后可能不用提供数据
|
||||
exportCommunityBasePrice(lastMonth)
|
||||
exportCommunityPdescribeGj(lastMonth)
|
||||
exportGuideStatistics(lastMonth)
|
||||
exportBigdataSupplierStatistics(lastMonth)
|
||||
exportBigdataModelingBase(lastMonth)
|
||||
|
||||
//2月8号 临时导出苏州一年的数据
|
||||
exportBigdataForsale("2022-07-01", new_dists) //现在按updatetime导出
|
||||
|
||||
}
|
||||
|
||||
SSHHelper jschCommand = new SSHHelper();
|
||||
System.out.println(jschCommand.executeCommand("sh /home/ccb_rh/output/rh_package.sh ${curDate}"));
|
||||
|
||||
@@ -807,8 +831,8 @@ class ExportDistrictRongHe extends BaseBatch{
|
||||
|
||||
def exportThirdPartyPrice2(price_date, new_dists) {
|
||||
|
||||
def curDate = DateUtils.formatDateByPattern(new Date(), "yyyyMM") + "28";
|
||||
def fileName = "/ccb_rh/FJW_000000_000000_BIGDATA_THIRD_PARTY_PRICE_GJ_ADD_${curDate}_0001.dat"
|
||||
def curDate = DateUtils.formatDateByPattern(new Date(), "yyyyMM") + "10";
|
||||
def fileName = "/ccb_rh/${curDate}/FJW_000000_000000_BIGDATA_THIRD_PARTY_PRICE_GJ_ADD_${curDate}_0001.dat"
|
||||
if (CommonDatautils.isWindow()) {
|
||||
fileName = "D:\\数据\\建行\\房产估值\\数据文件\\txt\\ccb_rh\\${curDate}\\FJW_000000_000000_BIGDATA_THIRD_PARTY_PRICE_GJ_ADD_${curDate}_0001.dat"
|
||||
}
|
||||
@@ -831,7 +855,12 @@ class ExportDistrictRongHe extends BaseBatch{
|
||||
def rets2 = getThirdPartyDatas(sql2)
|
||||
allRows.addAll(rets2)
|
||||
}else{
|
||||
def sql = "select ID, CITYID, DISTID, COMMID, COMMNAME, DATA_SOURCE_ID, DATA_SOURCE, PRICE_DATE, COMMUNITY_PRICE, COMMUNITY_MAX_PRICE, COMMUNITY_MIN_PRICE, to_char(UPDATETIME,'yyyy-mm-dd hh24:mi:ss') as UPDATETIME from BIGDATA_THIRD_PARTY_PRICE_GJ where CITYID='${cityCode}' and price_date=${price_date} ";
|
||||
def sql = null
|
||||
if(CcbCommonUtils.citys_92.contains(city)){
|
||||
sql = "select ID, CITYID, DISTID, COMMID, COMMNAME, DATA_SOURCE_ID, DATA_SOURCE, PRICE_DATE, COMMUNITY_PRICE, COMMUNITY_MAX_PRICE, COMMUNITY_MIN_PRICE, to_char(UPDATETIME,'yyyy-mm-dd hh24:mi:ss') as UPDATETIME from BIGDATA_THIRD_PARTY_PRICE_GJ where CITYID='${cityCode}' and price_date=${price_date} ";
|
||||
}else{
|
||||
sql = "select ID, CITYID, DISTID, COMMID, COMMNAME, DATA_SOURCE_ID, DATA_SOURCE, PRICE_DATE, COMMUNITY_PRICE, COMMUNITY_MAX_PRICE, COMMUNITY_MIN_PRICE, to_char(UPDATETIME,'yyyy-mm-dd hh24:mi:ss') as UPDATETIME from BIGDATA_THIRD_PARTY_PRICE_GJ where CITYID='${cityCode}'";
|
||||
}
|
||||
allRows = getThirdPartyDatas(sql)
|
||||
}
|
||||
if(allRows && allRows.size()>0){
|
||||
@@ -880,6 +909,393 @@ class ExportDistrictRongHe extends BaseBatch{
|
||||
println "BIGDATA_BUILDPROJ_FJW 上传Ftp完成......"
|
||||
}
|
||||
|
||||
def exportCommunityBasePrice(yearMonth){
|
||||
|
||||
def allRows = []
|
||||
for(def city : citys) {
|
||||
def cityCode = cityCodeMap.get(city)
|
||||
def sql = null;
|
||||
if(CcbCommonUtils.citys_92.contains(city)){
|
||||
sql = "select ID, CITYID, CITYNAME, DISTID, DISTNAME, COMMID, COMMNAME, YEAR_MONTH, CALC_AVG_PRICE, AVG_PRICE, CALC_TYPE, FAKE_RATE, DIFF_RATE, CONFI_RATE, CORR_RATE, CONFIDENCE, to_char(CREATETIME,'yyyy-mm-dd hh24:mi:ss') as CREATETIME, to_char(UPDATETIME,'yyyy-mm-dd hh24:mi:ss') as UPDATETIME,SOURCECODE from community_base_price_gj where year_month=${yearMonth} AND CITYID='${cityCode}'";
|
||||
}else{
|
||||
sql = "select ID, CITYID, CITYNAME, DISTID, DISTNAME, COMMID, COMMNAME, YEAR_MONTH, CALC_AVG_PRICE, AVG_PRICE, CALC_TYPE, FAKE_RATE, DIFF_RATE, CONFI_RATE, CORR_RATE, CONFIDENCE, to_char(CREATETIME,'yyyy-mm-dd hh24:mi:ss') as CREATETIME, to_char(UPDATETIME,'yyyy-mm-dd hh24:mi:ss') as UPDATETIME,SOURCECODE from community_base_price_gj where CITYID='${cityCode}'";
|
||||
}
|
||||
sqlInstance.eachRow(sql, { r ->
|
||||
def data = []
|
||||
data << r.ID
|
||||
data << r.CITYID
|
||||
data << r.CITYNAME
|
||||
data << r.DISTID
|
||||
data << r.DISTNAME
|
||||
data << r.COMMID
|
||||
data << r.COMMNAME
|
||||
data << r.YEAR_MONTH
|
||||
data << r.CALC_AVG_PRICE
|
||||
data << r.AVG_PRICE
|
||||
data << r.CALC_TYPE
|
||||
data << r.FAKE_RATE
|
||||
data << r.DIFF_RATE
|
||||
data << r.CONFI_RATE
|
||||
data << r.CORR_RATE
|
||||
data << r.CONFIDENCE
|
||||
data << r.CREATETIME
|
||||
data << r.UPDATETIME
|
||||
data << r.SOURCECODE
|
||||
allRows << data
|
||||
});
|
||||
}
|
||||
|
||||
def curDate = DateUtils.formatDateByPattern(new Date(), "yyyyMM")+"10"
|
||||
def fileName = "/ccb_rh/${curDate}/FJW_000000_000000_COMMUNITY_BASE_PRICE_GJNB_ADD_${curDate}_0001.dat"
|
||||
if(CommonDatautils.isWindow()){
|
||||
fileName = "D:\\数据\\建行\\房产估值\\数据文件\\txt\\ccb_rh\\${curDate}\\FJW_000000_000000_COMMUNITY_BASE_PRICE_GJNB_ADD_${curDate}_0001.dat"
|
||||
}
|
||||
def headers = []
|
||||
FileUtils.batchCreateFile(allRows, fileName, headers, "utf-8", false);
|
||||
println "COMMUNITY_BASE_PRICE_GJNB 数据文件输出完成......"
|
||||
CcbFtpUtils.ftpUpload("rh", fileName, curDate)
|
||||
println "COMMUNITY_BASE_PRICE_GJNB 上传Ftp完成......"
|
||||
}
|
||||
|
||||
|
||||
def exportCommunityPdescribeGj(month){
|
||||
|
||||
def curDate = DateUtils.formatDateByPattern(new Date(), "yyyyMM")+"10"
|
||||
def fileName = "/ccb_rh/${curDate}/FJW_000000_000000_COMMUNITY_P_DESCRIBE_GJ_ADD_${curDate}_0001.dat"
|
||||
if(CommonDatautils.isWindow()){
|
||||
fileName = "D:\\数据\\建行\\房产估值\\数据文件\\txt\\ccb_rh\\${curDate}\\FJW_000000_000000_COMMUNITY_P_DESCRIBE_GJ_ADD_${curDate}_0001.dat"
|
||||
}
|
||||
def headers = []
|
||||
def allRows = []
|
||||
|
||||
for(def city : citys) {
|
||||
def cityCode = cityCodeMap.get(city)
|
||||
def sql = null;
|
||||
if(CcbCommonUtils.citys_92.contains(city)){
|
||||
sql = "select ID,COMMUNITY_ID,CITYID ,CITY_NAME,DISTRICT_CODE ,DISTRICT_NAME,COMMUNITY_NAME,PQ_NAME,BASE_PRICE,CONFIDENCE_LEVEL,CNT,MIN_PRICE,MEDIANPRICE,MEANPRICE,MAX_PRICE,TIME,FIRSTDATAT,THIRDDATA,RELATIVEERROR,SKEWNESS,PQ_PRICE_RANGE,DISTRICT_PRICE_RANGE ,DESCRIPTION,PRIV_BASE_PRICE,IS_ARTTFICIAL,PRIV_FINAL_PRICE,to_char(CREATE_DATE,'yyyy-mm-dd') as CREATE_DATE,PRICE,PRICE_SOURCE,CASE_MD_PRICE,CASE_AVG_PRICE,INDEX_LABEL,MAIN_PROPERTY,COMMTYPE,NEW_DEAL_PRICE,to_char(NEW_DEAL_DATE,'yyyy-mm-dd') as NEW_DEAL_DATE,PRICE_MOM_RATIO,MAX_MOM_RATIO,PRICE_YOY_RATIO ,SATUR_RATIO,NEIGHBOR_PRICE from community_p_describe_gj where time=${month} AND CITYID='${cityCode}'";
|
||||
}else{
|
||||
sql = "select ID,COMMUNITY_ID,CITYID ,CITY_NAME,DISTRICT_CODE ,DISTRICT_NAME,COMMUNITY_NAME,PQ_NAME,BASE_PRICE,CONFIDENCE_LEVEL,CNT,MIN_PRICE,MEDIANPRICE,MEANPRICE,MAX_PRICE,TIME,FIRSTDATAT,THIRDDATA,RELATIVEERROR,SKEWNESS,PQ_PRICE_RANGE,DISTRICT_PRICE_RANGE ,DESCRIPTION,PRIV_BASE_PRICE,IS_ARTTFICIAL,PRIV_FINAL_PRICE,to_char(CREATE_DATE,'yyyy-mm-dd') as CREATE_DATE,PRICE,PRICE_SOURCE,CASE_MD_PRICE,CASE_AVG_PRICE,INDEX_LABEL,MAIN_PROPERTY,COMMTYPE,NEW_DEAL_PRICE,to_char(NEW_DEAL_DATE,'yyyy-mm-dd') as NEW_DEAL_DATE,PRICE_MOM_RATIO,MAX_MOM_RATIO,PRICE_YOY_RATIO ,SATUR_RATIO,NEIGHBOR_PRICE from community_p_describe_gj where CITYID='${cityCode}'";
|
||||
}
|
||||
|
||||
sqlInstance.eachRow(sql, { r ->
|
||||
def data = []
|
||||
data << r.ID
|
||||
data << r.COMMUNITY_ID
|
||||
data << r.CITYID
|
||||
data << r.CITY_NAME
|
||||
data << r.DISTRICT_CODE
|
||||
data << r.DISTRICT_NAME
|
||||
data << r.COMMUNITY_NAME
|
||||
data << r.PQ_NAME
|
||||
data << r.BASE_PRICE
|
||||
data << r.CONFIDENCE_LEVEL
|
||||
data << r.CNT
|
||||
data << r.MIN_PRICE
|
||||
data << r.MEDIANPRICE
|
||||
data << r.MEANPRICE
|
||||
data << r.MAX_PRICE
|
||||
data << r.TIME
|
||||
data << r.FIRSTDATAT
|
||||
data << r.THIRDDATA
|
||||
data << r.RELATIVEERROR
|
||||
data << r.SKEWNESS
|
||||
data << r.PQ_PRICE_RANGE
|
||||
data << r.DISTRICT_PRICE_RANGE
|
||||
data << r.DESCRIPTION
|
||||
data << r.PRIV_BASE_PRICE
|
||||
data << r.IS_ARTTFICIAL
|
||||
data << r.PRIV_FINAL_PRICE
|
||||
data << r.CREATE_DATE
|
||||
data << r.PRICE
|
||||
data << r.PRICE_SOURCE
|
||||
data << r.CASE_MD_PRICE
|
||||
data << r.CASE_AVG_PRICE
|
||||
data << r.INDEX_LABEL
|
||||
data << r.MAIN_PROPERTY
|
||||
data << r.COMMTYPE
|
||||
data << r.NEW_DEAL_PRICE
|
||||
data << r.NEW_DEAL_DATE
|
||||
data << r.PRICE_MOM_RATIO
|
||||
data << r.MAX_MOM_RATIO
|
||||
data << r.PRICE_YOY_RATIO
|
||||
data << r.SATUR_RATIO
|
||||
data << r.NEIGHBOR_PRICE
|
||||
allRows << data
|
||||
});
|
||||
}
|
||||
println allRows.size()
|
||||
FileUtils.batchCreateFile(allRows, fileName, headers, "utf-8", false);
|
||||
|
||||
println "community_p_describe_gj 数据文件输出完成......"
|
||||
CcbFtpUtils.ftpUpload("rh", fileName, curDate)
|
||||
println "community_p_describe_gj 上传Ftp完成......"
|
||||
}
|
||||
|
||||
def exportGuideStatistics(time){
|
||||
|
||||
def curDate = DateUtils.formatDateByPattern(new Date(), "yyyyMM")+"10"
|
||||
def fileName = "/ccb_rh/${curDate}/FJW_000000_000000_GUIDE_STATISTICS_ADD_${curDate}_0001.dat"
|
||||
if(CommonDatautils.isWindow()){
|
||||
fileName = "D:\\数据\\建行\\房产估值\\数据文件\\txt\\ccb_rh\\${curDate}\\FJW_000000_000000_GUIDE_STATISTICS_ADD_${curDate}_0001.dat"
|
||||
}
|
||||
def headers = []
|
||||
def allRows = []
|
||||
|
||||
for(def city : citys) {
|
||||
def cityCode = cityCodeMap.get(city)
|
||||
def sql = null;
|
||||
if(CcbCommonUtils.citys_92.contains(city)){
|
||||
sql = "select MODEL_TYPE,CITYID,CITYNAME,YEAR_MONTH,COMM_SUM_COUNT,COMM_COUNT,RATIO,TYPE from GUIDE_STATISTICS where cityid='${cityCode}' and year_month=${time}";
|
||||
}else{
|
||||
sql = "select MODEL_TYPE,CITYID,CITYNAME,YEAR_MONTH,COMM_SUM_COUNT,COMM_COUNT,RATIO,TYPE from GUIDE_STATISTICS where cityid='${cityCode}'";
|
||||
}
|
||||
|
||||
sqlInstance.eachRow(sql, { r ->
|
||||
def data = []
|
||||
data << r.MODEL_TYPE
|
||||
data << r.CITYID
|
||||
data << r.CITYNAME
|
||||
data << r.YEAR_MONTH
|
||||
data << r.COMM_SUM_COUNT
|
||||
data << r.COMM_COUNT
|
||||
data << r.RATIO
|
||||
data << r.TYPE
|
||||
allRows << data
|
||||
});
|
||||
}
|
||||
println allRows.size()
|
||||
FileUtils.batchCreateFile(allRows, fileName, headers, "utf-8", false);
|
||||
|
||||
println "guide_statistics 数据文件输出完成......"
|
||||
CcbFtpUtils.ftpUpload("rh", fileName, curDate)
|
||||
println "guide_statistics 上传Ftp完成......"
|
||||
}
|
||||
|
||||
|
||||
def exportBigdataSupplierStatistics(time){
|
||||
|
||||
def curDate = DateUtils.formatDateByPattern(new Date(), "yyyyMM")+"10"
|
||||
def fileName = "/ccb_rh/${curDate}/FJW_000000_000000_BIGDATA_SUPPLIER_STATISTICS_ADD_${curDate}_0001.dat"
|
||||
if(CommonDatautils.isWindow()){
|
||||
fileName = "D:\\数据\\建行\\房产估值\\数据文件\\txt\\ccb_rh\\${curDate}\\FJW_000000_000000_BIGDATA_SUPPLIER_STATISTICS_ADD_${curDate}_0001.dat"
|
||||
}
|
||||
def headers = []
|
||||
def allRows = []
|
||||
|
||||
for(def city : citys) {
|
||||
def cityCode = cityCodeMap.get(city)
|
||||
def sql = null;
|
||||
if(CcbCommonUtils.citys_92.contains(city)){
|
||||
sql = "select CITYID,CITYNAME,YEAR_MONTH,DATA_SOURCE,THIRD_COMM_COUNT,MODEL_TYPE from BIGDATA_SUPPLIER_STATISTICS where cityid='${cityCode}' and year_month=${time}";
|
||||
}else{
|
||||
sql = "select CITYID,CITYNAME,YEAR_MONTH,DATA_SOURCE,THIRD_COMM_COUNT,MODEL_TYPE from BIGDATA_SUPPLIER_STATISTICS where cityid='${cityCode}'";
|
||||
}
|
||||
|
||||
sqlInstance.eachRow(sql, { r ->
|
||||
def data = []
|
||||
data << r.CITYID
|
||||
data << r.CITYNAME
|
||||
data << r.YEAR_MONTH
|
||||
data << r.DATA_SOURCE
|
||||
data << r.THIRD_COMM_COUNT
|
||||
data << r.MODEL_TYPE
|
||||
allRows << data
|
||||
});
|
||||
}
|
||||
println allRows.size()
|
||||
FileUtils.batchCreateFile(allRows, fileName, headers, "utf-8", false);
|
||||
|
||||
println "bigdata_supplier_statistics 数据文件输出完成......"
|
||||
CcbFtpUtils.ftpUpload("rh", fileName, curDate)
|
||||
println "bigdata_supplier_statistics 上传Ftp完成......"
|
||||
}
|
||||
|
||||
def exportBigdataModelingBase(time){
|
||||
|
||||
def curDate = DateUtils.formatDateByPattern(new Date(), "yyyyMM")+"10"
|
||||
def fileName = "/ccb_rh/${curDate}/FJW_000000_000000_BIGDATA_MODELING_BASE_ADD_${curDate}_0001.dat"
|
||||
if(CommonDatautils.isWindow()){
|
||||
fileName = "D:\\数据\\建行\\房产估值\\数据文件\\txt\\ccb_rh\\${curDate}\\FJW_000000_000000_BIGDATA_MODELING_BASE_ADD_${curDate}_0001.dat"
|
||||
}
|
||||
def headers = []
|
||||
def allRows = []
|
||||
|
||||
for(def city : citys) {
|
||||
def cityCode = cityCodeMap.get(city)
|
||||
def sql = null;
|
||||
if(CcbCommonUtils.citys_92.contains(city)){
|
||||
sql = "select CITY_CODE,CITYNAME,YEAR_MONTH,ESTIMATE_DEAL_COUNT,ESTIMATE_COMM_COUNT,DEAL_COUNT,DEAL_COMM_COUNT,SALE_COUNT,SALE_COMM_COUNT,MODEL_TYPE,TYPE from BIGDATA_MODELING_BASE where city_code='${cityCode}' and year_month=${time}";
|
||||
}else{
|
||||
sql = "select CITY_CODE,CITYNAME,YEAR_MONTH,ESTIMATE_DEAL_COUNT,ESTIMATE_COMM_COUNT,DEAL_COUNT,DEAL_COMM_COUNT,SALE_COUNT,SALE_COMM_COUNT,MODEL_TYPE,TYPE from BIGDATA_MODELING_BASE where city_code='${cityCode}'";
|
||||
}
|
||||
|
||||
sqlInstance.eachRow(sql, { r ->
|
||||
def data = []
|
||||
data << r.CITY_CODE
|
||||
data << r.CITYNAME
|
||||
data << r.YEAR_MONTH
|
||||
data << r.ESTIMATE_DEAL_COUNT
|
||||
data << r.ESTIMATE_COMM_COUNT
|
||||
data << r.DEAL_COUNT
|
||||
data << r.DEAL_COMM_COUNT
|
||||
data << r.SALE_COUNT
|
||||
data << r.SALE_COMM_COUNT
|
||||
data << r.MODEL_TYPE
|
||||
data << r.TYPE
|
||||
allRows << data
|
||||
});
|
||||
}
|
||||
println allRows.size()
|
||||
FileUtils.batchCreateFile(allRows, fileName, headers, "utf-8", false);
|
||||
|
||||
println "bigdata_modeling_base 数据文件输出完成......"
|
||||
CcbFtpUtils.ftpUpload("rh", fileName, curDate)
|
||||
println "bigdata_modeling_base 上传Ftp完成......"
|
||||
}
|
||||
|
||||
def exportBigdataCityPrice(queryDate){
|
||||
def curDate = DateUtils.formatDateByPattern(new Date(), "yyyyMM")+"10"
|
||||
def fileName = "/ccb_rh/${curDate}/FJW_000000_000000_BIGDATA_CITYPRICE_FJW_ADD_${curDate}_0001.dat"
|
||||
if(CommonDatautils.isWindow()){
|
||||
fileName = "D:\\数据\\建行\\房产估值\\数据文件\\txt\\ccb_ronghe\\${curDate}\\FJW_000000_000000_BIGDATA_CITYPRICE_FJW_ADD_${curDate}_0001.dat"
|
||||
}
|
||||
def allRows = []
|
||||
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_FJW where CITYID='${cityCode}' and YMID=${queryDate}";//
|
||||
|
||||
sqlInstance.eachRow(sql,{r->
|
||||
def data = []
|
||||
data << r.CITYID
|
||||
data << r.YMID
|
||||
data << r.SALEPRICE?r.SALEPRICE:''
|
||||
data << r.RENTPRICE?r.RENTPRICE:''
|
||||
if(r.SALECOUNT>0) {
|
||||
data << r.SALECOUNT
|
||||
}else{
|
||||
data << ''
|
||||
}
|
||||
if(r.RENTCOUNT>0){
|
||||
data << r.RENTCOUNT
|
||||
}else{
|
||||
data << ''
|
||||
}
|
||||
data << r.UPDATETIME
|
||||
data << r.HOUSEUSE
|
||||
data << r.SALEBLDGAREA?r.SALEBLDGAREA:''
|
||||
data << r.RENTBLDGAREA?r.RENTBLDGAREA:''
|
||||
data << r.SALETOTALPRICE?r.SALETOTALPRICE:''
|
||||
data << r.RENTTOTALPRICE?r.RENTTOTALPRICE:''
|
||||
data << r.DATATYPE
|
||||
data << r.SDATERANGE
|
||||
data << r.RDATERANGE
|
||||
data << r.SOURCECODE
|
||||
allRows << data
|
||||
});
|
||||
}
|
||||
|
||||
FileUtils.batchCreateFile(allRows, fileName, [], "utf-8", false);
|
||||
CcbFtpUtils.ftpUpload("rh",fileName, curDate)
|
||||
println "BIGDATA_CITYPRICE 上传Ftp完成......"
|
||||
}
|
||||
|
||||
|
||||
def exportBigdataDistPrice(queryDate){
|
||||
def curDate = DateUtils.formatDateByPattern(new Date(), "yyyyMM")+"10"
|
||||
def fileName = "/ccb_rh/${curDate}/FJW_000000_000000_BIGDATA_DISTPRICE_FJW_ADD_${curDate}_0001.dat"
|
||||
if(CommonDatautils.isWindow()){
|
||||
fileName = "D:\\数据\\建行\\房产估值\\数据文件\\txt\\ccb_ronghe\\${curDate}\\FJW_000000_000000_BIGDATA_DISTPRICE_FJW_ADD_${curDate}_0001.dat"
|
||||
}
|
||||
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_FJW where CITYID='${cityCode}' and YMID=${queryDate}";// and YMID=${queryDate}
|
||||
sqlInstance.eachRow(sql,{r->
|
||||
def data = []
|
||||
data << r.CITYID
|
||||
data << r.YMID
|
||||
data << r.DISTID
|
||||
data << r.SALEPRICE?r.SALEPRICE:''
|
||||
data << r.RENTPRICE?r.RENTPRICE:''
|
||||
if(r.SALECOUNT>0) {
|
||||
data << r.SALECOUNT
|
||||
}else{
|
||||
data << ''
|
||||
}
|
||||
if(r.RENTCOUNT>0){
|
||||
data << r.RENTCOUNT
|
||||
}else{
|
||||
data << ''
|
||||
}
|
||||
data << r.UPDATETIME
|
||||
data << r.HOUSEUSE
|
||||
data << r.SALEBLDGAREA?r.SALEBLDGAREA:''
|
||||
data << r.RENTBLDGAREA?r.RENTBLDGAREA:''
|
||||
data << r.SALETOTALPRICE?r.SALETOTALPRICE:''
|
||||
data << r.RENTTOTALPRICE?r.RENTTOTALPRICE:''
|
||||
data << r.DATATYPE
|
||||
data << r.SDATERANGE
|
||||
data << r.RDATERANGE
|
||||
data << r.SOURCECODE
|
||||
allRows << data
|
||||
});
|
||||
}
|
||||
|
||||
FileUtils.batchCreateFile(allRows, fileName, [], "utf-8", false);
|
||||
CcbFtpUtils.ftpUpload("rh",fileName, curDate)
|
||||
println "BIGDATA_DISTPRICE 上传Ftp完成......"
|
||||
}
|
||||
|
||||
|
||||
def exportBigdataCommPrice(queryDate){
|
||||
def curDate = DateUtils.formatDateByPattern(new Date(), "yyyyMM")+"10"
|
||||
def fileName = "/ccb_rh/${curDate}/FJW_000000_000000_BIGDATA_COMMPRICE_FJW_ADD_${curDate}_0001.dat"
|
||||
if(CommonDatautils.isWindow()){
|
||||
fileName = "D:\\数据\\建行\\房产估值\\数据文件\\txt\\ccb_ronghe\\${curDate}\\FJW_000000_000000_BIGDATA_COMMPRICE_FJW_ADD_${curDate}_0001.dat"
|
||||
}
|
||||
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} ";//
|
||||
sqlInstance.eachRow(sql,{r->
|
||||
def data = []
|
||||
data << r.CITYID
|
||||
data << r.YMID
|
||||
data << r.COMMID
|
||||
data << r.SALEPRICE?r.SALEPRICE:''
|
||||
if(r.SALECOUNT>0) {
|
||||
data << r.SALECOUNT
|
||||
}else{
|
||||
data << ''
|
||||
}
|
||||
data << r.RENTPRICE?r.RENTPRICE:''
|
||||
if(r.RENTCOUNT>0){
|
||||
data << r.RENTCOUNT
|
||||
}else{
|
||||
data << ''
|
||||
}
|
||||
data << r.UPDATETIME
|
||||
data << r.SALEBLDGAREA?r.SALEBLDGAREA:''
|
||||
data << r.RENTBLDGAREA?r.RENTBLDGAREA:''
|
||||
data << r.SALETOTALPRICE?r.SALETOTALPRICE:''
|
||||
data << r.RENTTOTALPRICE?r.RENTTOTALPRICE:''
|
||||
data << r.HOUSEUSE
|
||||
data << r.SDATERANGE
|
||||
data << r.RDATERANGE
|
||||
data << r.DATATYPE
|
||||
data << r.SOURCECODE
|
||||
allRows << data
|
||||
});
|
||||
}
|
||||
|
||||
FileUtils.batchCreateFile(allRows, fileName, [], "utf-8", false);
|
||||
CcbFtpUtils.ftpUpload("rh",fileName, curDate)
|
||||
println "BIGDATA_COMMPRICE 上传Ftp完成......"
|
||||
}
|
||||
|
||||
|
||||
|
||||
def exportBigdataCommlayoutpicFjw(){
|
||||
def curDate = DateUtils.formatDateByPattern(new Date(), "yyyyMM")+"10"
|
||||
def fileName = "/ccb_rh/${curDate}/FJW_000000_000000_BIGDATA_COMMLAYOUTPIC_FJW_ALL_${curDate}_0001.dat"
|
||||
@@ -891,7 +1307,132 @@ class ExportDistrictRongHe extends BaseBatch{
|
||||
println "BIGDATA_COMMLAYOUTPIC_FJW 上传Ftp完成......"
|
||||
}
|
||||
|
||||
def exportOk(curDate){
|
||||
def exportBigdataForsale(publishDate, new_dists){
|
||||
def curDate = DateUtils.formatDateByPattern(new Date(), "yyyyMM")+"10"
|
||||
def fileName = "/ccb_rh/${curDate}/FJW_000000_000000_BIGDATA_FORSALE_FJW_ADD_${curDate}_0001.dat"
|
||||
if(CommonDatautils.isWindow()){
|
||||
fileName = "D:\\数据\\建行\\房产估值\\数据文件\\txt\\ccb_rh\\${curDate}\\FJW_000000_000000_BIGDATA_FORSALE_FJW_ADD_${curDate}_0001.dat"
|
||||
}
|
||||
def headers = []//["城市ID","出售ID","挂牌房屋ID","城市名称","行政区ID","行政区名称","小区ID","小区名称","楼栋ID","楼栋编号","楼栋名称","单元ID","单元编号","单元名称","户ID","详细地址","建筑年代","权属","权属年限","单价","总价","出售付款方式","所在楼层","总楼层","建筑类型","室内结构","建筑结构","建筑面积","套内面积","户型","室","厅","厨","卫","朝向","装修情况","是否有电梯","几梯几户","发布时间","到期时间","是否首发","房源数据来源","中介公司ID","中介公司名称","发布人","发布人电话","描述信息","备注","创建时间","更新时间","来源公司","附加信息"]
|
||||
def index = 0
|
||||
for(def city : citys){
|
||||
def cityCode = cityCodeMap.get(city)
|
||||
if(city=="苏州"){
|
||||
continue
|
||||
}
|
||||
|
||||
def allRows = []
|
||||
if(new_dists){
|
||||
def newstr = "('"+new_dists.join("','")+"')"
|
||||
def sql1 = "select CITYID,FORSALEID,PROPCODE,CITYNAME,DISTID,DISTNAME,COMMID,COMMNAME, BUILDID,BUILDNO, BUILDNAME,UNITID,UNITNO,UNITNAME,HOUSEID,ADDRESS,BUILDYEAR,PROPTYPE,PROPYEARS,UNITPRICE,TOTALPRICE,PAYTYPE,FLOORNUM,FLOORCNT,\n" +
|
||||
" BUILDTYPE, HOUSESTRU,BUILDSTRU,BUILDAREA,LIVINGAREA,HOUSESTYLE,ROOMCNT,LIVINGROOMCNT,KITCHENCNT, BATHROOMCNT,HOUSEASPECT,FITMENT,IFELEVATOR,ELEVATORHOUSE,to_char(PUBLISHTIME,'yyyy-mm-dd hh24:mi:ss') as PUBLISHTIME,to_char(EXPIRETIME,'yyyy-mm-dd hh24:mi:ss') as EXPIRETIME,\n" +
|
||||
" IFFIRST,DATASOURCE,AGENCYID,AGENCYNAME,PUBLISHER,PHONE,DESCRIPTION,REMARK,to_char(CREATETIME,'yyyy-mm-dd hh24:mi:ss') as CREATETIME, to_char(UPDATETIME,'yyyy-mm-dd hh24:mi:ss') as UPDATETIME,SOURCECODE,ATTACH from bigdata_forsale_gj " +
|
||||
"where cityId='${cityCode}' and updatetime>=to_date('${publishDate}','yyyy-MM-dd') and distid not in ${newstr}";
|
||||
def rets1 = getHouseDatas(sql1)
|
||||
allRows.addAll(rets1)
|
||||
}else{
|
||||
def sql = "select CITYID,FORSALEID,PROPCODE,CITYNAME,DISTID,DISTNAME,COMMID,COMMNAME, BUILDID,BUILDNO, BUILDNAME,UNITID,UNITNO,UNITNAME,HOUSEID,ADDRESS,BUILDYEAR,PROPTYPE,PROPYEARS,UNITPRICE,TOTALPRICE,PAYTYPE,FLOORNUM,FLOORCNT,\n" +
|
||||
" BUILDTYPE, HOUSESTRU,BUILDSTRU,BUILDAREA,LIVINGAREA,HOUSESTYLE,ROOMCNT,LIVINGROOMCNT,KITCHENCNT, BATHROOMCNT,HOUSEASPECT,FITMENT,IFELEVATOR,ELEVATORHOUSE,to_char(PUBLISHTIME,'yyyy-mm-dd hh24:mi:ss') as PUBLISHTIME,to_char(EXPIRETIME,'yyyy-mm-dd hh24:mi:ss') as EXPIRETIME,\n" +
|
||||
" IFFIRST,DATASOURCE,AGENCYID,AGENCYNAME,PUBLISHER,PHONE,DESCRIPTION,REMARK,to_char(CREATETIME,'yyyy-mm-dd hh24:mi:ss') as CREATETIME, to_char(UPDATETIME,'yyyy-mm-dd hh24:mi:ss') as UPDATETIME,SOURCECODE,ATTACH from bigdata_forsale_gj where cityId='${cityCode}' and updatetime>=to_date('${publishDate}','yyyy-MM-dd')";
|
||||
allRows = getHouseDatas(sql)
|
||||
}
|
||||
if(allRows.size()>0){
|
||||
index = index + 1
|
||||
if(index == 1){
|
||||
FileUtils.batchCreateFile(allRows, fileName, headers, "utf-8", false);
|
||||
}else{
|
||||
FileUtils.batchCreateFile(allRows, fileName, headers, "utf-8", true);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
if(new_dists){//补充被修区域的数据
|
||||
def newstr = "('"+new_dists.join("','")+"')"
|
||||
def sql2 = "select CITYID,FORSALEID,PROPCODE,CITYNAME,DISTID,DISTNAME,COMMID,COMMNAME, BUILDID,BUILDNO, BUILDNAME,UNITID,UNITNO,UNITNAME,HOUSEID,ADDRESS,BUILDYEAR,PROPTYPE,PROPYEARS,UNITPRICE,TOTALPRICE,PAYTYPE,FLOORNUM,FLOORCNT,\n" +
|
||||
" BUILDTYPE, HOUSESTRU,BUILDSTRU,BUILDAREA,LIVINGAREA,HOUSESTYLE,ROOMCNT,LIVINGROOMCNT,KITCHENCNT, BATHROOMCNT,HOUSEASPECT,FITMENT,IFELEVATOR,ELEVATORHOUSE,to_char(PUBLISHTIME,'yyyy-mm-dd hh24:mi:ss') as PUBLISHTIME,to_char(EXPIRETIME,'yyyy-mm-dd hh24:mi:ss') as EXPIRETIME,\n" +
|
||||
" IFFIRST,DATASOURCE,AGENCYID,AGENCYNAME,PUBLISHER,PHONE,DESCRIPTION,REMARK,to_char(CREATETIME,'yyyy-mm-dd hh24:mi:ss') as CREATETIME, to_char(UPDATETIME,'yyyy-mm-dd hh24:mi:ss') as UPDATETIME,SOURCECODE,ATTACH " +
|
||||
"from bigdata_forsale_gj where distid in ${newstr}"
|
||||
def rets2 = getHouseDatas(sql2)
|
||||
if(rets2.size()>0){
|
||||
FileUtils.batchCreateFile(rets2, fileName, headers, "utf-8", true);
|
||||
}
|
||||
}
|
||||
println "融合 BIGDATA_FORSALE_GJ 数据文件输出完成......"
|
||||
CcbFtpUtils.ftpUpload("rh",fileName, curDate)
|
||||
println "融合 BIGDATA_FORSALE_GJ 上传Ftp完成......"
|
||||
}
|
||||
|
||||
def getHouseDatas(sql){
|
||||
def allRows = []
|
||||
def index = 0
|
||||
sqlInstance.eachRow(sql,{r->
|
||||
index = index+1
|
||||
println r.CITYNAME +" "+index
|
||||
def data = []
|
||||
data << r.CITYID
|
||||
data << r.FORSALEID
|
||||
data << r.PROPCODE
|
||||
data << r.CITYNAME
|
||||
data << r.DISTID
|
||||
data << r.DISTNAME
|
||||
data << r.COMMID
|
||||
data << r.COMMNAME
|
||||
data << r.BUILDID
|
||||
data << r.BUILDNO
|
||||
data << r.BUILDNAME
|
||||
data << r.UNITID
|
||||
data << r.UNITNO
|
||||
data << r.UNITNAME
|
||||
data << r.HOUSEID
|
||||
data << r.ADDRESS
|
||||
data << r.BUILDYEAR
|
||||
data << r.PROPTYPE
|
||||
data << r.PROPYEARS
|
||||
data << r.UNITPRICE
|
||||
data << r.TOTALPRICE
|
||||
data << r.PAYTYPE
|
||||
data << r.FLOORNUM
|
||||
data << r.FLOORCNT
|
||||
data << r.BUILDTYPE
|
||||
data << r.HOUSESTRU
|
||||
data << r.BUILDSTRU
|
||||
data << r.BUILDAREA
|
||||
data << r.LIVINGAREA
|
||||
data << r.HOUSESTYLE
|
||||
data << r.ROOMCNT
|
||||
data << r.LIVINGROOMCNT
|
||||
data << r.KITCHENCNT
|
||||
data << r.BATHROOMCNT
|
||||
data << r.HOUSEASPECT
|
||||
data << r.FITMENT
|
||||
data << r.IFELEVATOR
|
||||
data << r.ELEVATORHOUSE
|
||||
data << r.PUBLISHTIME
|
||||
data << r.EXPIRETIME
|
||||
data << r.IFFIRST
|
||||
data << r.DATASOURCE
|
||||
data << r.AGENCYID
|
||||
data << r.AGENCYNAME
|
||||
data << r.PUBLISHER
|
||||
data << r.PHONE
|
||||
data << ""
|
||||
data << r.REMARK
|
||||
data << r.CREATETIME
|
||||
data << r.UPDATETIME
|
||||
data << r.SOURCECODE
|
||||
// data << r.ATTACH //融合房源没有这个字段
|
||||
allRows << data
|
||||
// if(allRows.size()%200000==0){
|
||||
// FileUtils.batchCreateFile(allRows, fileName, headers, "utf-8", true);
|
||||
// allRows.clear()
|
||||
// }
|
||||
});
|
||||
return allRows
|
||||
}
|
||||
|
||||
|
||||
def exportOk(curDate){
|
||||
// def curDate = DateUtils.formatDateByPattern(new Date(), "yyyyMMdd")
|
||||
def dataCodeFileName = "/ccb_rh/${curDate}/${curDate}.ok"
|
||||
if(CommonDatautils.isWindow()){
|
||||
|
||||
+56
@@ -0,0 +1,56 @@
|
||||
package com.fangjia.script.chongqing
|
||||
|
||||
import com.fangjia.script.util.ExcelUtils
|
||||
import com.fangjia.script.util.OpenApiClient
|
||||
|
||||
class CzMatchDistrict {
|
||||
|
||||
static main(args) {
|
||||
def task = new CzMatchDistrict();
|
||||
task.run();
|
||||
}
|
||||
|
||||
def run(){
|
||||
// match("C:\\Users\\gaojuan\\Desktop\\有样本小区 .xlsx")
|
||||
addFlag("C:\\Users\\gaojuan\\Desktop\\有样本小区 .xlsx")
|
||||
}
|
||||
|
||||
def addFlag(path){
|
||||
ExcelUtils.multiThreadingModify(path, { row ->
|
||||
if(row['B'] && row['G'] && row['B']==row['G']) {
|
||||
// if(row['C'] && row['C'].contains("(")){
|
||||
// def newValue = row['C'].replace("(","").replace(")","")
|
||||
// row['J'] = newValue
|
||||
// if(newValue == row['H'] && row['B'] == row['G']){
|
||||
// row['K'] = "加别名1"
|
||||
// }
|
||||
// }
|
||||
if (!row['K'] && row['C'].toString().endsWith("花园") && row['H']) {
|
||||
def newValue = row['C'].replace("花园", "")
|
||||
if (newValue && newValue == row['H']) {
|
||||
row['K'] = "加别名3"
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
def match(path){
|
||||
ExcelUtils.multiThreadingModify(path, { row ->
|
||||
if(row['C']){
|
||||
def city = row['A']
|
||||
def name = row['C']
|
||||
def region = row['B']
|
||||
println "[match] city:"+city+" region:"+region+" name:"+name
|
||||
def jsonObject = OpenApiClient.addressMatch(city, name, "property", false, region, name)
|
||||
if(jsonObject != null && jsonObject.precise!=-1) {
|
||||
row['G'] = jsonObject.get("district")
|
||||
row['H'] = jsonObject.get("name")
|
||||
row['I'] = jsonObject.get("id")
|
||||
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
package com.fangjia.script.chongqing
|
||||
import com.sun.org.apache.xml.internal.security.utils.Base64;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
import javax.crypto.Cipher;
|
||||
import javax.crypto.SecretKeyFactory;
|
||||
import javax.crypto.spec.DESedeKeySpec;
|
||||
import javax.crypto.spec.IvParameterSpec;
|
||||
import java.security.Key;
|
||||
|
||||
class Des3 {
|
||||
private final static String encoding = "UTF-8";
|
||||
|
||||
static main(args) {
|
||||
def task = new Des3()
|
||||
task.run()
|
||||
}
|
||||
def run(){
|
||||
try {
|
||||
String key = "111036369260679051122113";
|
||||
String iv = "23235645";//IV length must be 8 bytes long
|
||||
//加密
|
||||
String encryptStr = "Lk+AtbEWoNF0eQNrSsGoNJjRFuvnCaRKaypcAnaRvGpHtc2KmMOMbufut+JDWP5Rq/4qNAWsEch0iZgE5z2CTnAwCjoRTUl0"//encode("test", key, iv);
|
||||
System.out.println("密文: " + encryptStr);
|
||||
//解密
|
||||
String decryptStr = decode(encryptStr, key, iv);
|
||||
System.out.println("明文: " + decryptStr);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 方法描述:3DES加密
|
||||
* @author hyang
|
||||
*
|
||||
* @param plainText 明文
|
||||
* @param secretKey 密钥
|
||||
* @param iv 加密向量
|
||||
* @return String 密文
|
||||
* @throws Exception
|
||||
*/
|
||||
public static String encode(String plainText, String secretKey, String iv)
|
||||
throws Exception {
|
||||
Key deskey = null;
|
||||
DESedeKeySpec spec = new DESedeKeySpec(secretKey.getBytes());
|
||||
SecretKeyFactory keyfactory = SecretKeyFactory.getInstance("desede");
|
||||
deskey = keyfactory.generateSecret(spec);
|
||||
Cipher cipher = Cipher.getInstance("desede/CBC/PKCS5Padding");
|
||||
IvParameterSpec ips = new IvParameterSpec(iv.getBytes());
|
||||
cipher.init(Cipher.ENCRYPT_MODE, deskey, ips);
|
||||
byte[] encryptData = cipher.doFinal(plainText.getBytes(encoding));
|
||||
return Base64.encode(encryptData);
|
||||
}
|
||||
|
||||
/**
|
||||
* 方法描述: 3DES解密
|
||||
* @author hyang
|
||||
*
|
||||
* @param encryptText 密文
|
||||
* @param secretKey 密钥
|
||||
* @param iv 加密向量
|
||||
* @return String 明文
|
||||
* @throws Exception
|
||||
*/
|
||||
public static String decode(String encryptText, String secretKey, String iv)
|
||||
throws Exception {
|
||||
if (StringUtils.isBlank(encryptText) || StringUtils.isBlank(secretKey)) {
|
||||
return "";
|
||||
}
|
||||
Key deskey = null;
|
||||
DESedeKeySpec spec = new DESedeKeySpec(secretKey.getBytes());
|
||||
SecretKeyFactory keyfactory = SecretKeyFactory.getInstance("desede");
|
||||
deskey = keyfactory.generateSecret(spec);
|
||||
Cipher cipher = Cipher.getInstance("desede/CBC/NoPadding"); //desede/CBC/NoPadding 无填充 desede/CBC/PKCS5Padding 加密需要填充,解密一般加不加都结果一致
|
||||
IvParameterSpec ips = new IvParameterSpec(iv.getBytes());
|
||||
cipher.init(Cipher.DECRYPT_MODE, deskey, ips);
|
||||
byte[] decryptData = cipher.doFinal(Base64.decode(encryptText));
|
||||
return new String(decryptData, encoding).trim();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,100 @@
|
||||
package com.fangjia.script.chongqing
|
||||
|
||||
import com.fangjia.SecretUtils
|
||||
|
||||
import javax.crypto.Cipher
|
||||
import javax.crypto.SecretKey
|
||||
import javax.crypto.spec.SecretKeySpec
|
||||
|
||||
class Des3Test {
|
||||
//定义加密算法,有DES、DESede(即3DES)、Blowfish
|
||||
private static final String Algorithm = "DESede";
|
||||
private static final String PASSWORD_CRYPT_KEY = "111036369260679051122113";
|
||||
|
||||
|
||||
/**
|
||||
* 加密方法
|
||||
* @param src 源数据的字节数组
|
||||
* @return
|
||||
*/
|
||||
public static byte[] encryptMode(byte[] src) {
|
||||
try {
|
||||
SecretKey deskey = new SecretKeySpec(build3DesKey(PASSWORD_CRYPT_KEY), Algorithm); //生成密钥
|
||||
Cipher c1 = Cipher.getInstance(Algorithm); //实例化负责加密/解密的Cipher工具类
|
||||
c1.init(Cipher.ENCRYPT_MODE, deskey); //初始化为加密模式
|
||||
return c1.doFinal(src);
|
||||
} catch (java.security.NoSuchAlgorithmException e1) {
|
||||
e1.printStackTrace();
|
||||
} catch (javax.crypto.NoSuchPaddingException e2) {
|
||||
e2.printStackTrace();
|
||||
} catch (java.lang.Exception e3) {
|
||||
e3.printStackTrace();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 解密函数
|
||||
* @param src 密文的字节数组
|
||||
* @return
|
||||
*/
|
||||
public static byte[] decryptMode(byte[] src) {
|
||||
try {
|
||||
SecretKey deskey = new SecretKeySpec(build3DesKey(PASSWORD_CRYPT_KEY), Algorithm);
|
||||
Cipher c1 = Cipher.getInstance(Algorithm);
|
||||
c1.init(Cipher.DECRYPT_MODE, deskey); //初始化为解密模式
|
||||
return c1.doFinal(src);
|
||||
} catch (java.security.NoSuchAlgorithmException e1) {
|
||||
e1.printStackTrace();
|
||||
} catch (javax.crypto.NoSuchPaddingException e2) {
|
||||
e2.printStackTrace();
|
||||
} catch (java.lang.Exception e3) {
|
||||
e3.printStackTrace();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* 根据字符串生成密钥字节数组
|
||||
* @param keyStr 密钥字符串
|
||||
* @return
|
||||
* @throws UnsupportedEncodingException
|
||||
*/
|
||||
public static byte[] build3DesKey(String keyStr) throws UnsupportedEncodingException{
|
||||
byte[] key = new byte[24]; //声明一个24位的字节数组,默认里面都是0
|
||||
byte[] temp = keyStr.getBytes("UTF-8"); //将字符串转成字节数组
|
||||
|
||||
/*
|
||||
* 执行数组拷贝
|
||||
* System.arraycopy(源数组,从源数组哪里开始拷贝,目标数组,拷贝多少位)
|
||||
*/
|
||||
if(key.length > temp.length){
|
||||
//如果temp不够24位,则拷贝temp数组整个长度的内容到key数组中
|
||||
System.arraycopy(temp, 0, key, 0, temp.length);
|
||||
}else{
|
||||
//如果temp大于24位,则拷贝temp数组24个长度的内容到key数组中
|
||||
System.arraycopy(temp, 0, key, 0, key.length);
|
||||
}
|
||||
return key;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param args
|
||||
*/
|
||||
public static void main(String[] args) {
|
||||
String msg = "3DES加密解密案例";
|
||||
System.out.println("【加密前】:" + msg);
|
||||
|
||||
//加密
|
||||
// byte[] secretArr = Des3Test.encryptMode(msg.getBytes());
|
||||
// System.out.println("【加密后】:" + new String(secretArr));
|
||||
|
||||
String s = "Lk+AtbEWoNF0eQNrSsGoNJjRFuvnCaRKaypcAnaRvGpHtc2KmMOMbufut+JDWP5Rq/4qNAWsEch0iZgE5z2CTnAwCjoRTUl0"
|
||||
|
||||
//解密
|
||||
byte[] myMsgArr = Des3Test.decryptMode(s.getBytes("UTF-8"));
|
||||
System.out.println("【解密后】:" + new String(myMsgArr));
|
||||
}
|
||||
}
|
||||
+703
@@ -0,0 +1,703 @@
|
||||
package com.fangjia.script.chongqing
|
||||
|
||||
import com.fangjia.core.RegionData
|
||||
import com.fangjia.core.util.HttpRequest
|
||||
import com.fangjia.script.ccbevaluation.CcbCommonUtils
|
||||
import com.fangjia.script.commData.CommonDatautils
|
||||
import com.fangjia.script.common.DataHandleUtils
|
||||
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.fangjia.script.util.OpenApiClient
|
||||
import com.mongodb.BasicDBObject
|
||||
import com.mongodb.DBCollection
|
||||
import com.mongodb.DBObject
|
||||
import net.sf.json.JSONObject
|
||||
import org.elasticsearch.index.query.BoolQueryBuilder
|
||||
import org.elasticsearch.index.query.QueryBuilder
|
||||
import org.elasticsearch.index.query.QueryBuilders
|
||||
|
||||
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
|
||||
import java.util.regex.Matcher
|
||||
import java.util.regex.Pattern
|
||||
|
||||
class HailanTest {
|
||||
|
||||
static def DIRECTIONS = ["东北", "西北", "东南", "西南", "南北", "东西", "东", "南", "西", "北"]
|
||||
private static final HashMap<String, List<String>> FITMENTS_TYPES_MAPS = new HashMap<String, List<String>>()
|
||||
static{
|
||||
FITMENTS_TYPES_MAPS.put("毛坯", ["毛坯", "清水", "无装修", "独栋毛坯", "毛胚", "白坯", "旧装", "坯", "原房", "毛坏"])
|
||||
FITMENTS_TYPES_MAPS.put("简装", ["简装", "普通装修", "普通", "简单装修", "简易装修", "普装", "一般装修", "一般", "简", "粗装修"])
|
||||
FITMENTS_TYPES_MAPS.put("精装", ["精装", "全装修", "全装", "中等装修", "中装", "中档装修", "精致装修", "中档", "中等", "精", "中修", "优质装修", "时尚装修", "良装", "中高挡"])
|
||||
FITMENTS_TYPES_MAPS.put("豪装", ["豪华装修", "高档", "豪华", "豪装", "高级装修", "高装", "奢侈"])
|
||||
}
|
||||
|
||||
static ExecutorService fixedThreadPool = Executors.newFixedThreadPool(80)
|
||||
def static final DBCollection AVERAGE_STATISTICS = MongoUtils.getCollectionByName("fangjia", "average_statistics", "192.168.0.43")
|
||||
|
||||
static main(args) {
|
||||
def task = new HailanTest();
|
||||
task.run();
|
||||
}
|
||||
|
||||
def run(){
|
||||
def inputfile = "D:\\数据\\海南\\统计.xlsx"
|
||||
// match(inputfile)
|
||||
// addPrice(inputfile)
|
||||
// addCommId("D:\\数据\\海南\\匹配上的合并数据.xlsx")
|
||||
// addHouse(inputfile)
|
||||
// stat(inputfile)
|
||||
hailanStat(inputfile)
|
||||
}
|
||||
|
||||
def addHouse(inputfile){
|
||||
|
||||
def datas = []
|
||||
datas << ["类型(住宅/别墅)","行政区划","详细地址","房号","小区名称","建筑面积","所在楼层","详细地址","小区名","交易日居住用房价格指数","评估日居住用房价格指数","是否有电梯","所在楼层","总楼层","内部装修","平面布置","朝向",
|
||||
"景观","建筑结构","建筑面积(平方米)","房屋可使用年限","房屋已使用年限","评估价(单价)","挂牌价(单价)","成交价(单价)","小区/楼盘均价(单价)"]
|
||||
def index = 0
|
||||
ExcelUtils.multiThreadingModify(inputfile, { row ->
|
||||
if(row['L']){
|
||||
index ++
|
||||
def dist = CommonDatautils.findDistrict(row['H'], row['I'], row['J'], "district")
|
||||
def rets = findHouses(row['H'], row['I'], "sell", 20200101,20230113, row['J'], null, row['k'])
|
||||
println index +" "+ row['C']+" "+ rets.size()
|
||||
if(rets){
|
||||
def lastRets = []
|
||||
for(def r : rets){
|
||||
def fjwPrice = row['M']
|
||||
if(fjwPrice){
|
||||
def precent = java.lang.Math.abs((fjwPrice-r.avg_price)*100/r.avg_price)
|
||||
if(precent>=10){
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if(row['A'] && row['A']=="别墅"){
|
||||
def inputAare = row['F'].toString().toDouble()
|
||||
def minArea = inputAare + 50
|
||||
def maxArea = inputAare + 100
|
||||
if(r.area<minArea && r.area>maxArea){
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
lastRets << r
|
||||
if(lastRets.size()>=3){
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if(lastRets){
|
||||
for(def lr : lastRets){
|
||||
def data = []
|
||||
data << row['A']
|
||||
data << row['B']
|
||||
data << row['C']
|
||||
data << row['D']
|
||||
data << row['E']
|
||||
data << row['F']
|
||||
data << row['G']
|
||||
if(dist){
|
||||
data << dist.address
|
||||
}else{
|
||||
data << ""
|
||||
}
|
||||
if(dist){
|
||||
data << dist.name
|
||||
}else{
|
||||
data << ""
|
||||
}
|
||||
|
||||
data << ""
|
||||
data << ""
|
||||
if(lr.height){
|
||||
if(lr.height>6){
|
||||
data << "是"
|
||||
}else{
|
||||
data << "否"
|
||||
}
|
||||
}else{
|
||||
data << ""
|
||||
}
|
||||
data << lr.floor
|
||||
data << lr.height
|
||||
data << lr.fitment
|
||||
data << ""
|
||||
data << lr.direction
|
||||
data << ""
|
||||
data << lr.build_type
|
||||
data << lr.area
|
||||
data << dist.property_life
|
||||
// def year = dist.create_year
|
||||
// if(year){
|
||||
// data << getHouseYear(year.toInteger())//已使用年限
|
||||
// }else{
|
||||
// data << ""//已使用年限
|
||||
// }
|
||||
data << getHouseYear(dist.create_year , lr.build_date, dist.build_date)
|
||||
|
||||
data << getEvalutaionPrice(lr, dist)//评估价(单价)
|
||||
data << lr.avg_price
|
||||
data << getDealPrice(dist)//成交单价
|
||||
data << row['M']
|
||||
datas << data
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
ExcelUtils.write("D:\\数据\\海南\\海南样本数据.xlsx", datas, "样本数据")
|
||||
}
|
||||
|
||||
def getDealPrice(dist){
|
||||
def json = OpenApiClient.searchDealPrice(dist._id.toString(),"20220101", 100)
|
||||
def prices = []
|
||||
if(json && json.code==200){
|
||||
def result = json.result
|
||||
if(result){
|
||||
for(def r : result){
|
||||
prices << r.avgPrice
|
||||
}
|
||||
}
|
||||
}
|
||||
def dealAvgPrice = null
|
||||
if(prices){
|
||||
dealAvgPrice = (prices.sum()/prices.size()).toInteger()
|
||||
}
|
||||
return dealAvgPrice;
|
||||
}
|
||||
|
||||
def getHouseYear(create_year , house_build_date, dist_build_date){
|
||||
def year = null
|
||||
if(house_build_date){
|
||||
year = getYear(house_build_date)
|
||||
|
||||
}else if(dist_build_date){
|
||||
year = getYear(dist_build_date)
|
||||
}else if(create_year){
|
||||
year = create_year
|
||||
}
|
||||
if(year){
|
||||
year = year.toInteger()
|
||||
def curYear = new Date().getYear()+1900
|
||||
def modYear = curYear - year
|
||||
return modYear.toInteger().toString()
|
||||
}
|
||||
return null
|
||||
|
||||
}
|
||||
|
||||
|
||||
def getYear(finishBuildingDate){
|
||||
if(finishBuildingDate){
|
||||
Pattern pat3 = Pattern.compile("\\d{4}");
|
||||
def matcher3 = pat3.matcher(finishBuildingDate);
|
||||
if(matcher3.find()){
|
||||
return matcher3.group()
|
||||
}
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
||||
|
||||
def getEvalutaionPrice(house, dist){
|
||||
def params = [:]
|
||||
params.put("city", dist.city);
|
||||
params.put("district", dist.region);
|
||||
params.put("name", dist.name);
|
||||
params.put("size", String.valueOf(house.area));
|
||||
if(house.height) {
|
||||
params.put("maxFloor", dist.house_height.toString());
|
||||
params.put("direction", getDirectionCode(house.direction).toString());//朝向
|
||||
if (house.house_floor) {
|
||||
params.put("floor", house.house_floor.toString());
|
||||
}
|
||||
}
|
||||
def fitmentCode = null
|
||||
if(house.fitment){
|
||||
fitmentCode = getFitmentCode(house.fitment)
|
||||
params.put("decoration", fitmentCode.toString());//装修
|
||||
}
|
||||
params.put("scope", "1")
|
||||
def result = OpenApiClient.evaluateDistrictPrice(params);
|
||||
|
||||
if(result){
|
||||
return result.avgPrice
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
||||
|
||||
def getDirectionCode(def s){
|
||||
def directMap = ["西南":1, "东南":2, "南":3, "西北":4, "东北":5, "东":6, "西":7, "北":8, "东西":9, "南北":10]
|
||||
return directMap.get(s);
|
||||
}
|
||||
def getFitmentCode(def s){
|
||||
if(s){
|
||||
if(["毛坯"].contains(s)){
|
||||
return 1;
|
||||
}else if(["简单装修","简装"].contains(s)){
|
||||
return 2;
|
||||
}else if(["精装修","精装"].contains(s)){
|
||||
return 3;
|
||||
}else if(["豪华装修","豪装"].contains(s)){
|
||||
return 4;
|
||||
}
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
def findHouses(def city, def region, def cat, def startDate, def endDate, def name, def alias, def estate_type2){
|
||||
|
||||
QueryBuilder date_range = QueryBuilders.rangeQuery("p_date").from(startDate).to(endDate).includeLower(false).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(alias && alias.size()>0){
|
||||
BoolQueryBuilder inBuilder = QueryBuilders.boolQuery();
|
||||
for(def s : alias){
|
||||
inBuilder.should(QueryBuilders.matchQuery("district_name", s));
|
||||
}
|
||||
queryBuilder.must(inBuilder)
|
||||
}
|
||||
|
||||
|
||||
def rets = []
|
||||
def hosts = ["192.168.0.206","192.168.0.211","192.168.0.212","192.168.0.213","192.168.0.214","192.168.0.215"]
|
||||
def index = new Random().nextInt(5);
|
||||
|
||||
def houses = ElasticUtils.executeSimpleQuery(hosts[index], "seawater-20*", queryBuilder);
|
||||
|
||||
if(houses){
|
||||
for (int k=0;k<houses.size();k++) {
|
||||
def map = houses[k];
|
||||
DBObject seawater = new BasicDBObject(map)
|
||||
|
||||
if(estate_type2 && estate_type2=="普通住宅"){
|
||||
if(seawater.estate_type && (seawater.estate_type.contains("商住") || seawater.estate_type.contains("商业") || seawater.estate_type.contains("商务"))){
|
||||
println city +" "+name+" "+seawater._id.toString()+" "+seawater.estate_type
|
||||
continue;
|
||||
}
|
||||
|
||||
if(seawater.estate_type&& seawater.estate_type.contains("别墅")){
|
||||
println city +" "+name+" "+seawater._id.toString()+" "+seawater.estate_type
|
||||
continue;
|
||||
}
|
||||
// def vallaFlag = isVilla(seawater.area, seawater.name, seawater.height, seawater.room)
|
||||
// if(vallaFlag){
|
||||
// continue;
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
if(!seawater.total_price){
|
||||
continue;
|
||||
}
|
||||
if(!seawater.avg_price){
|
||||
continue;
|
||||
}
|
||||
|
||||
// if(!seawater.height){
|
||||
// seawater.height = null
|
||||
// }
|
||||
|
||||
if(seawater.height && seawater.height>60){
|
||||
continue;
|
||||
}
|
||||
|
||||
// if(!seawater.room){
|
||||
// continue;
|
||||
// }
|
||||
// if(!seawater.room){
|
||||
// seawater.room = null
|
||||
// }
|
||||
|
||||
if(seawater.room){
|
||||
if(seawater.room>=11 || seawater.room<1){
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
if(!seawater.hall){
|
||||
seawater.hall = null
|
||||
}
|
||||
if(seawater.hall && (seawater.hall>=5 || seawater.hall<1)){
|
||||
continue;
|
||||
}
|
||||
if(!seawater.toilet){
|
||||
seawater.toilet = null
|
||||
}
|
||||
if(seawater.toilet && (seawater.toilet>=5 || seawater.toilet<1)){
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
def floor = parseFloor(seawater.floor_info)
|
||||
if(seawater.height && floor && floor.isNumber()){
|
||||
if(floor.toInteger()>seawater.height){
|
||||
floor = null
|
||||
seawater.height = null
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if(!floor){
|
||||
seawater.floor = null
|
||||
}
|
||||
if(floor && floor.toInteger()<1){
|
||||
floor = null
|
||||
}
|
||||
|
||||
def rowMap = [:];
|
||||
|
||||
rowMap.houseId = seawater.id
|
||||
// rowMap.city = CcbCommonUtils.getCcbCity(city)
|
||||
//rowMap.region =seawater.region
|
||||
//rowMap.address = seawater.address
|
||||
rowMap.area = seawater.area
|
||||
rowMap.address = seawater.address
|
||||
rowMap.total_price = seawater.total_price
|
||||
rowMap.avg_price = seawater.avg_price
|
||||
rowMap.build_type = seawater.build_type
|
||||
rowMap.build_date = seawater.build_date
|
||||
rowMap.district_name = seawater.district_name
|
||||
rowMap.height = seawater.height=="null"?null:seawater.height
|
||||
if(rowMap.height && rowMap.height<1){
|
||||
rowMap.height = null
|
||||
}
|
||||
rowMap.floor = floor=="null"?null:floor
|
||||
rowMap.room = seawater.room=="null"?null:seawater.room
|
||||
rowMap.hall = seawater.hall=="null"?null:seawater.hall
|
||||
rowMap.toilet = seawater.toilet=="null"?null:seawater.toilet
|
||||
|
||||
|
||||
def direction = parseDirection(seawater.direction)
|
||||
rowMap.direction = direction=="null"?null:direction
|
||||
|
||||
def fitment = parseFitment(seawater.fitment)
|
||||
rowMap.fitment = fitment=="null"?null:fitment
|
||||
|
||||
|
||||
|
||||
if(seawater.p_date instanceof String){
|
||||
seawater.p_date = seawater.p_date.toInteger()
|
||||
}
|
||||
|
||||
rowMap.p_date = DateUtils.formatDateByPattern(DateUtils.parseFromTightYYYYMMDD2(seawater.p_date.toString()), "yyyy-MM-dd HH:mm:ss")
|
||||
rowMap.c_date = DateUtils.getConverDate(seawater.m_date)
|
||||
rowMap.m_date = DateUtils.getConverDate(seawater.m_date)
|
||||
|
||||
rets << rowMap
|
||||
}
|
||||
}
|
||||
return rets;
|
||||
}
|
||||
|
||||
|
||||
static def parseFloor(def floorDesc){
|
||||
if(floorDesc){
|
||||
floorDesc = floorDesc.replaceAll("[\\s ]+", "")
|
||||
if(floorDesc){
|
||||
Pattern pat1 = Pattern.compile("第(\\d{1,2})层");
|
||||
Matcher matcher1 = pat1.matcher(floorDesc);
|
||||
if (matcher1.find()) {
|
||||
return matcher1.group(1)
|
||||
}
|
||||
pat1 = Pattern.compile("(\\d{1,2})层?(/|\\()共?\\d{1,2}(层|F)?");
|
||||
matcher1 = pat1.matcher(floorDesc);
|
||||
if (matcher1.find()) {
|
||||
return matcher1.group(1)
|
||||
}
|
||||
// if(floorDesc.contains("中楼层") || floorDesc.contains("中层")){
|
||||
// return "中层"
|
||||
// }
|
||||
//
|
||||
// if(floorDesc.contains("高楼层") || floorDesc.contains("高层")){
|
||||
// return "高层"
|
||||
// }
|
||||
//
|
||||
//
|
||||
// if(floorDesc.contains("低楼层") || floorDesc.contains("低层")){
|
||||
// return "低层"
|
||||
// }
|
||||
if(floorDesc.isNumber()){
|
||||
return floorDesc;
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
static String parseDirection(String directionDesc) {
|
||||
if (directionDesc == null) {
|
||||
return null
|
||||
}
|
||||
directionDesc = directionDesc.replaceAll("(\\(|(|《|\"|“|【|〔).+?(\\)|》|)|\"|”|】|〕)", "#_#")
|
||||
StringBuffer sb = new StringBuffer()
|
||||
for (int i = 0; i < directionDesc.length(); i++) {
|
||||
String c = directionDesc.substring(i, i + 1)
|
||||
if (DIRECTIONS.contains(c)) {
|
||||
if (directionDesc.substring(i).startsWith(c + "#_#")) {
|
||||
sb.append(c + " ")
|
||||
} else {
|
||||
sb.append(c)
|
||||
}
|
||||
}
|
||||
}
|
||||
for (String d : DIRECTIONS) {
|
||||
if (sb.toString().startsWith(d)) {
|
||||
return d
|
||||
}
|
||||
}
|
||||
for (String d : DIRECTIONS) {
|
||||
if (sb.toString().contains(d)) {
|
||||
return d
|
||||
}
|
||||
}
|
||||
return null
|
||||
|
||||
}
|
||||
|
||||
static String parseFitment(String fitmentDesc) {
|
||||
if (fitmentDesc == null) {
|
||||
return null
|
||||
}
|
||||
fitmentDesc = fitmentDesc.replaceAll("[\\s ]+", "")
|
||||
if (fitmentDesc.equals("非毛坯")) {
|
||||
return null
|
||||
}
|
||||
Iterator<Map.Entry<String, List<String>>> it = FITMENTS_TYPES_MAPS
|
||||
.entrySet().iterator()
|
||||
Map.Entry<String, List<String>> entry
|
||||
while (it.hasNext()) {
|
||||
entry = it.next()
|
||||
if (fitmentDesc.contains(entry.getKey())) {
|
||||
return entry.getKey()
|
||||
}
|
||||
for (String fitmentKey : entry.getValue()) {
|
||||
if (fitmentDesc.contains(fitmentKey)) {
|
||||
return entry.getKey()
|
||||
}
|
||||
}
|
||||
}
|
||||
return null
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
def addCommId(inputfile){
|
||||
ExcelUtils.modify(inputfile, { row ->
|
||||
if(row['H']){
|
||||
def dist = CommonDatautils.findDistrict(row['H'], row['I'], row['J'], "district")
|
||||
if(dist){
|
||||
row['L'] = dist._id.toString()
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
def addPrice(path){
|
||||
ExcelUtils.multiThreadingModify(path, { row ->
|
||||
def commid = row['L']
|
||||
if(commid){
|
||||
def dist = CommonDatautils.findDistrictById(commid.trim())
|
||||
if(dist){
|
||||
def priceObj = CommonDatautils.findDistrictPrice(dist.city, dist.region, dist.name)
|
||||
if(priceObj){
|
||||
row['M'] = priceObj.avg_price
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
def match(path){
|
||||
ExcelUtils.multiThreadingModify(path, { row ->
|
||||
if(row['C']){
|
||||
String city = row['H']//RegionData.formatCity(row['B'])
|
||||
if(city){
|
||||
def address = row['C']
|
||||
// def region = row['C']
|
||||
println "[match] city:"+city+" address:"+address
|
||||
def jsonObject = OpenApiClient.addressMatch(city, address, "property", false, null, row['E'])
|
||||
if(jsonObject != null && jsonObject.precise!=-1) {
|
||||
row['I'] = jsonObject.get("district")
|
||||
row['J'] = jsonObject.get("name")
|
||||
row['K'] = jsonObject.get("propertyType")
|
||||
row['L'] = jsonObject.get("id")
|
||||
}
|
||||
}else{
|
||||
println row['C']
|
||||
}
|
||||
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
def stat(path){
|
||||
ExcelUtils.modify(path, { row ->
|
||||
if(row['L'] && !row['H']){
|
||||
def city = row['L']
|
||||
def region = row['M']
|
||||
def dists = null
|
||||
if(city && region){
|
||||
dists = CommonDatautils.findDistrictByCityAndRegions(city, "district", [region], ["city","region","name","alias","estate_type2"])
|
||||
}else{
|
||||
dists = CommonDatautils.findAllDistrictByCity(city, "district", ["city","region","name","alias","estate_type2"])
|
||||
}
|
||||
def distLists = []
|
||||
def villaLists = []
|
||||
for(def d : dists){
|
||||
if(d.estate_type2=="别墅"){
|
||||
villaLists << d
|
||||
}else{
|
||||
distLists << d
|
||||
}
|
||||
}
|
||||
row['J'] = dists.size()
|
||||
|
||||
def haveHouseList = findHaveHouseDist(distLists)
|
||||
def haveVillaList = findHaveHouseDist(villaLists)
|
||||
row['H'] = haveHouseList
|
||||
row['I'] = haveVillaList
|
||||
// row['N'] = distLists.size()
|
||||
// row['O'] = villaLists.size()
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
def hailanStat(path){
|
||||
def total = 0
|
||||
def distTotal = 0
|
||||
def villaTotal = 0
|
||||
def haveHouseDistTotal = 0
|
||||
def haveHouseVillaTotal = 0
|
||||
def buildStructureTotal = 0
|
||||
// ExcelUtils.modify(path, { row ->
|
||||
// if (row['L'] && !row['K']) {
|
||||
//"海口","三亚","三沙","儋州",
|
||||
def citys = ["五指山","琼海","文昌","万宁","东方","定安","屯昌","澄迈","临高","白沙","昌江","乐东","陵水","保亭","琼中"]
|
||||
for(def city : citys) {
|
||||
|
||||
def dists = null
|
||||
// if (city && region) {
|
||||
// dists = CommonDatautils.findDistrictByCityAndRegions(city, "district", [region], ["city", "region", "name", "alias", "estate_type2", "build_structure"])
|
||||
// } else {
|
||||
dists = CommonDatautils.findAllDistrictByCity(city, "district", ["city", "region", "name", "alias", "estate_type2", "build_structure"])
|
||||
// }
|
||||
def distLists = []
|
||||
def villaLists = []
|
||||
for (def d : dists) {
|
||||
if (d.estate_type2 == "别墅") {
|
||||
villaLists << d
|
||||
} else {
|
||||
distLists << d
|
||||
}
|
||||
}
|
||||
total = total + dists.size()
|
||||
|
||||
// def structureCount = 0
|
||||
// for(def d : dists){
|
||||
// if(d.build_structure){
|
||||
// structureCount ++
|
||||
// }
|
||||
// }
|
||||
// println structureCount
|
||||
// row['K'] = structureCount
|
||||
// buildStructureTotal = buildStructureTotal + structureCount
|
||||
//
|
||||
def haveHouseList = findHaveHouseDist(distLists)
|
||||
def haveVillaList = findHaveHouseDist(villaLists)
|
||||
haveHouseDistTotal = haveHouseDistTotal + haveHouseList
|
||||
haveHouseVillaTotal = haveHouseVillaTotal + haveVillaList
|
||||
distTotal = distTotal + distLists.size()
|
||||
villaTotal = villaTotal + villaLists.size()
|
||||
// println c +" "+total+" "+buildStructureTotal
|
||||
// }
|
||||
}
|
||||
// })
|
||||
|
||||
println total +" "+haveHouseDistTotal+" "+haveHouseVillaTotal+" "+distTotal+" "+villaTotal+" "+buildStructureTotal
|
||||
|
||||
}
|
||||
|
||||
def findHaveHouseDist(districts){
|
||||
def totalCount = new AtomicLong()
|
||||
final CountDownLatch latch = new CountDownLatch(districts.size())
|
||||
println "小区量:"+districts.size()
|
||||
|
||||
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 ret = findHouses(dist.city, dist.region, "sell", 20210101, null, dist.name, dist.alias, dist.estate_type2)
|
||||
if(!ret){
|
||||
ret = findThirdPrice(dist)
|
||||
}
|
||||
if(ret && ret.size()>0){
|
||||
rets.add(dist)
|
||||
}
|
||||
println totalCount.get() +" "+ ret.size()
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace()
|
||||
} finally {
|
||||
latch.countDown()
|
||||
}
|
||||
};
|
||||
})
|
||||
}
|
||||
latch.await()
|
||||
return rets.size()
|
||||
}
|
||||
|
||||
|
||||
def findThirdPrice(dist){
|
||||
def q = new BasicDBObject()
|
||||
q.put("city", dist.city)
|
||||
q.put("region", dist.region)
|
||||
q.put("name", dist.name)
|
||||
q.put("s_date", new BasicDBObject('$gte', 202201))
|
||||
def dbcursor = AVERAGE_STATISTICS.find(q)
|
||||
def prices = []
|
||||
if(dbcursor){
|
||||
for(def d : dbcursor){
|
||||
def set = d.keySet();
|
||||
Iterator it = set.iterator()
|
||||
while(it.hasNext()){
|
||||
def key = it.next()
|
||||
if(key && key.contains("_price") && key!="fangjia_price" && key!="last_price"){
|
||||
def price = d[key]
|
||||
if(price){
|
||||
prices << price
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return prices;
|
||||
}
|
||||
}
|
||||
+328
@@ -0,0 +1,328 @@
|
||||
package com.fangjia.script.chongqing
|
||||
|
||||
import com.fangjia.script.commData.CommonDatautils
|
||||
import com.fangjia.script.common.DataHandleUtils
|
||||
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 com.rabbitmq.client.impl.AMQImpl
|
||||
import org.apache.lucene.queryparser.classic.QueryParser
|
||||
import org.elasticsearch.index.query.BoolQueryBuilder
|
||||
import org.elasticsearch.index.query.QueryBuilder
|
||||
import org.elasticsearch.index.query.QueryBuilders
|
||||
|
||||
import java.util.concurrent.ConcurrentHashMap
|
||||
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 MingShenPocStat {
|
||||
|
||||
static ExecutorService fixedThreadPool = Executors.newFixedThreadPool(40)
|
||||
|
||||
private static final DBCollection district_sell_stat_coll = MongoUtils.getCollectionByName("fangjia_stat", "district_sell_stat", "mongo.db.fangjia.com")
|
||||
final static DBCollection CITY_INFO_CONN = MongoUtils.getCollectionByName("fangjia_data_ana", "city_info", MongoUtils.MongoDB_Domain_mongo);
|
||||
|
||||
static main(args) {
|
||||
def task = new MingShenPocStat()
|
||||
// task.run()
|
||||
task.officeRun()
|
||||
}
|
||||
|
||||
def officeRun(){
|
||||
def path = "D:\\数据\\民生\\抽样-写字楼类.xlsx"
|
||||
def datas = []
|
||||
ExcelUtils.modify(path, { d ->
|
||||
if(d['B']){
|
||||
|
||||
def office = CommonDatautils.findDistrictById(d['C'])
|
||||
if(office){
|
||||
def alias = []
|
||||
alias << office.name
|
||||
if(office.alias){
|
||||
def nameAlias = office.alias
|
||||
for(def o : nameAlias){
|
||||
if(o){
|
||||
alias << o
|
||||
}
|
||||
}
|
||||
}
|
||||
def aliasStr = escapeExprSpecialWord(alias.join("','"))
|
||||
def houses = findOfficeHouseCount(office.city, office.region, aliasStr)
|
||||
if(houses){
|
||||
if(houses.size()>=2){
|
||||
houses = houses[0..1]
|
||||
}
|
||||
for(def h : houses){
|
||||
def obj = findOfficeAvgPrice(office)
|
||||
def rets = []
|
||||
rets << d['A']
|
||||
rets << d['B']
|
||||
rets << ''
|
||||
rets << h.region
|
||||
rets << office.address
|
||||
rets << h.area
|
||||
rets << h.floor
|
||||
rets << h.height
|
||||
def level = office.bed_kind
|
||||
rets << level
|
||||
rets << h.fitment
|
||||
def date = office.finish_building_date
|
||||
if(date){
|
||||
rets << date.substring(0, 4)
|
||||
}else{
|
||||
rets << ""
|
||||
}
|
||||
|
||||
rets << ""
|
||||
rets << ""
|
||||
def price = ""
|
||||
if(obj && obj.avg_price){
|
||||
price = obj.avg_price
|
||||
rets << obj.avg_price
|
||||
}else{
|
||||
rets << ""
|
||||
}
|
||||
|
||||
if(price){
|
||||
rets << (price*h.area).toInteger()
|
||||
}
|
||||
datas << rets
|
||||
}
|
||||
}
|
||||
}else{
|
||||
def rets = []
|
||||
rets << d['A']
|
||||
rets << d['B']
|
||||
datas << rets
|
||||
}
|
||||
|
||||
// def districts = CommonDatautils.findAllDistrictByCity(d['C'],"office",["city", "region", "name", "alias","address","bed_kind","finish_building_date"])
|
||||
|
||||
}
|
||||
})
|
||||
|
||||
ExcelUtils.write("D:\\数据\\民生\\抽样-写字楼类-样本.xlsx", datas, "样本")
|
||||
}
|
||||
|
||||
def run(){
|
||||
def path = "D:\\数据\\民生\\样本字段覆盖率.xlsx"
|
||||
// def datas = ExcelUtils.read("C:\\Users\\gaojuan\\Downloads\\二期估值数据每周统计\\二期估值数据每周统计\\估值数据统计结果20230112.xlsx", 0 , 1)
|
||||
//
|
||||
// ExcelUtils.modify(path, { row ->
|
||||
// if(row['C']) {
|
||||
// def total = 0
|
||||
// def pre = 0
|
||||
// for(def d : datas){
|
||||
// if(row['C']==d['A']){
|
||||
// total = d['B']
|
||||
// pre = d['H']
|
||||
// break
|
||||
// }
|
||||
// }
|
||||
// if(total){
|
||||
// def c = (total*pre/100).toInteger()
|
||||
// row['E'] = c
|
||||
// row['F'] = pre+"%"
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
|
||||
def totalcount = findHouseTotal("大连")
|
||||
def count = findHouseCount("大连", "height")
|
||||
|
||||
println DataHandleUtils.getDoubleRound(2, count*100/totalcount)
|
||||
|
||||
// ExcelUtils.multiThreadingModify(path, { row ->
|
||||
// if(row['C']) {
|
||||
//def districts = CommonDatautils.findAllDistrictByCity(row['C'],"district",["city", "region", "name", "alias"])
|
||||
// def districts = CommonDatautils.findDistrictByCityAndRegions("大连","district",["旅顺口"], ["city", "region", "name", "alias"])
|
||||
// def total = districts.size()
|
||||
// if(total){
|
||||
// def house_dist_count = findHouseStat(districts)
|
||||
// def pre = house_dist_count*100/total
|
||||
// pre = DataHandleUtils.getDoubleRound(2, pre)
|
||||
// println total+" "+house_dist_count+" "+pre
|
||||
// }
|
||||
// def count = findHouseCount(row['C'])
|
||||
// row['D'] = count
|
||||
// println row['C']+" "+count
|
||||
// row['H'] = findDistrictSellStat(row['C'])
|
||||
// row['G'] = getNewDist(row['C'])
|
||||
|
||||
// def totalcount = findHouseTotal(row['C'])
|
||||
|
||||
// def total = row['Z']
|
||||
// def count = findHouseCount(row['C'], "build_date")
|
||||
// row['Q'] = DataHandleUtils.getDoubleRound(2, count*100/total)
|
||||
// println count +" "+row['Q']
|
||||
// def obj = getFieldPrecent(row['C'])
|
||||
// if(obj){
|
||||
// def detail = obj.district_detail
|
||||
// row['E'] = detail.alias.toDouble()*100
|
||||
// row['F'] = detail.address.toDouble()*100
|
||||
// row['G'] = detail.lng.toDouble()*100
|
||||
// row['H'] = detail.buildType.toDouble()*100
|
||||
// row['I'] = detail.outPics.toDouble()*100
|
||||
// row['J'] = detail.developer.toDouble()*100
|
||||
// row['Q'] = detail.buildDate.toDouble()*100
|
||||
// row['R'] = detail.buildDate.toDouble()*100
|
||||
// }
|
||||
// }
|
||||
// });
|
||||
}
|
||||
|
||||
def getFieldPrecent(city){
|
||||
def q = new BasicDBObject()
|
||||
q.put("city", city)
|
||||
def rets = CITY_INFO_CONN.find(q).sort(new BasicDBObject('weekend', -1))
|
||||
if(rets){
|
||||
return rets[0]
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
||||
|
||||
def getNewDist(city){
|
||||
String sql = "select count(*) as count from community where city='${city}' and source='贝壳找房-新房' "
|
||||
def count = null
|
||||
ElasticUtils.executeSqlQuery(sql,{ data->
|
||||
count = data.count
|
||||
})
|
||||
return count;
|
||||
}
|
||||
|
||||
def findDistrictSellStat(def city){
|
||||
def q = new BasicDBObject()
|
||||
q.put("city", city)
|
||||
def count = district_sell_stat_coll.count(q)
|
||||
return count
|
||||
}
|
||||
|
||||
|
||||
def findHouseStat(districts){
|
||||
def totalCount = new AtomicLong()
|
||||
final CountDownLatch latch = new CountDownLatch(districts.size())
|
||||
println "小区量:"+districts.size()
|
||||
|
||||
def rets = new CopyOnWriteArrayList()
|
||||
|
||||
for(def i=0;i<districts.size();i++){
|
||||
final def rMap = districts[i];
|
||||
fixedThreadPool.execute(new Runnable() {
|
||||
void run() {
|
||||
try {
|
||||
totalCount.addAndGet(1)
|
||||
def ret = findHouses(rMap.city, rMap.region, "sell", 20210101,rMap.name, rMap.alias)
|
||||
if(ret && ret.size()>0){
|
||||
rets.add(rMap)
|
||||
}
|
||||
println totalCount.get() +" "+ ret.size()
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace()
|
||||
} finally {
|
||||
latch.countDown()
|
||||
}
|
||||
};
|
||||
})
|
||||
}
|
||||
latch.await()
|
||||
return rets.size()
|
||||
}
|
||||
|
||||
def findHouseTotal(city){
|
||||
def count = 0
|
||||
ElasticUtils.executeSqlQuery("select count(*) as count from seawater where p_date >= 20220101 and city='${city}'", {
|
||||
count = it.count
|
||||
println("$city\t${it.count}")
|
||||
})
|
||||
return count
|
||||
}
|
||||
|
||||
def findHouseCount(city, field){
|
||||
def count = 0
|
||||
def sql = "select count(*) as count from seawater where city='${city}' and cat='sell' and "+field+" is not null"
|
||||
ElasticUtils.executeSqlQuery(sql, {
|
||||
count = it.count
|
||||
println("$city\t${it.count}")
|
||||
})
|
||||
return count
|
||||
}
|
||||
|
||||
def findHouses(def city, def region, def cat, def startDate, def name, def alias){
|
||||
|
||||
QueryBuilder date_range = QueryBuilders.rangeQuery("p_date").from(startDate).includeLower(false).includeUpper(false);
|
||||
QueryBuilder area_range = QueryBuilders.rangeQuery("area").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)
|
||||
}
|
||||
|
||||
|
||||
def rets = []
|
||||
def houses = ElasticUtils.executeSimpleQuery("192.168.0.206", "seawater-20*", queryBuilder);
|
||||
return houses;
|
||||
}
|
||||
|
||||
def findOfficeAvgPrice(office){
|
||||
def sql = "select * from office where city='${office.city}' and region='${office.region}' and name='${office.name}'"
|
||||
def rets = []
|
||||
ElasticUtils.executeSqlQuery(sql, {d->
|
||||
rets << d
|
||||
})
|
||||
if(rets){
|
||||
def obj = rets[0]
|
||||
return obj
|
||||
}
|
||||
return null
|
||||
|
||||
}
|
||||
|
||||
def findOfficeHouseCount(city, region, names){
|
||||
def sql = "select * from seawater where city='${city}' and region='${region}' and cat='office_sell' and district_name in ('${names}') and root='58.com'"
|
||||
def rets = []
|
||||
ElasticUtils.executeSqlQuery(sql, {d->
|
||||
rets << d
|
||||
})
|
||||
return rets
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 转义字符串中的特殊字符
|
||||
* 仅过滤Lucene regexps, 其他的勿用
|
||||
* @param keyword
|
||||
* @return
|
||||
*/
|
||||
public static String escapeExprSpecialWord(String keyword) {
|
||||
return QueryParser.escape(keyword);
|
||||
}
|
||||
}
|
||||
+459
@@ -0,0 +1,459 @@
|
||||
package com.fangjia.script.chongqing
|
||||
|
||||
import com.fangjia.core.RegionData
|
||||
import com.fangjia.script.commData.CommonDatautils
|
||||
import com.fangjia.script.gj.district.FangjiaClientUtils
|
||||
import com.fangjia.script.util.BaiduMapUtils
|
||||
import com.fangjia.script.util.DateUtils
|
||||
import com.fangjia.script.util.DbUtils
|
||||
import com.fangjia.script.util.ElasticUtils
|
||||
import com.fangjia.script.util.ExcelUtils
|
||||
import com.fangjia.script.util.GeoHelper
|
||||
import com.fangjia.script.util.OpenApiClient
|
||||
import com.mongodb.BasicDBObject
|
||||
import com.mongodb.DBObject
|
||||
import org.elasticsearch.index.query.BoolQueryBuilder
|
||||
import org.elasticsearch.index.query.QueryBuilder
|
||||
import org.elasticsearch.index.query.QueryBuilders
|
||||
|
||||
class MingShenPocTest {
|
||||
|
||||
def total = 5000
|
||||
static main(args) {
|
||||
def task = new MingShenPocTest()
|
||||
task.run()
|
||||
}
|
||||
def run(){
|
||||
def path = "D:\\数据\\民生\\poc测试.xlsx"
|
||||
//9级标准化
|
||||
//structureV2(path)//针对海南poc地址数据此接口不合适使用
|
||||
//省市区拆分
|
||||
// ner(path)//城市,区域带市带区
|
||||
// match(path)
|
||||
// addPrice(path)
|
||||
// addLatLng(path)
|
||||
// addAroundPrice(path)
|
||||
// addAuthor(path)
|
||||
addHouse(path)
|
||||
}
|
||||
|
||||
def structureV2(path){
|
||||
ExcelUtils.multiThreadingModify(path, { row ->
|
||||
if(row['A']){
|
||||
def jsonObj = FangjiaClientUtils.addressStructure(null, row['A'])
|
||||
if(jsonObj && jsonObj.result){
|
||||
|
||||
if(jsonObj.result.province){
|
||||
row['B'] = jsonObj.result.province
|
||||
}
|
||||
|
||||
if(jsonObj.result.city){
|
||||
def cityStr = null
|
||||
if(jsonObj.result.city=="市辖区"){
|
||||
cityStr = jsonObj.result.province
|
||||
}else{
|
||||
cityStr = jsonObj.result.city
|
||||
}
|
||||
row['C'] = RegionData.formatCity(cityStr)
|
||||
}
|
||||
|
||||
if(jsonObj.result.district){
|
||||
row['D'] = jsonObj.result.district
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
def ner(path){
|
||||
ExcelUtils.multiThreadingModify(path, { d ->
|
||||
if(d['A'] && !d['B']) {
|
||||
def json = FangjiaClientUtils.addressStand(null, d['A'])
|
||||
if(json && json.entities){
|
||||
def entities = json.entities
|
||||
for(def m : entities){
|
||||
if(m.type=="prov"){
|
||||
d['B'] = m.word
|
||||
}
|
||||
if(m.type=="city"){
|
||||
def cityStr = m.word
|
||||
if(cityStr){
|
||||
d['C'] = cityStr//RegionData.formatCity(cityStr)
|
||||
}
|
||||
}
|
||||
if(m.type=="dist") {
|
||||
if(d['C']){
|
||||
d['D'] = m.word //RegionData.formatRegion(d['C'], m.word)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
//可以根据测试数据添加 推荐楼盘名
|
||||
def match(path){
|
||||
ExcelUtils.multiThreadingModify(path, { row ->
|
||||
if(row['C'] && !row['E']){
|
||||
def city = RegionData.formatCity(row['C'])
|
||||
def region = null
|
||||
if(city){
|
||||
region = RegionData.formatRegion(city, row['D'])
|
||||
}
|
||||
def address = row['A']
|
||||
println "[match] city:"+city+" region:"+region+" address:"+address
|
||||
def jsonObject = OpenApiClient.addressMatch(city, address, null, false, region, null)//"property"
|
||||
if(jsonObject != null && jsonObject.precise!=-1) {
|
||||
row['E'] = jsonObject.get("city")
|
||||
row['F'] = jsonObject.get("district")
|
||||
row['G'] = jsonObject.get("name")
|
||||
row['H'] = jsonObject.get("propertyType")
|
||||
row['I'] = jsonObject.get("id")
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
def addPrice(path){
|
||||
ExcelUtils.multiThreadingModify(path, { row ->
|
||||
def commid = row['I']
|
||||
if(commid && !row['J']){
|
||||
def dist = CommonDatautils.findDistrictById(commid.trim())
|
||||
if(dist){
|
||||
def house = [:]
|
||||
house.area = 100
|
||||
def price = getEvalutaionPrice(house, dist)
|
||||
if(price){
|
||||
row['J'] = price
|
||||
}
|
||||
// def priceObj = CommonDatautils.findDistrictPrice(dist.city, dist.region, dist.name)
|
||||
// if(priceObj){
|
||||
// row['J'] = priceObj.avg_price
|
||||
// }
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
def getEvalutaionPrice(house, dist){
|
||||
def params = [:]
|
||||
params.put("city", dist.city);
|
||||
params.put("district", dist.region);
|
||||
params.put("name", dist.name);
|
||||
params.put("size", String.valueOf(house.area));
|
||||
if(house.height) {
|
||||
params.put("maxFloor", dist.house_height.toString());
|
||||
params.put("direction", getDirectionCode(house.direction).toString());//朝向
|
||||
if (house.house_floor) {
|
||||
params.put("floor", house.house_floor.toString());
|
||||
}
|
||||
}
|
||||
def fitmentCode = null
|
||||
if(house.fitment){
|
||||
fitmentCode = getFitmentCode(house.fitment)
|
||||
params.put("decoration", fitmentCode.toString());//装修
|
||||
}
|
||||
params.put("scope", "1")
|
||||
def result = OpenApiClient.evaluateDistrictPrice(params);
|
||||
|
||||
if(result){
|
||||
return result.avgPrice
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
||||
|
||||
def getDirectionCode(def s){
|
||||
def directMap = ["西南":1, "东南":2, "南":3, "西北":4, "东北":5, "东":6, "西":7, "北":8, "东西":9, "南北":10]
|
||||
return directMap.get(s);
|
||||
}
|
||||
def getFitmentCode(def s){
|
||||
if(s){
|
||||
if(["毛坯"].contains(s)){
|
||||
return 1;
|
||||
}else if(["简单装修","简装"].contains(s)){
|
||||
return 2;
|
||||
}else if(["精装修","精装"].contains(s)){
|
||||
return 3;
|
||||
}else if(["豪华装修","豪装"].contains(s)){
|
||||
return 4;
|
||||
}
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
||||
def addLatLng(path){
|
||||
ExcelUtils.multiThreadingModify(path, { d ->
|
||||
if(!d['J'] && d['H'] && (d['H']=="普通住宅" || d['H']=="商住" || d['H']=="别墅")) {
|
||||
def json = BaiduMapUtils.searchByAddress(d['A'])
|
||||
if(json && json.location){
|
||||
d['K'] = json.location.lng
|
||||
d['L'] = json.location.lat
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
def addAroundPrice(path){
|
||||
ExcelUtils.multiThreadingModify(path, { d ->
|
||||
if(!d['J'] && d['C'] && d['K']){
|
||||
def city = RegionData.formatCity(d['C'])
|
||||
def dist = new BasicDBObject()
|
||||
dist.city = city
|
||||
dist.lng = d['K'].toString().toDouble()*10000000000L
|
||||
dist.lat = d['L'].toString().toDouble()*10000000000L
|
||||
dist.estateType = "普通住宅"//d['H']
|
||||
if(dist.lat) {
|
||||
List<DBObject> list = DbUtils.findAroundDistrictByRadius(dist, 1000)
|
||||
if (list) {
|
||||
list = sortByDistance(dist, list);
|
||||
if (list && list.size() > 10) {
|
||||
list = list[0..9]
|
||||
}
|
||||
if (list) {
|
||||
def prices = []
|
||||
for (def s : list) {
|
||||
def priceObj = CommonDatautils.findDistrictPrice(s.city, s.region, s.name)
|
||||
if (priceObj) {
|
||||
prices << priceObj.avg_price
|
||||
}
|
||||
}
|
||||
if (prices) {
|
||||
def arround_price = (int) (prices.sum() / prices.size())
|
||||
d['J'] = arround_price
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
def sortByDistance(d, list){
|
||||
for(def nb : list){
|
||||
def distance = GeoHelper.GetDistance(d.lat/10000000000.0, d.lng/10000000000.0, nb.lat/10000000000.0, nb.lng/10000000000.0)
|
||||
nb.distance = distance
|
||||
}
|
||||
//排序
|
||||
Collections.sort(list, new Comparator() {
|
||||
@Override
|
||||
int compare(Object o1, Object o2) {
|
||||
if(o1.distance > o2.distance)
|
||||
return 1;//第二个元素(o1)比第一个元素(o2)大,返回-1
|
||||
if(o1.distance == o2.distance)
|
||||
return 0;
|
||||
return -1;
|
||||
}
|
||||
})
|
||||
return list;
|
||||
}
|
||||
|
||||
|
||||
def addAuthor(def path){
|
||||
def authors = ["董彦均","曹玉彦","付贵生","沈燕芳","Catherine", "王蕾","吉珉", "张宝剑"]
|
||||
def personTotal = authors.size()
|
||||
def avg = Math.ceil(total/personTotal)
|
||||
|
||||
def index = 0
|
||||
def count = 0;
|
||||
ExcelUtils.modify(path, { row ->
|
||||
if(row['A']){
|
||||
if(index < avg){
|
||||
row['M'] = authors[count]
|
||||
}
|
||||
index++
|
||||
if(index >= avg){
|
||||
count++
|
||||
index = 0
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
def addHouse(path){
|
||||
def datas = []
|
||||
ExcelUtils.multiThreadingModify(path, { row ->
|
||||
def commId= row['E']
|
||||
if(commId){
|
||||
def dist = CommonDatautils.findDistrictById(commId)
|
||||
if(dist){
|
||||
def rets = findHouses(row['H'], row['I'], "sell", 20200101,20230113, row['J'], null, row['k'])
|
||||
if(rets){
|
||||
def data = []
|
||||
for(def r : rets){
|
||||
data << r.city
|
||||
data << r.region
|
||||
data << r.district_name
|
||||
data << r.floor
|
||||
data << r.height
|
||||
data << r.fitment
|
||||
data << r.direction
|
||||
data << r.build_type
|
||||
data << r.area
|
||||
data << r.avg_price
|
||||
datas << data
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
ExcelUtils.write("D:\\数据\\民生\\民生样本数据.xlsx", datas, "样本数据")
|
||||
}
|
||||
|
||||
def findHouses(def city, def region, def cat, def startDate, def endDate, def name, def alias, def estate_type2){
|
||||
|
||||
QueryBuilder date_range = QueryBuilders.rangeQuery("p_date").from(startDate).to(endDate).includeLower(false).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(alias && alias.size()>0){
|
||||
BoolQueryBuilder inBuilder = QueryBuilders.boolQuery();
|
||||
for(def s : alias){
|
||||
inBuilder.should(QueryBuilders.matchQuery("district_name", s));
|
||||
}
|
||||
queryBuilder.must(inBuilder)
|
||||
}
|
||||
|
||||
|
||||
def rets = []
|
||||
def houses = ElasticUtils.executeSimpleQuery("192.168.0.206", "seawater-20*", queryBuilder);
|
||||
|
||||
if(houses){
|
||||
for (int k=0;k<houses.size();k++) {
|
||||
def map = houses[k];
|
||||
DBObject seawater = new BasicDBObject(map)
|
||||
|
||||
if(estate_type2 && estate_type2=="普通住宅"){
|
||||
if(seawater.estate_type && (seawater.estate_type.contains("商住") || seawater.estate_type.contains("商业") || seawater.estate_type.contains("商务"))){
|
||||
println city +" "+name+" "+seawater._id.toString()+" "+seawater.estate_type
|
||||
continue;
|
||||
}
|
||||
|
||||
if(seawater.estate_type&& seawater.estate_type.contains("别墅")){
|
||||
println city +" "+name+" "+seawater._id.toString()+" "+seawater.estate_type
|
||||
continue;
|
||||
}
|
||||
// def vallaFlag = isVilla(seawater.area, seawater.name, seawater.height, seawater.room)
|
||||
// if(vallaFlag){
|
||||
// continue;
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
if(!seawater.total_price){
|
||||
continue;
|
||||
}
|
||||
if(!seawater.avg_price){
|
||||
continue;
|
||||
}
|
||||
|
||||
// if(!seawater.height){
|
||||
// seawater.height = null
|
||||
// }
|
||||
|
||||
if(seawater.height && seawater.height>60){
|
||||
continue;
|
||||
}
|
||||
|
||||
// if(!seawater.room){
|
||||
// continue;
|
||||
// }
|
||||
// if(!seawater.room){
|
||||
// seawater.room = null
|
||||
// }
|
||||
|
||||
if(seawater.room){
|
||||
if(seawater.room>=11 || seawater.room<1){
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
if(!seawater.hall){
|
||||
seawater.hall = null
|
||||
}
|
||||
if(seawater.hall && (seawater.hall>=5 || seawater.hall<1)){
|
||||
continue;
|
||||
}
|
||||
if(!seawater.toilet){
|
||||
seawater.toilet = null
|
||||
}
|
||||
if(seawater.toilet && (seawater.toilet>=5 || seawater.toilet<1)){
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
def floor = parseFloor(seawater.floor_info)
|
||||
if(seawater.height && floor && floor.isNumber()){
|
||||
if(floor.toInteger()>seawater.height){
|
||||
floor = null
|
||||
seawater.height = null
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if(!floor){
|
||||
seawater.floor = null
|
||||
}
|
||||
if(floor && floor.toInteger()<1){
|
||||
floor = null
|
||||
}
|
||||
|
||||
def rowMap = [:];
|
||||
|
||||
rowMap.houseId = seawater.id
|
||||
// rowMap.city = CcbCommonUtils.getCcbCity(city)
|
||||
//rowMap.region =seawater.region
|
||||
//rowMap.address = seawater.address
|
||||
rowMap.area = seawater.area
|
||||
rowMap.address = seawater.address
|
||||
rowMap.total_price = seawater.total_price
|
||||
rowMap.avg_price = seawater.avg_price
|
||||
rowMap.build_type = seawater.build_type
|
||||
rowMap.build_date = seawater.build_date
|
||||
rowMap.district_name = seawater.district_name
|
||||
rowMap.height = seawater.height=="null"?null:seawater.height
|
||||
if(rowMap.height && rowMap.height<1){
|
||||
rowMap.height = null
|
||||
}
|
||||
rowMap.floor = floor=="null"?null:floor
|
||||
rowMap.room = seawater.room=="null"?null:seawater.room
|
||||
rowMap.hall = seawater.hall=="null"?null:seawater.hall
|
||||
rowMap.toilet = seawater.toilet=="null"?null:seawater.toilet
|
||||
|
||||
|
||||
def direction = parseDirection(seawater.direction)
|
||||
rowMap.direction = direction=="null"?null:direction
|
||||
|
||||
def fitment = parseFitment(seawater.fitment)
|
||||
rowMap.fitment = fitment=="null"?null:fitment
|
||||
|
||||
|
||||
|
||||
if(seawater.p_date instanceof String){
|
||||
seawater.p_date = seawater.p_date.toInteger()
|
||||
}
|
||||
|
||||
rowMap.p_date = DateUtils.formatDateByPattern(DateUtils.parseFromTightYYYYMMDD2(seawater.p_date.toString()), "yyyy-MM-dd HH:mm:ss")
|
||||
rowMap.c_date = DateUtils.getConverDate(seawater.m_date)
|
||||
rowMap.m_date = DateUtils.getConverDate(seawater.m_date)
|
||||
|
||||
rets << rowMap
|
||||
}
|
||||
}
|
||||
return rets;
|
||||
}
|
||||
|
||||
}
|
||||
+105
@@ -0,0 +1,105 @@
|
||||
package com.fangjia.script.chongqing
|
||||
|
||||
import com.fangjia.script.util.ExcelUtils
|
||||
import org.apache.commons.io.FileUtils
|
||||
|
||||
import javax.crypto.Cipher;
|
||||
import javax.crypto.SecretKey;
|
||||
import javax.crypto.spec.SecretKeySpec;
|
||||
import java.util.Base64;
|
||||
|
||||
/**
|
||||
* 3DES加密工具类
|
||||
* @author qzz
|
||||
*/
|
||||
public class ThreeDESUtils {
|
||||
|
||||
/**
|
||||
* 加解密统一编码方式
|
||||
*/
|
||||
private final static String ENCODING = "utf-8";
|
||||
|
||||
/**
|
||||
* 加解密方式
|
||||
*/
|
||||
private final static String ALGORITHM = "DESede";
|
||||
|
||||
/**
|
||||
*加密模式及填充方式
|
||||
*/
|
||||
private final static String PATTERN = "DESede/ECB/pkcs5padding";
|
||||
|
||||
/**
|
||||
* 3DES加密
|
||||
*
|
||||
* @param plainText 普通文本
|
||||
* @param sK 秘钥(24位密码)
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
public static String encode(String plainText,String sK) throws Exception {
|
||||
SecretKey secretKey = new SecretKeySpec(sK.getBytes(ENCODING), ALGORITHM);
|
||||
// 3DES加密采用pkcs5padding填充
|
||||
Cipher cipher = Cipher.getInstance(PATTERN);
|
||||
// 用密匙初始化Cipher对象
|
||||
cipher.init(Cipher.ENCRYPT_MODE, secretKey);
|
||||
// 执行加密操作
|
||||
byte[] encryptData = cipher.doFinal(plainText.getBytes(ENCODING));
|
||||
return Base64.getEncoder().encodeToString(encryptData);
|
||||
}
|
||||
|
||||
/**
|
||||
* 3DES解密
|
||||
*
|
||||
* @param encryptText 加密文本
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
public static String decode(String encryptText, String sK) throws Exception {
|
||||
SecretKey secretKey = new SecretKeySpec(sK.getBytes(ENCODING), ALGORITHM);
|
||||
// 3DES加密采用pkcs5padding填充
|
||||
Cipher cipher = Cipher.getInstance(PATTERN);
|
||||
|
||||
// 用密匙初始化Cipher对象
|
||||
cipher.init(Cipher.DECRYPT_MODE, secretKey);
|
||||
// 正式执行解密操作
|
||||
byte[] decryptData = cipher.doFinal(Base64.getDecoder().decode(encryptText));
|
||||
return new String(decryptData, ENCODING);
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
|
||||
def rets = []
|
||||
def datas = readTxt("D:\\数据\\民生\\抽样-住宅类(普通住宅、公寓).txt")
|
||||
def index = 0
|
||||
for(def d : datas){
|
||||
index++
|
||||
def row = []
|
||||
def str = decode(d,"111036369260679051122113")
|
||||
println str
|
||||
def id = str.substring(str.length()-4)
|
||||
row << id
|
||||
row << str.substring(0, str.indexOf(id))
|
||||
rets << row
|
||||
}
|
||||
ExcelUtils.write("D:\\数据\\民生\\民生银行测试数据.xlsx", rets, "抽样-住宅类(普通住宅、公寓)")
|
||||
|
||||
// ExcelUtils.multiThreadingModify("D:\\数据\\民生\\加密数据.xlsx", { row ->
|
||||
// //加密
|
||||
// String str = row['A']
|
||||
// //解密
|
||||
// row['B'] = (decode(str,"111036369260679051122113"));
|
||||
// });
|
||||
|
||||
}
|
||||
|
||||
public static def readTxt(def file){
|
||||
def lines = FileUtils.readLines(new File(file))
|
||||
def ret = [];
|
||||
for(line in lines) {
|
||||
ret << line;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -33,7 +33,7 @@ class DistrictPriceExportBatch extends BaseBatch{
|
||||
|
||||
static DBCollection DISTRICT_SELL_STAT = MongoUtils.getCollectionByName("fangjia_stat", "district_sell_stat", "mongo.db.fangjia.com")
|
||||
|
||||
def specialDistsPriceMap = ["津泰新村7号、9-17号":53620,"津泰新村14号":76230,"津泰新村1-6号、8号":32580]
|
||||
def specialDistsPriceMap = ["津泰新村7号、9-13号、15-17号":53620,"津泰新村14号":76230,"津泰新村1-6号、8号":32580]
|
||||
static main(args) {
|
||||
runBatch(new DistrictPriceExportBatch(), args)
|
||||
}
|
||||
|
||||
+2
@@ -18,6 +18,7 @@ import java.util.concurrent.CountDownLatch
|
||||
import java.util.concurrent.ExecutorService
|
||||
import java.util.concurrent.Executors
|
||||
import java.util.concurrent.atomic.AtomicLong
|
||||
import java.util.regex.Pattern
|
||||
|
||||
//小区月度均价表(带涨跌幅控制)
|
||||
@BatchOwner(Watcher.GaoJuan)
|
||||
@@ -78,6 +79,7 @@ class DistrictSellStatBatch extends BaseBatch {
|
||||
}else{
|
||||
districts = DbUtils.seaweed.find(new BasicDBObject("city", city).append("cat", "district").append("visible", 0), keys).batchSize(2000)
|
||||
}
|
||||
print city +" "+districts.size()
|
||||
|
||||
def weekendPriceMap = findPriceMap(city, lastMonthWeekend)//上个月小区均价
|
||||
def curMonthlyPriceMap = findMonthlyPrice(city, curMonth)//当月小区月均价
|
||||
|
||||
+2
-2
@@ -111,8 +111,8 @@ class FzDataResultStat {
|
||||
def regions = ["뮬짜","꾑�","憩쉭","쐈갛","쯩棺","낀있"];
|
||||
def datas1 = []
|
||||
def datas2 = []
|
||||
datas1 << ["城市","区域","名称","${curMonth}价格","${lastMonth}价格", "涨跌幅"]
|
||||
datas2 << ["城市","区域","名称","${curMonth}价格","${lastMonth}价格", "涨跌幅"]
|
||||
datas1 << ["城市","区域","名称","${curMonth}价格","${lastMonth}价格", "涨跌幅", "是否有效"]
|
||||
datas2 << ["城市","区域","名称","${curMonth}价格","${lastMonth}价格", "涨跌幅", "是否有效"]
|
||||
def row_num = 0
|
||||
for(def row : rows){
|
||||
if(row_num>0){
|
||||
|
||||
+2
-2
@@ -420,8 +420,8 @@ class HouseExportBatch extends BaseBatch{
|
||||
|
||||
row << seawater.name
|
||||
row << seawater.url
|
||||
// row << seawater.p_date
|
||||
row << DateUtils.getRandomDate("2022-06-01", "2022-06-30")
|
||||
row << seawater.p_date
|
||||
// row << DateUtils.getRandomDate("2022-06-01", "2022-06-30")
|
||||
rets << row
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ import com.mongodb.DBCollection
|
||||
//福州第三方均价统计,发送钉钉消息
|
||||
//def datas = ExcelUtils.read("d:\\数据\\福州\\福州4月2.xlsx",0,1)
|
||||
//def datas = CsvUtils.read("d:\\数据\\福州\\FJW_THIRD_PARTY_AVG_PRICE_202105.csv");
|
||||
def datas = readTxt("d:\\数据\\福州\\FJW_THIRD_PARTY_AVG_PRICE_202211.csv")
|
||||
def datas = readTxt("d:\\数据\\福州\\FJW_THIRD_PARTY_AVG_PRICE_202301.csv")
|
||||
def count0 = 0
|
||||
def count1 = 0
|
||||
def count2 = 0
|
||||
|
||||
@@ -51,6 +51,7 @@ class AddAvgpriceBatch {
|
||||
for(def disKey : res2){
|
||||
def array = disKey.split("##");
|
||||
def estateType2 = districtKeysMap.get(disKey)
|
||||
//发重算均价命令
|
||||
CommonUtils.recalculationAverage(array[0], array[1], array[2], estateType2, 0, new Date())
|
||||
}
|
||||
}
|
||||
|
||||
+58
-6
@@ -4,37 +4,55 @@ import com.fangjia.core.RegionData
|
||||
import com.fangjia.script.commData.CommonDatautils
|
||||
import com.fangjia.script.common.DataHandleUtils
|
||||
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.Bytes
|
||||
import com.mongodb.DBCollection
|
||||
import com.mongodb.DBObject
|
||||
import com.mongodb.QueryOperators
|
||||
|
||||
class CityStatExport {
|
||||
|
||||
final DBCollection DEAL_PRICE = MongoUtils.getCollectionByName("fangjia", "deal_price", "192.168.0.43")
|
||||
public static final def dbUrl = "mongodb://developer:G00IDCDEV12385@mongo.db.fangjia.com:28017";
|
||||
public static final DBCollection DIST_STAT_COLL = MongoUtils.getCollectionByName2("fangjia_stat", "district_stat", dbUrl)
|
||||
|
||||
public static final DBCollection HOUSE_LOUDONG = MongoUtils.getCollectionByName("fangjia", "house_loudong", "192.168.0.136")
|
||||
public static final DBCollection LOUDONG = MongoUtils.getCollectionByName("fangjia_base", "loudong", "192.168.0.136")
|
||||
|
||||
static main(args) {
|
||||
def task = new CityStatExport();
|
||||
//task.run()
|
||||
task.run1()
|
||||
task.run()
|
||||
// task.run1()
|
||||
}
|
||||
|
||||
def run(){
|
||||
// def citys = CommonDatautils.findAllCity();
|
||||
|
||||
|
||||
def citys = ["福州", "厦门", "泉州", "莆田", "宁德", "三明", "龙岩", "南平", "漳州"]
|
||||
def citys = ["太原","大同","临汾","朔州","忻州","晋中","阳泉","运城","长治","吕梁","晋城"]
|
||||
def ret = []
|
||||
// ret << ["城市","小区总量","产权年限覆盖率","竣工时间覆盖率"]
|
||||
ret << ["城市","小区总量"]
|
||||
ret << ["城市","楼栋总量", "房号总量"]
|
||||
for(def city : citys){
|
||||
def districts = CommonDatautils.findAllDistricts(city, "district", ["city", "region", "name"]);
|
||||
def total = districts.size()
|
||||
def m = []
|
||||
m << city
|
||||
m << total
|
||||
// m << total
|
||||
// def tradeCount = findTrades(city, '2022-02-01');
|
||||
// m << tradeCount
|
||||
// def houseCount = findHouseCount(city, '2022-02-01')
|
||||
// m << houseCount
|
||||
|
||||
def loudongCount = findLoudongCount(city)
|
||||
m << loudongCount
|
||||
|
||||
def fanghaoCount = findFanghaoCount(city)
|
||||
m << fanghaoCount
|
||||
|
||||
|
||||
// def priceCount = findDistrictPrice(city, null);
|
||||
// m << priceCount
|
||||
@@ -45,7 +63,7 @@ class CityStatExport {
|
||||
ret << m
|
||||
println m
|
||||
}
|
||||
ExcelUtils.write("D:\\数据\\福建省小区数据统计.xlsx",ret,"数据")
|
||||
ExcelUtils.write("D:\\数据\\山西省城市数据统计(楼栋房号).xlsx",ret,"数据")
|
||||
|
||||
}
|
||||
|
||||
@@ -62,6 +80,40 @@ class CityStatExport {
|
||||
|
||||
}
|
||||
|
||||
|
||||
def findHouseCount(def city, def startDate){
|
||||
def total = 0
|
||||
try{
|
||||
String sql = "select count(*) as c from latest_seawater where cat='sell' and city='${city}' and p_date >= ${startDate} "
|
||||
|
||||
ElasticUtils.executeSqlQuery(sql,{ data->
|
||||
total = data.c
|
||||
})
|
||||
}catch(Exception e){
|
||||
e.printStackTrace()
|
||||
}
|
||||
|
||||
return total
|
||||
}
|
||||
|
||||
def findLoudongCount(String city) {
|
||||
return LOUDONG.count(new BasicDBObject('city', city))
|
||||
}
|
||||
|
||||
def findFanghaoCount(String city){
|
||||
return HOUSE_LOUDONG.count(new BasicDBObject('city', city))
|
||||
}
|
||||
|
||||
def findTrades(city, date){
|
||||
def startDate = DateUtils.parseFromTightByPattern(date, "yyyy-MM-dd")
|
||||
def q = new BasicDBObject()
|
||||
q.put("city", city)
|
||||
q.put("area", new BasicDBObject(QueryOperators.GTE,20))
|
||||
q.put("trade_date", new BasicDBObject(QueryOperators.GTE, startDate))
|
||||
def total = DEAL_PRICE.count(q)
|
||||
return total;
|
||||
}
|
||||
|
||||
def findDistrictPrice(def city, def region){
|
||||
def weekend = DateUtils.getFirstDayOfWeek(new Date());
|
||||
DBObject q = new BasicDBObject()
|
||||
|
||||
+52
@@ -0,0 +1,52 @@
|
||||
package com.fangjia.script.gj
|
||||
|
||||
import com.fangjia.core.util.GeoUtils
|
||||
import com.fangjia.script.util.ExcelUtils
|
||||
import com.fangjia.script.yinjihaun.amap.GaoDeApiUtils
|
||||
|
||||
class ShLongShangHangLocation {
|
||||
static main(args) {
|
||||
def task = new ShLongShangHangLocation()
|
||||
task.run()
|
||||
}
|
||||
|
||||
def run(){
|
||||
def rets = ["上海市黄兴路1599号","上海市杨浦区长阳路1687号A栋","上海市杨浦区佳木思路432号","上海市杨浦区控江路1063号","上海市杨浦区鞍山路100号","上海市杨浦区延吉东路287号","上海市杨浦区殷行路408号","上海市杨浦区闸殷路1555号102室","上海市杨浦区平凉路1500号"]
|
||||
def map = [:]
|
||||
for(def r : rets){
|
||||
def location = getLocation(r)
|
||||
if(location){
|
||||
map.put(r, location)
|
||||
}
|
||||
}
|
||||
def titleMap = [0:'C',1:'D',2:'E',3:'F',4:'G',5:'H',6:'I',7:'J',8:'K']
|
||||
ExcelUtils.modify("D:\\数据\\上海农商行\\网点与居委分布20230118.xlsx",{row->
|
||||
if(row['B'] && !row['B'].contains("地址") && row['B'].contains('齐齐哈尔路')){
|
||||
for(def i=0;i<rets.size();i++){
|
||||
def s = rets.get(i)
|
||||
def mapLoc = map.get(s)
|
||||
def location = getLocation("杨浦区"+row['B'])
|
||||
if(location && mapLoc){
|
||||
def distance = GeoUtils.calculateDistance(mapLoc.lng.toDouble(), mapLoc.lat.toDouble(), location.lng.toDouble(), location.lat.toDouble())
|
||||
def title = titleMap.get(i)
|
||||
row[title] = distance.toInteger()
|
||||
}
|
||||
}
|
||||
println row['B']
|
||||
}
|
||||
},0)
|
||||
}
|
||||
|
||||
def getLocation(def address){
|
||||
def json = GaoDeApiUtils.geo("上海", address)
|
||||
if (json && json.status == "1") {
|
||||
def ret = json.geocodes
|
||||
if (ret) {
|
||||
def str = ret.get(0).location
|
||||
def arrs = str.split(",")
|
||||
return ["lng": arrs[0], "lat": arrs[1]]
|
||||
}
|
||||
}
|
||||
return null
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -48,11 +48,11 @@ class YouDaDataParser {
|
||||
def final AtomicInteger count_ = new AtomicInteger(0)
|
||||
|
||||
|
||||
static def statDate = "2022-10-01"
|
||||
static def statDate = "2023-01-01"
|
||||
static main(args) {
|
||||
def task = new YouDaDataParser();
|
||||
// task.newHouseparse();//友达一手房存入mongo
|
||||
// task.esfParser("D:\\数据\\友达\\2022年12月\\查询1.DBF");//友达二手房存入mongo
|
||||
// task.esfParser("D:\\数据\\友达\\2023年2月\\查询1.DBF");//友达二手房存入mongo
|
||||
// task.newhouseToSaveEs();//新房保存到es
|
||||
task.esfhouseToSaveEs();//二手房保存到es
|
||||
// task.updateFinishDateByEsfTrade();//根据二手成交的竣工时间修改seaweed库中的竣工时间
|
||||
|
||||
+4
-1
@@ -73,7 +73,10 @@ class FangjiaClientUtils {
|
||||
def content = null
|
||||
try {
|
||||
address = address.replace("{","")
|
||||
def url = "http://192.168.0.19:31080/FangJiaNlpService/ner?address="+URLEncoder.encode(address,"UTF-8")+"&city="+URLEncoder.encode(city,"UTF-8")
|
||||
def url = "http://192.168.0.19:31080/FangJiaNlpService/ner?address="+URLEncoder.encode(address,"UTF-8")
|
||||
if(city){
|
||||
url = url +"&city="+URLEncoder.encode(city,"UTF-8")
|
||||
}
|
||||
|
||||
// def url = "http://192.168.0.19:39080/FangJiaAddressService/structure?address="+URLEncoder.encode(address,"UTF-8")
|
||||
content = new HttpRequest().newGet(url, null, "utf-8")
|
||||
|
||||
+5
-5
@@ -136,8 +136,8 @@ class EsMonthHouseStat {
|
||||
def houseRun(){
|
||||
ExcelUtils.multiThreadingModify("d:\\数据\\建行\\城市覆盖率统计.xlsx",{d->
|
||||
def city = d['A']
|
||||
def count = findHouseCount(city, 20190709, 20210709)
|
||||
d['E'] = count
|
||||
def count = findHouseCount(city, 20221101, 20230201)
|
||||
d['B'] = count
|
||||
|
||||
def districts = CommonDatautils.findAllDistricts(city, "district", ["city", "region", "name", "alias"]);
|
||||
def disthouseCount = 0
|
||||
@@ -152,8 +152,8 @@ class EsMonthHouseStat {
|
||||
alias << dist.name
|
||||
}
|
||||
|
||||
def distCount = findHouseCount(dist.city, dist.region, alias, 20190709, 20210709)
|
||||
if(distCount){
|
||||
def distCount = findHouseCount(dist.city, dist.region, alias, 20221101, 20230201)
|
||||
if(distCount && distCount>=3){
|
||||
disthouseCount++
|
||||
}
|
||||
println dist.city+" "+dist.region+" "+dist.name+" "+distCount
|
||||
@@ -162,7 +162,7 @@ class EsMonthHouseStat {
|
||||
println "disthouseCount:"+disthouseCount
|
||||
println districts.size()
|
||||
def precent = DataHandleUtils.getDoubleRound(2, disthouseCount*100.0/districts.size())
|
||||
d['F'] = precent+"%"
|
||||
d['C'] = precent+"%"
|
||||
},0)
|
||||
}
|
||||
|
||||
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
package com.fangjia.script.gj.es
|
||||
|
||||
import com.fangjia.script.util.ElasticUtils
|
||||
import org.elasticsearch.index.query.QueryBuilder
|
||||
import org.elasticsearch.index.query.QueryBuilders
|
||||
import org.elasticsearch.xpack.sql.jdbc.EsDataSource
|
||||
|
||||
EsDataSource dataSource = new EsDataSource();
|
||||
String address = "jdbc:es://http://192.168.0.86:9200/timezone=UTC&page.size=250&connect.timeout=120s&network.timeout=120s&page.timeout=120s";
|
||||
|
||||
findLogs()
|
||||
|
||||
def findLogs(){
|
||||
def total = 0
|
||||
try{
|
||||
|
||||
// String sql = "select * from fangjia-log* where request like '/jnBank%'"
|
||||
// BoolQueryBuilder queryBuilder = QueryBuilders.boolQuery();
|
||||
def q = QueryBuilders.fuzzyQuery("domain", ".fangjia.com")
|
||||
QueryBuilder queryBuilder = QueryBuilders.boolQuery().must(q)
|
||||
def houses = ElasticUtils.executeSimpleQuery("192.168.0.86", "fangjia-log*", queryBuilder);
|
||||
println houses.size()
|
||||
def set = new HashSet()
|
||||
def index = 0
|
||||
if(houses) {
|
||||
for (def d : houses) {
|
||||
def request = d.request
|
||||
if(request && !d.domain.contains("k8s2.fangjia.com")){
|
||||
index ++
|
||||
println "[${index}] "+d.domain +" "+ request
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
println set
|
||||
|
||||
}catch(Exception e){
|
||||
e.printStackTrace()
|
||||
}
|
||||
|
||||
return total
|
||||
}
|
||||
+24
-21
@@ -251,26 +251,29 @@ public class BeiKeCrawlByChrome {
|
||||
detail.trade_date = DateUtils.parseFromTightByPattern(tradeStr, "yyyy.MM.dd")
|
||||
}
|
||||
detail.source = "±´¿ÇÕÒ·¿"
|
||||
def detailUrl = e.select(".title a").attr("href")
|
||||
detail.url = detailUrl
|
||||
def dbo = findTrade(detail)
|
||||
if (!dbo) {
|
||||
def houseInfo = e.select(".houseInfo").text()
|
||||
def houseInfos = houseInfo.split("\\|")
|
||||
detail.direction = houseInfos[0]
|
||||
detail.fitment = houseInfos[1]
|
||||
def floorStr = e.select(".positionInfo").text()
|
||||
if (floorStr && floorStr.contains("¹²") && floorStr.contains("²ã)")) {
|
||||
floorStr = floorStr.substring(floorStr.indexOf("¹²") + 1, floorStr.indexOf("²ã)"))
|
||||
if (floorStr && floorStr.isNumber()) {
|
||||
detail.height = floorStr.toInteger()
|
||||
}
|
||||
}
|
||||
|
||||
detail.create_date = new Date()
|
||||
detail.m_date = new Date()
|
||||
println detail
|
||||
DEAL_PRICE_COLL.save(detail)
|
||||
if(detail.total_price){
|
||||
def detailUrl = e.select(".title a").attr("href")
|
||||
detail.url = detailUrl
|
||||
def dbo = findTrade(detail)
|
||||
if (!dbo) {
|
||||
def houseInfo = e.select(".houseInfo").text()
|
||||
def houseInfos = houseInfo.split("\\|")
|
||||
detail.direction = houseInfos[0]
|
||||
detail.fitment = houseInfos[1]
|
||||
def floorStr = e.select(".positionInfo").text()
|
||||
if (floorStr && floorStr.contains("¹²") && floorStr.contains("²ã)")) {
|
||||
floorStr = floorStr.substring(floorStr.indexOf("¹²") + 1, floorStr.indexOf("²ã)"))
|
||||
if (floorStr && floorStr.isNumber()) {
|
||||
detail.height = floorStr.toInteger()
|
||||
}
|
||||
}
|
||||
|
||||
detail.create_date = new Date()
|
||||
detail.m_date = new Date()
|
||||
println detail
|
||||
DEAL_PRICE_COLL.save(detail)
|
||||
}
|
||||
}
|
||||
}
|
||||
}catch(Exception ex){
|
||||
@@ -398,13 +401,13 @@ public class BeiKeCrawlByChrome {
|
||||
if(cityEles){
|
||||
for(def e : cityEles){
|
||||
def href = e.attr("href")
|
||||
// if(e.text().contains("¸£ÖÝ")){
|
||||
if(e.text().contains("ÖØÇì")){
|
||||
def cityMap = [:]
|
||||
cityMap.city = e.text()
|
||||
cityMap.url = "https:"+href
|
||||
list << cityMap
|
||||
// cityMap.put(e.text(), "https:"+href)
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
return list
|
||||
|
||||
+23
-19
@@ -328,25 +328,29 @@ public class LianjiaCrawlByChrome {
|
||||
}
|
||||
detail.source = "Á´¼ÒÔÚÏß"
|
||||
detail.url = e.select(".title a").attr("href")
|
||||
def dbo = findTrade(detail)
|
||||
if (!dbo) {
|
||||
def houseInfo = e.select(".houseInfo").text()
|
||||
def houseInfos = houseInfo.split("\\|")
|
||||
detail.direction = houseInfos[0]
|
||||
detail.fitment = houseInfos[1]
|
||||
def floorStr = e.select(".positionInfo").text()
|
||||
if (floorStr && floorStr.contains("¹²") && floorStr.contains("²ã)")) {
|
||||
floorStr = floorStr.substring(floorStr.indexOf("¹²") + 1, floorStr.indexOf("²ã)"))
|
||||
if (floorStr && floorStr.isNumber()) {
|
||||
detail.height = floorStr.toInteger()
|
||||
}
|
||||
}
|
||||
|
||||
detail.create_date = new Date()
|
||||
detail.m_date = new Date()
|
||||
println detail
|
||||
DEAL_PRICE_COLL.save(detail)
|
||||
if(detail.total_price){
|
||||
def dbo = findTrade(detail)
|
||||
if (!dbo) {
|
||||
def houseInfo = e.select(".houseInfo").text()
|
||||
def houseInfos = houseInfo.split("\\|")
|
||||
detail.direction = houseInfos[0]
|
||||
detail.fitment = houseInfos[1]
|
||||
def floorStr = e.select(".positionInfo").text()
|
||||
if (floorStr && floorStr.contains("¹²") && floorStr.contains("²ã)")) {
|
||||
floorStr = floorStr.substring(floorStr.indexOf("¹²") + 1, floorStr.indexOf("²ã)"))
|
||||
if (floorStr && floorStr.isNumber()) {
|
||||
detail.height = floorStr.toInteger()
|
||||
}
|
||||
}
|
||||
|
||||
detail.create_date = new Date()
|
||||
detail.m_date = new Date()
|
||||
println detail
|
||||
DEAL_PRICE_COLL.save(detail)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}catch(Exception ex){
|
||||
@@ -470,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)
|
||||
}
|
||||
}
|
||||
|
||||
+23
-4
@@ -1,10 +1,12 @@
|
||||
package com.fangjia.script.gj.test
|
||||
|
||||
import com.fangjia.core.util.DataUtil
|
||||
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.fangjia.script.util.OpenApiClient
|
||||
import net.sf.json.JSONObject
|
||||
import org.elasticsearch.index.query.QueryBuilder
|
||||
import org.elasticsearch.index.query.QueryBuilders
|
||||
|
||||
@@ -24,17 +26,34 @@ class DongGuangApiTest {
|
||||
}
|
||||
|
||||
def run(){
|
||||
def rets = findEsData();
|
||||
// def rets = findEsData();
|
||||
def rets = readTxt("D:\\数据\\东莞银行\\东莞银行 (1).csv")
|
||||
println "ES 加载完成"
|
||||
def datas = evaluation(rets)
|
||||
println "重估完成"
|
||||
// ExcelUtils.write("D:\\数据\\东莞银行\\东莞重估.xlsx", datas, "数据")
|
||||
FileUtils.batchCreateFile(datas, "/home/goojia/¶«Ý¸ÖعÀ.txt", [], "utf-8", true);
|
||||
FileUtils.batchCreateFile(datas, "D:\\数据\\东莞银行\\东莞重估.txt", [], "utf-8", true);
|
||||
println "txt 生成"
|
||||
exportCsv("/home/goojia/¶«Ý¸ÖعÀ.csv", datas)
|
||||
exportCsv("D:\\数据\\东莞银行\\东莞重估.csv", datas)
|
||||
println "csv 生成"
|
||||
}
|
||||
|
||||
def readTxt(def fileName){
|
||||
File file = new File(fileName);
|
||||
def rows = [];
|
||||
|
||||
file.eachLine{
|
||||
def row = it.split("#",-1)
|
||||
if(row && row.size()>=2){
|
||||
def s = row[1]
|
||||
JSONObject result = JSONObject.fromObject(s);
|
||||
rows << result
|
||||
}
|
||||
|
||||
}
|
||||
return rows;
|
||||
}
|
||||
|
||||
def evaluation(rets){
|
||||
def datas = new CopyOnWriteArrayList()
|
||||
def totalCount = new AtomicLong()
|
||||
@@ -45,7 +64,7 @@ class DongGuangApiTest {
|
||||
void run() {
|
||||
try{
|
||||
totalCount.addAndGet(1)
|
||||
def ret = OpenApiClient.addressEvaluation(dist.city, dist.district, dist.name, dist.size)
|
||||
def ret = OpenApiClient.addressEvaluation(dist.city, dist.district, dist.name, 100)
|
||||
if(ret && ret.avgPrice){
|
||||
def row = []
|
||||
row << dist.city
|
||||
|
||||
@@ -98,7 +98,7 @@ public class EmailConsumer extends BaseBatch {
|
||||
}
|
||||
|
||||
} else {
|
||||
println "send error ${errorCount}, sleep ${sleepTime / 1000}s ..."
|
||||
println "${mail.receiver_email} send error ${errorCount}, sleep ${sleepTime / 1000}s ..."
|
||||
sleep(sleepTime);
|
||||
}
|
||||
}
|
||||
@@ -133,7 +133,7 @@ public class EmailConsumer extends BaseBatch {
|
||||
email.setHostName(EMAIL_SERVER);
|
||||
email.setSslSmtpPort("465");
|
||||
email.setCharset("GBK")
|
||||
email.setAuthentication("service@fangjia.com", "bRvvVvic8HVgHkCi");
|
||||
email.setAuthentication("service@fangjia.com", "iXWzdL69CnzxksaE");
|
||||
email.addTo(mail.receiverEmail);
|
||||
email.setFrom("service@fangjia.com");//·¢ËÍ·½
|
||||
email.setSubject(mail.subject); //±êÌâ
|
||||
@@ -168,7 +168,7 @@ public class EmailConsumer extends BaseBatch {
|
||||
email.setHostName(EMAIL_SERVER);
|
||||
email.setSslSmtpPort("465");
|
||||
email.setCharset("GBK")
|
||||
email.setAuthentication("service@fangjia.com", "bRvvVvic8HVgHkCi");
|
||||
email.setAuthentication("service@fangjia.com", "iXWzdL69CnzxksaE");
|
||||
email.addTo(mail.receiverEmail);
|
||||
email.setFrom("service@fangjia.com");
|
||||
email.setSubject(mail.subject);
|
||||
|
||||
+3
-3
@@ -41,10 +41,10 @@ class DataStat {
|
||||
|
||||
def run(){
|
||||
def source = "365ÌÔ·¿"//
|
||||
def citys = findCrawlCity(source, 202210);
|
||||
def citys = findCrawlCity(source, 202211);
|
||||
for(def city : citys){
|
||||
def count1 = findCount(source, city, 202210);
|
||||
def count2 = findCount(source, city, 202211);
|
||||
def count1 = findCount(source, city, 202211);
|
||||
def count2 = findCount(source, city, 202212);
|
||||
println city +" "+count1+" "+count2
|
||||
// println count1
|
||||
// println "--- ----"
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ class SynchDistrictPrice extends BaseBatch{
|
||||
|
||||
// "吉屋":"吉屋","365淘房":"365淘房","我爱我家":"我爱我家","诸葛找房APP":"诸葛找房","贝壳":"贝壳找房","链家":"链家","Q房":"Q房","麦田":"麦田",
|
||||
// "中原地产":"中原地产","安居客小程序":"安居客","搜房":"搜房","乐有家":"乐有家","C21":"C21","城市房产":"城市房产","兔博士PC端":"兔博士"
|
||||
def esSources = ["吉屋":"吉屋","365淘房":"365淘房","我爱我家":"我爱我家","诸葛找房APP":"诸葛找房","贝壳":"贝壳找房","链家":"链家","Q房":"Q房","麦田":"麦田","中原地产":"中原地产","安居客小程序":"安居客","搜房":"搜房","乐有家":"乐有家","C21":"C21","城市房产":"城市房产","兔博士PC端":"兔博士"]
|
||||
def esSources = ["我爱我家":"我爱我家","兔博士PC端":"兔博士","吉屋":"吉屋","贝壳找房":"贝壳找房","乐有家":"乐有家","365淘房":"365淘房","诸葛找房APP":"诸葛找房","链家":"链家","Q房":"Q房","麦田":"麦田","中原地产":"中原地产","安居客小程序":"安居客","搜房":"搜房","C21":"C21","城市房产":"城市房产"]
|
||||
|
||||
|
||||
static main(args) {
|
||||
|
||||
+2
-2
@@ -14,8 +14,8 @@ class TestCrawlTotalCount {
|
||||
def run(){
|
||||
def sources = ["房估估","诸葛找房","安居客","搜房","中原地产","赶集","链家","兔博士","城市房产","贝壳找房","Q房","Q房(新)","中原地产(新)","乐有家","乐有家(新)","房探","房多多","小资家","我爱我家","麦田","房途","C21","乐居","房产超市","58同城","365淘房","吉屋"]
|
||||
for(def source :sources){
|
||||
def count1 = findTotalCount(source, 202210);
|
||||
def count2 = findTotalCount(source, 202211);
|
||||
def count1 = findTotalCount(source, 202212);
|
||||
def count2 = findTotalCount(source, 202301);
|
||||
println source +" "+count1 +" "+count2
|
||||
}
|
||||
}
|
||||
|
||||
+12
-15
@@ -1,5 +1,6 @@
|
||||
package com.fangjia.script.util
|
||||
|
||||
import com.fangjia.core.util.HttpRequest
|
||||
import com.fangjia.core.util.RandomUtil
|
||||
import com.fangjia.script.addrepo.InvokeHttpRequest;
|
||||
import groovy.json.JsonSlurper
|
||||
@@ -103,24 +104,20 @@ class BaiduMapUtils {
|
||||
int recount = 0;
|
||||
while(!stop && recount<3) {
|
||||
try{
|
||||
def ret = ABuYunUtil.doGet(url, null, null, "utf-8");
|
||||
if (ret) {
|
||||
JSONObject jsonObj = JSONObject.fromObject(ret);
|
||||
|
||||
if(jsonObj.getInt("status") == 121){
|
||||
println "key over"
|
||||
changeAK()
|
||||
recount++;
|
||||
HttpRequest request = new HttpRequest();
|
||||
try{
|
||||
String result = request.get(url,null,"UTF-8");
|
||||
JSONObject json = JSONObject.fromObject(result);
|
||||
if(json.getInt("status") >= 300){
|
||||
changeAK();
|
||||
json = searchByAddress(address);
|
||||
}else{
|
||||
def result = jsonObj.result;
|
||||
if(result){
|
||||
stop = true
|
||||
return result;
|
||||
}else{
|
||||
stop = true
|
||||
}
|
||||
return json.result
|
||||
}
|
||||
}catch (Exception e){
|
||||
e.printStackTrace();
|
||||
}
|
||||
return null;
|
||||
}catch (Exception e){
|
||||
recount++;
|
||||
println e.getMessage()
|
||||
|
||||
@@ -335,8 +335,15 @@ public class DbUtils{
|
||||
keys.append("lng2", 1)
|
||||
keys.append("estate_type2", 1)
|
||||
DbUtils.SEAWEED_SLAVE.find(query, keys).each {BasicDBObject dbo->
|
||||
|
||||
if(!district._id || dbo._id != district._id){
|
||||
districts << dbo
|
||||
if(district.estateType){
|
||||
if(dbo.estate_type2 == district.estateType){
|
||||
districts << dbo
|
||||
}
|
||||
}else{
|
||||
districts << dbo
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1 +1,18 @@
|
||||
package com.fangjia.script.wenyan
|
||||
|
||||
import com.fangjia.core.ProvinceData
|
||||
import com.fangjia.script.util.Jms
|
||||
import com.fangjia.core.util.DateUtil
|
||||
import com.fangjia.core.util.Mongo3Utils
|
||||
import com.fangjia.datastore.driver.DSCollection
|
||||
import com.fangjia.datastore.driver.DataStore
|
||||
import com.fangjia.script.util.CommonUtils
|
||||
import com.fangjia.script.util.DbUtils
|
||||
import com.fangjia.script.util.ElasticUtils
|
||||
import com.mongodb.client.MongoCollection
|
||||
import org.bson.Document
|
||||
|
||||
def jms = Jms.create("tcp://jms.db.fangjia.com:61616")
|
||||
|
||||
jms.sendMail("1142375881@qq.com", "²âÊÔ", "²âÊÔÄÚÈÝ")
|
||||
println('1111')
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
package com.fangjia.script.wenyan.temp
|
||||
|
||||
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.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("20230101", "yyyyMMdd")
|
||||
def endDate = DateUtil.parseDate("20230201", "yyyyMMdd")
|
||||
Calendar calendar = Calendar.getInstance()
|
||||
calendar.setTime(startDate)
|
||||
def count = 0
|
||||
def hashSet = []
|
||||
def data = [["编号", "公司名称", "IP", "访问链接", "访问时间", "dataStatus", "code", "msg", "参数", "返回参数"]]
|
||||
while (startDate.before(endDate)) {
|
||||
calendar.add(Calendar.DATE, 1)
|
||||
def nextDate = calendar.getTime()
|
||||
count++
|
||||
OPEN_URI_LOG.find(and(eq("user_id", "1007713"), eq("request_uri", "/property/evaluate"), eq("data_status", 1), lt("c_date", nextDate), gte("c_date", startDate))).each { Document doc ->
|
||||
def result = JSONObject.fromObject(doc.res_map.result)
|
||||
// if (!hashSet.contains(result)) {
|
||||
def item = [doc._id.toString(), "东莞银行总行", doc.ip, 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()]
|
||||
data << item
|
||||
// hashSet << result
|
||||
// } else {
|
||||
// println("已存在")
|
||||
// }
|
||||
}
|
||||
if (count % 7 == 0) {
|
||||
hashSet.clear()
|
||||
}
|
||||
|
||||
startDate = nextDate
|
||||
}
|
||||
ExcelUtils.write("D:\\数据\\东莞\\东莞银行总行(不去重).xlsx", data, "202301")
|
||||
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ import org.jsoup.Jsoup
|
||||
import java.util.zip.GZIPInputStream
|
||||
|
||||
class GaoDeApiUtils {
|
||||
def static GAO_DE_AK = "90010d53a16ce9df544acab297645106"
|
||||
def static GAO_DE_AK = "c6fcd4bfbc40d73ee762b8115dca3390"
|
||||
|
||||
/**
|
||||
* 冪帠僅蛌華硊<br>
|
||||
|
||||
+27
-6
@@ -49,7 +49,7 @@ public class CzbankSampleServiceImpl implements CzbankSampleService{
|
||||
"totalPrice", "avgPrice", "area", "roomNumber", "fitment", "direction", "floor", "height", "tradeDate", "address"};
|
||||
|
||||
private static String[] HOUSE_FIELDS = new String[]{"city", "region", "districtName", "totalPrice", "avgPrice",
|
||||
"area", "fitment", "direction", "floor", "height", "publishDate", "address"};
|
||||
"area", "fitment", "direction", "floor", "height", "publishDate", "address", "estateType"};
|
||||
|
||||
|
||||
|
||||
@@ -190,7 +190,7 @@ public class CzbankSampleServiceImpl implements CzbankSampleService{
|
||||
districtStat = districtStatService.findOneDistrictStatsSort(district.getCity(), district.getRegion(), district.getName(), DateUtil.add( new Date(), -7));
|
||||
}
|
||||
List<SampleWrapper> querySamples= new ArrayList<SampleWrapper>();
|
||||
List<SampleWrapper> samples = findSampleByDistrict(district.getCity(), district.getRegion(), district.getName(), district.getAlias(), district.getMasterDistrictNname(),queryBean.getPropertyTypeCode(), queryBean.getUpdateDate(), districtStat);
|
||||
List<SampleWrapper> samples = findSampleByDistrict(district.getCity(), district.getRegion(), district.getName(), district.getAlias(), district.getMasterDistrictNname(), district.getEstateType2(),queryBean.getPropertyTypeCode(), queryBean.getUpdateDate(), districtStat);
|
||||
scoreForSample(samples, target);
|
||||
for(SampleWrapper sample : samples){
|
||||
sample.setProperty(queryBean.getProperty());
|
||||
@@ -201,7 +201,7 @@ public class CzbankSampleServiceImpl implements CzbankSampleService{
|
||||
List<District> districts = districtService.findNearestDistrict(district, 1000, 5);
|
||||
for(District d : districts){
|
||||
d = districtService.findById(d.getId());
|
||||
List<SampleWrapper> nearlySample = findSampleByDistrict(d.getCity(), d.getRegion(), d.getName(), district.getAlias(), district.getMasterDistrictNname(),queryBean.getPropertyTypeCode(), queryBean.getUpdateDate(), districtStat);
|
||||
List<SampleWrapper> nearlySample = findSampleByDistrict(d.getCity(), d.getRegion(), d.getName(), district.getAlias(), district.getMasterDistrictNname(), district.getEstateType2(),queryBean.getPropertyTypeCode(), queryBean.getUpdateDate(), districtStat);
|
||||
for(SampleWrapper sample : nearlySample){
|
||||
sample.setProperty(d);
|
||||
}
|
||||
@@ -294,7 +294,15 @@ public class CzbankSampleServiceImpl implements CzbankSampleService{
|
||||
if(sample.getBuildingRemainLife() != null){
|
||||
sample.setHouseHadUsed(sample.getHouseUseLimit() - sample.getBuildingRemainLife());
|
||||
}
|
||||
sample.setBuildingName(district.getName());
|
||||
|
||||
//之前是房源名称加“商住”,这块是将房源名称用小区名称填充
|
||||
if(StringUtils.isNotBlank(sample.getBuildingName()) && sample.getBuildingName().contains("(商住)")){
|
||||
if(!district.getName().contains("商住") && !district.getName().contains("商业")){
|
||||
sample.setBuildingName(district.getName() + "(商住)");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if("district".equals(district.getCategory())){
|
||||
if(sample.getAboveFloorAmount() != null && sample.getAboveFloorAmount() > 6){
|
||||
sample.setIsElevator(1);
|
||||
@@ -479,11 +487,12 @@ public class CzbankSampleServiceImpl implements CzbankSampleService{
|
||||
* @param region
|
||||
* @param name
|
||||
* @param alias
|
||||
* @param estateType
|
||||
* @param estateType 用户查询物业类型
|
||||
* @param startDate
|
||||
* @param distEstateType 小区物业类型
|
||||
* @return
|
||||
*/
|
||||
private List<SampleWrapper> findSampleByDistrict(String city, String region, String name, List<String> alias, String masterName, String estateType, Date startDate, DistrictStat districtStat){
|
||||
private List<SampleWrapper> findSampleByDistrict(String city, String region, String name, List<String> alias, String masterName, String distEstateType, String estateType, Date startDate, DistrictStat districtStat){
|
||||
|
||||
List<String> names = new ArrayList<String>();
|
||||
names.add(ClientUtils.escapeQueryChars(name));
|
||||
@@ -539,6 +548,7 @@ public class CzbankSampleServiceImpl implements CzbankSampleService{
|
||||
int maxFloor = 0;
|
||||
boolean allSampleHasHeight = true;
|
||||
for(House house : houses){
|
||||
|
||||
SampleWrapper sample = convertHouse2Sample(house);
|
||||
if(isAvailableSample(sample)){
|
||||
samples.add(sample);
|
||||
@@ -556,6 +566,17 @@ public class CzbankSampleServiceImpl implements CzbankSampleService{
|
||||
sample.setDoorNo("502");
|
||||
sample.setBuildingNoName("56");
|
||||
}
|
||||
|
||||
if(StringUtils.isNotBlank(house.getEstateType())){
|
||||
if(house.getEstateType().contains("商业") || house.getEstateType().contains("商住") || house.getEstateType().contains("办公")){
|
||||
sample.setBuildingName(house.getDistrictName() +"(商住)");
|
||||
}
|
||||
}else{
|
||||
if(StringUtils.isNotBlank(distEstateType) && (distEstateType.contains("商住") && (!name.contains("商住") || !name.contains("商业")) )){
|
||||
sample.setBuildingName(house.getDistrictName() + "(商住)");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
List<QueryParam> dealPriceQuery = new ArrayList<QueryParam>();
|
||||
dealPriceQuery.add(new QueryParam("city", city ));
|
||||
|
||||
+2
@@ -17,4 +17,6 @@ public interface AverageStatisticsService {
|
||||
AverageStatistics findSecendAverageStatictics(String city,String region,String name,String category);
|
||||
|
||||
Map<String, Object> findFirstAverageStatictics(String city,String region,String name,String category, Date sDate);
|
||||
|
||||
AverageStatistics save(AverageStatistics averageStatistics);
|
||||
}
|
||||
|
||||
+8
-2
@@ -198,8 +198,14 @@ public class AverageStatisticsServiceImpl implements AverageStatisticsService {
|
||||
}
|
||||
return dataMap;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public AverageStatistics save(AverageStatistics averageStatistics) {
|
||||
averageStatisticsDao.save(averageStatistics);
|
||||
return averageStatistics;
|
||||
}
|
||||
|
||||
|
||||
private boolean isValid(Integer value) {
|
||||
if (value != null && value > 1000) {
|
||||
return true;
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 5.2 KiB |
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user