先不判断乡镇是否标准
This commit is contained in:
+5
-4
@@ -459,7 +459,7 @@ class TownStandardBatch extends BaseBatch{
|
||||
totalCount.addAndGet(1)
|
||||
def rMap = regionFullNameMap.get(r.city)
|
||||
if (rMap) {
|
||||
def townMap = CommonDatautils.queryTownByCity(r.city, ["city", "district", "mzb_district_name", "street", "alias", "shape"])
|
||||
def townMap = null//CommonDatautils.queryTownByCity(r.city, ["city", "district", "mzb_district_name", "street", "alias", "shape"])
|
||||
def set = rMap.keySet()
|
||||
println totalCount.get() +" "+r.city + " " + set.size()
|
||||
// if (set.size() >= 1) {
|
||||
@@ -524,9 +524,10 @@ class TownStandardBatch extends BaseBatch{
|
||||
saveObj.township = gaodeMap.township
|
||||
saveObj.new_district = gaodeMap.district
|
||||
saveObj.town_source = "高德API"
|
||||
if(townMap.size()>=1){
|
||||
saveObj.strand_town = isStandTown(townMap, saveObj.new_district, saveObj.township)
|
||||
}
|
||||
saveObj.strand_town = ""
|
||||
// if(townMap.size()>=1){
|
||||
// saveObj.strand_town = isStandTown(townMap, saveObj.new_district, saveObj.township)
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user