+1
-2
@@ -380,7 +380,6 @@ class TownStandardBatch extends BaseBatch{
|
|||||||
o.put("district", arrs[4])
|
o.put("district", arrs[4])
|
||||||
o.put("lng", arrs[5])
|
o.put("lng", arrs[5])
|
||||||
o.put("lat", arrs[6])
|
o.put("lat", arrs[6])
|
||||||
println arrs.size()
|
|
||||||
if(arrs.size()<=7){
|
if(arrs.size()<=7){
|
||||||
o.put("data_source","")
|
o.put("data_source","")
|
||||||
}else{
|
}else{
|
||||||
@@ -466,7 +465,7 @@ class TownStandardBatch extends BaseBatch{
|
|||||||
if (rMap) {
|
if (rMap) {
|
||||||
def townMap = [:]//CommonDatautils.queryTownByCity(r.city, ["city", "district", "mzb_district_name", "street", "alias", "shape"])
|
def townMap = [:]//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 + " "
|
||||||
// if (set.size() >= 1) {
|
// if (set.size() >= 1) {
|
||||||
addTown(r, townMap, ["lon":r.lng.toString().toDouble(), "lat":r.lat.toString().toDouble()])
|
addTown(r, townMap, ["lon":r.lng.toString().toDouble(), "lat":r.lat.toString().toDouble()])
|
||||||
results << [r.id, r.province, r.city, r.district, r.lng, r.lat, r.data_source, r.township, r.new_district, r.town_source, r.strand_town]
|
results << [r.id, r.province, r.city, r.district, r.lng, r.lat, r.data_source, r.township, r.new_district, r.town_source, r.strand_town]
|
||||||
|
|||||||
Reference in New Issue
Block a user