优先处理重庆农商行招标城市POI
This commit is contained in:
+30
-2
@@ -33,7 +33,36 @@ class SeaweedAroundPoi {
|
||||
|
||||
static void main(String[] args) {
|
||||
def types = listAllType()
|
||||
DBObject query = new BasicDBObject()
|
||||
dealSpecialSeaweedAround(types)
|
||||
executorService.shutdown()
|
||||
}
|
||||
|
||||
/**
|
||||
* 有限处理招标城市
|
||||
*/
|
||||
static dealSpecialSeaweedAround(def types) {
|
||||
def cities = ["重庆", "达州", "曲靖", "昆明", "大理", "迪庆州", "福安", "平潭", "三明", "石狮", "柳州", "苏州"]
|
||||
for (def city : cities) {
|
||||
DBObject q = new BasicDBObject();
|
||||
q.put("city", city);
|
||||
if (city == "福安") {
|
||||
city = "宁德"
|
||||
q.put("city", city)
|
||||
q.put("region", "福安")
|
||||
} else if (city == "平潭") {
|
||||
city = "福州"
|
||||
q.put("city", city)
|
||||
q.put("region", "平潭")
|
||||
} else if (city == "石狮") {
|
||||
city = "泉州"
|
||||
q.put("city", city)
|
||||
q.put("region", "石狮")
|
||||
}
|
||||
dealPoi(q, types)
|
||||
}
|
||||
}
|
||||
|
||||
static dealPoi(DBObject query, def types) {
|
||||
query.put("status", 1)
|
||||
conn136.find(query).batchSize(5000).each {objTemp ->
|
||||
final def obj = objTemp
|
||||
@@ -55,7 +84,6 @@ class SeaweedAroundPoi {
|
||||
}
|
||||
})
|
||||
}
|
||||
executorService.shutdown()
|
||||
}
|
||||
|
||||
static getNewSeaweed() {
|
||||
|
||||
Reference in New Issue
Block a user