+10
-10
@@ -68,14 +68,14 @@ class BigdataDealBatch extends BaseBatch{
|
|||||||
|
|
||||||
//664a22000000000000000000 5-20
|
//664a22000000000000000000 5-20
|
||||||
//664b73800000000000000000 5-21
|
//664b73800000000000000000 5-21
|
||||||
def citys =CcbCommonUtils.getRunningCitys(args)
|
def citys = CcbCommonUtils.getRunningCitys(args)
|
||||||
|
|
||||||
println "curDate:"+curDate
|
println "curDate:"+curDate
|
||||||
def allCitys = CommonDatautils.findAllCity()
|
def allCitys = CommonDatautils.findAllCity()
|
||||||
for(def city : allCitys){
|
for(def city : allCitys){
|
||||||
addDealPriceMatch(city);
|
addDealPriceMatch(city);
|
||||||
}
|
}
|
||||||
updateCrawlTradeDate()//修改后抓取的成交,将时间改为本月
|
// updateCrawlTradeDate()//修改后抓取的成交,将时间改为本月
|
||||||
|
|
||||||
|
|
||||||
def rows = []
|
def rows = []
|
||||||
@@ -720,7 +720,6 @@ class BigdataDealBatch extends BaseBatch{
|
|||||||
if(!t.match_id){
|
if(!t.match_id){
|
||||||
def region = RegionData.formatRegion(t.city, t.region)
|
def region = RegionData.formatRegion(t.city, t.region)
|
||||||
def rMap = null
|
def rMap = null
|
||||||
if(region || (!region && ["澄迈"].contains(t.city))) {
|
|
||||||
if(t.house_use && t.house_use.contains("商住")){
|
if(t.house_use && t.house_use.contains("商住")){
|
||||||
if(!t.name.contains("商住")){
|
if(!t.name.contains("商住")){
|
||||||
t.name = t.name +"商住楼"
|
t.name = t.name +"商住楼"
|
||||||
@@ -740,19 +739,20 @@ class BigdataDealBatch extends BaseBatch{
|
|||||||
rMap = SeaweedDataMatchProcess.doMatch(t.city, region, t.name+"小区", address);
|
rMap = SeaweedDataMatchProcess.doMatch(t.city, region, t.name+"小区", address);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(rMap && rMap.region==region){
|
if(rMap && region && rMap.region==region){
|
||||||
CcbCommonUtils.updateDealPrice(t._id, rMap.city, rMap.region, rMap.name, rMap.id)
|
CcbCommonUtils.updateDealPrice(t._id, rMap.city, rMap.region, rMap.name, rMap.id)
|
||||||
}else if(rMap && rMap.address && address && rMap.region!=region && address.contains(rMap.address)){
|
}else if(rMap && rMap.address && address && region && rMap.region!=region && address.contains(rMap.address)){
|
||||||
CcbCommonUtils.updateDealPrice(t._id, rMap.city, rMap.region, rMap.name, rMap.id)
|
CcbCommonUtils.updateDealPrice(t._id, rMap.city, rMap.region, rMap.name, rMap.id)
|
||||||
}else if (rMap && ["澄迈"].contains(rMap.city)){
|
}else if (rMap && ["澄迈"].contains(rMap.city)){
|
||||||
CcbCommonUtils.updateDealPrice(t._id, rMap.city, rMap.region, rMap.name, rMap.id)
|
CcbCommonUtils.updateDealPrice(t._id, rMap.city, rMap.region, rMap.name, rMap.id)
|
||||||
}else{
|
}else if(rMap && rMap.region!=t.region && ["开发区","八里湖新区","经济技术开发区(头屯河区)","角美台商投资区","贵州双龙航空港经济区","东津新区"].contains(t.region)){
|
||||||
if (rMap) {
|
def lists = CommonDatautils.findDistrictList(rMap.city, null, rMap.name, "district")
|
||||||
println "区域不同"
|
if(lists && lists.size()==1){
|
||||||
|
CcbCommonUtils.updateDealPrice(t._id, rMap.city, rMap.region, rMap.name, rMap.id)
|
||||||
|
}else {
|
||||||
|
println "多区域"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
println count_.get()+" "+t+" "+ rMap
|
println count_.get()+" "+t+" "+ rMap
|
||||||
}
|
}
|
||||||
}catch(Exception e){
|
}catch(Exception e){
|
||||||
|
|||||||
Reference in New Issue
Block a user