From 01c1f5a1c7a690e55d5a24f546f0bd40b1db99ca Mon Sep 17 00:00:00 2001 From: gaojuan Date: Mon, 15 Jan 2024 16:45:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=89=E5=9F=8E=E5=B8=82=E5=85=A8=E9=87=8F?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gj/xiamen/SuggestionDataSynch.groovy | 22 ++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/projects/fangjia-script/src/main/groovy/com/fangjia/script/gj/xiamen/SuggestionDataSynch.groovy b/projects/fangjia-script/src/main/groovy/com/fangjia/script/gj/xiamen/SuggestionDataSynch.groovy index 07c4ef7af..57c7023b0 100644 --- a/projects/fangjia-script/src/main/groovy/com/fangjia/script/gj/xiamen/SuggestionDataSynch.groovy +++ b/projects/fangjia-script/src/main/groovy/com/fangjia/script/gj/xiamen/SuggestionDataSynch.groovy @@ -226,7 +226,7 @@ class SuggestionDataSynch extends BaseBatch{ def data = fullCityMap.get(city) if(data){ def results = CommonDatautils.findAmapDetailBySql(data.city) - def rets = createPoi(results, data, townMap) + def rets = createPoi(data.city, results, data, townMap) println city +" Íê³É£¡" return rets; } @@ -235,10 +235,11 @@ class SuggestionDataSynch extends BaseBatch{ } - def createPoi(results, data, townMap){ + def createPoi(fullCity, results, data, townMap){ def rets = new CopyOnWriteArrayList() def totalCount = new AtomicLong() + def townshipMap = findMapPoiTownshipMap(fullCity) final CountDownLatch latch = new CountDownLatch(results.size()) for(def i=0;i