From ca239765c99dd452bf5cc08555720ecae2f7de20 Mon Sep 17 00:00:00 2001 From: gaojuan1 Date: Mon, 30 Dec 2024 10:43:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6=E6=95=B0=E6=8D=AE=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../script/gj/data_handle/NewGaoDePoiBatch.groovy | 11 +++++++---- .../gj/data_handle/ThirdPriceMappingBatch.groovy | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/projects/fangjia-script/src/main/groovy/com/fangjia/script/gj/data_handle/NewGaoDePoiBatch.groovy b/projects/fangjia-script/src/main/groovy/com/fangjia/script/gj/data_handle/NewGaoDePoiBatch.groovy index 8bef2fbe0..fd631c5e0 100644 --- a/projects/fangjia-script/src/main/groovy/com/fangjia/script/gj/data_handle/NewGaoDePoiBatch.groovy +++ b/projects/fangjia-script/src/main/groovy/com/fangjia/script/gj/data_handle/NewGaoDePoiBatch.groovy @@ -357,10 +357,12 @@ class NewGaoDePoiBatch extends BaseBatch{ def oldPoiMagre(){ def cityList = CommonDatautils.findFullNameCitys().reverse() + def index = 0 for(def cityObj : cityList){ -// if(!cityObj.city.contains("商洛市")){ -// continue -// } + index ++ + if(index <140){ + continue + } def fileName = "/home/goojia/gj/poi/old_poi/merge_poi/${cityObj.city}.csv" if (CommonDatautils.isWindow()) { fileName = "D:\\数据\\merge_poi\\${cityObj.city}.csv" @@ -369,9 +371,10 @@ class NewGaoDePoiBatch extends BaseBatch{ File file=new File(fileName); if(file.exists()){ def results = readCSV(fileName) - println cityObj.province+" " +cityObj.city+" "+results.size() + println "运行城市:"+cityObj.province+" " +cityObj.city+" "+results.size() if(results){ def megerMap = poiRepeat(cityObj.city, results) + println "待保存:" + cityObj.city +" "+megerMap.size() save(megerMap.values()) } }else{ 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 d1db63f64..7560c83ef 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 @@ -40,7 +40,7 @@ class ThirdPriceMappingBatch extends BaseBatch{ @Override public void process(Object args) { // //将新增数据同步过来 - addNemCommunity() +// addNemCommunity() //// //接口进行匹配 match()