Merge branch 'script_gj' into 'master'
先不判断乡镇是否标准 See merge request !1079
This commit is contained in:
+5
-4
@@ -459,7 +459,7 @@ class TownStandardBatch extends BaseBatch{
|
|||||||
totalCount.addAndGet(1)
|
totalCount.addAndGet(1)
|
||||||
def rMap = regionFullNameMap.get(r.city)
|
def rMap = regionFullNameMap.get(r.city)
|
||||||
if (rMap) {
|
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()
|
def set = rMap.keySet()
|
||||||
println totalCount.get() +" "+r.city + " " + set.size()
|
println totalCount.get() +" "+r.city + " " + set.size()
|
||||||
// if (set.size() >= 1) {
|
// if (set.size() >= 1) {
|
||||||
@@ -524,9 +524,10 @@ class TownStandardBatch extends BaseBatch{
|
|||||||
saveObj.township = gaodeMap.township
|
saveObj.township = gaodeMap.township
|
||||||
saveObj.new_district = gaodeMap.district
|
saveObj.new_district = gaodeMap.district
|
||||||
saveObj.town_source = "高德API"
|
saveObj.town_source = "高德API"
|
||||||
if(townMap.size()>=1){
|
saveObj.strand_town = ""
|
||||||
saveObj.strand_town = isStandTown(townMap, saveObj.new_district, saveObj.township)
|
// if(townMap.size()>=1){
|
||||||
}
|
// saveObj.strand_town = isStandTown(townMap, saveObj.new_district, saveObj.township)
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user