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