From 3ab5c516a9d912d5f8db5c5c916d4d41bc02cccd Mon Sep 17 00:00:00 2001 From: gaojuan1 Date: Wed, 23 Oct 2024 11:21:01 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E6=96=B9=E5=8C=B9=E9=85=8D?= =?UTF-8?q?=E5=B0=8F=E5=8C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../script/gj/data_handle/ThirdPriceMappingBatch.groovy | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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