From 508ab939b392476787e61b33176c0c8172a31ba0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E5=81=A5?= Date: Mon, 27 Sep 2021 18:18:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=95=87=E5=88=86=E8=AF=8D?= =?UTF-8?q?=E7=BB=8F=E7=BA=AC=E5=BA=A6=E8=8E=B7=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../script/temp/shenjian/poi/CommitteeLatLng.groovy | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/projects/fangjia-script/src/main/groovy/com/fangjia/script/temp/shenjian/poi/CommitteeLatLng.groovy b/projects/fangjia-script/src/main/groovy/com/fangjia/script/temp/shenjian/poi/CommitteeLatLng.groovy index 56ad77ad4..c7a92ae8e 100644 --- a/projects/fangjia-script/src/main/groovy/com/fangjia/script/temp/shenjian/poi/CommitteeLatLng.groovy +++ b/projects/fangjia-script/src/main/groovy/com/fangjia/script/temp/shenjian/poi/CommitteeLatLng.groovy @@ -24,7 +24,7 @@ class CommitteeLatLng { static ExecutorService executorService = Executors.newFixedThreadPool(20) static void main(String[] args) { - dealPoi(new BasicDBObject("status_location", new BasicDBObject('$ne', 0))) + dealPoi(new BasicDBObject("status_location", new BasicDBObject('$ne', 0)).append("name", "席庄二村委会")) //dealLocation() executorService.shutdown() } @@ -52,13 +52,17 @@ class CommitteeLatLng { if (obj.name.contains("虚拟生活区") || obj.name.contains("管理区") || obj.name.contains("虚拟社区")) { name = obj.street_name } -// if (name.contains("社区居委会")) { -// name = name.replace("居委会", "") -// } + if (name.contains("社区居民委员会")) { + name = name.replace("居民委员会", "") + } if (name.contains("村村委会")) { name = name.replace("村委会", "") + } else if (name.contains("村村民委员会")) { + name = name.replace("村民委员会", "") } else if (name.contains("村委会")) { name = name.replace("村委会", "村") + } else if (name.contains("村民委员会")) { + name = name.replace("村民委员会", "村") } String address = province_name + " " + city + " " + area + " " + obj.street_name + " " + name;