+3
-3
@@ -36,7 +36,7 @@ class TownStandardBatch extends BaseBatch{
|
|||||||
def fullCityMap = CommonDatautils.queryFullNameCity()
|
def fullCityMap = CommonDatautils.queryFullNameCity()
|
||||||
def regionMap = com.fangjia.script.commData.CommonDatautils.queryAllRegionNameByCity()
|
def regionMap = com.fangjia.script.commData.CommonDatautils.queryAllRegionNameByCity()
|
||||||
def regionFullNameMap = com.fangjia.script.commData.CommonDatautils.queryAllRegionFullNameByCity()
|
def regionFullNameMap = com.fangjia.script.commData.CommonDatautils.queryAllRegionFullNameByCity()
|
||||||
public static ExecutorService fixedThreadPool = Executors.newFixedThreadPool(5)
|
public static ExecutorService fixedThreadPool = Executors.newFixedThreadPool(10)
|
||||||
|
|
||||||
def updateList = []
|
def updateList = []
|
||||||
def addAliasList = []
|
def addAliasList = []
|
||||||
@@ -464,8 +464,8 @@ 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 = [:]//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) {
|
||||||
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()])
|
||||||
|
|||||||
Reference in New Issue
Block a user