Merge branch 'script_gj' into 'master'

换城市

See merge request !722
This commit is contained in:
2023-10-09 18:31:12 +08:00
@@ -17,7 +17,7 @@ import java.util.concurrent.atomic.AtomicLong
class PoiWash {
def MAP_POI_URL = "mongodb://admin:G00MONGOADMIN@192.168.0.100:30009";
DBCollection MAPPOI_CONN = MongoUtils.getCollectionByName2("fangjia", "map_poi_all", MAP_POI_URL)
DBCollection MAPPOI_CONN = MongoUtils.getCollectionByName2("fangjia", "map_poi_all_8", MAP_POI_URL)
DBCollection TOWNSHIP_CONN = MongoUtils.getCollectionByName2("fangjia", "township", MAP_POI_URL)
public static ExecutorService fixedThreadPool = Executors.newFixedThreadPool(20)
@@ -39,7 +39,7 @@ class PoiWash {
def run(){
//"上海市","深圳市","北京市","广州市","杭州市","苏州市","成都市"
//"重庆市","三明市","宁德市","泉州市","厦门市","福州市","漳州市","南平市","龙岩市","莆田市"
def citys = ["泉州市", "三明市","宁德市","厦门市","福州市","漳州市","南平市","龙岩市","莆田市","重庆市"]
def citys = ["上海市","深圳市","北京市","广州市","杭州市","苏州市","成都市"]
for(def city : citys){
townsMap = findAllTownship(city)
regions = findAllRegions(city)