diff --git a/projects/fangjia-script/src/main/groovy/com/fangjia/script/gj/data_handle/ThirdPriceMappingBatch.groovy b/projects/fangjia-script/src/main/groovy/com/fangjia/script/gj/data_handle/ThirdPriceMappingBatch.groovy index 41d940274..5da686848 100644 --- a/projects/fangjia-script/src/main/groovy/com/fangjia/script/gj/data_handle/ThirdPriceMappingBatch.groovy +++ b/projects/fangjia-script/src/main/groovy/com/fangjia/script/gj/data_handle/ThirdPriceMappingBatch.groovy @@ -46,9 +46,9 @@ class ThirdPriceMappingBatch extends BaseBatch{ // //将新增数据同步过来 addNemCommunity() // //接口进行匹配 -// match() + match() -// addOldMatchResult() + addOldMatchResult() } def match(){ @@ -119,7 +119,12 @@ class ThirdPriceMappingBatch extends BaseBatch{ def addNemCommunity(){ def citys = CommonUtils.findAllCity() def total = 0 + def index = 0 for(def c : citys){ + index ++ + if(index < 70){ + continue + } def crawlDatas = thirdPartyPriceColl.find(new BasicDBObject("city", c).append("s_date", curDate)).toList() def addCount = addDatasToDB(crawlDatas) println c + " 新增:"+ addCount