update
This commit is contained in:
+5
-3
@@ -29,7 +29,7 @@ import java.util.concurrent.atomic.AtomicLong
|
|||||||
@BatchOwner(Watcher.GaoJuan)
|
@BatchOwner(Watcher.GaoJuan)
|
||||||
class GaoDePoiDataProcess extends BaseBatch{
|
class GaoDePoiDataProcess extends BaseBatch{
|
||||||
|
|
||||||
public static ExecutorService fixedThreadPool = Executors.newFixedThreadPool(5)
|
public static ExecutorService fixedThreadPool = Executors.newFixedThreadPool(20)
|
||||||
|
|
||||||
static main(args) {
|
static main(args) {
|
||||||
runBatch(new GaoDePoiDataProcess(), args)
|
runBatch(new GaoDePoiDataProcess(), args)
|
||||||
@@ -37,8 +37,9 @@ class GaoDePoiDataProcess extends BaseBatch{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
void process(Object args) {
|
void process(Object args) {
|
||||||
//三明市,宁德市,泉州市,厦门市,福州市,漳州市,南平市,龙岩市,莆田市,重庆市
|
//"三明市","漳州市","厦门市","福州市"
|
||||||
def citys = ["三明市","漳州市","厦门市","福州市"]
|
//三明市,"宁德市","泉州市","厦门市","福州市","漳州市","南平市","龙岩市","莆田市","重庆市"
|
||||||
|
def citys = ["福州市","重庆市"]
|
||||||
for(def city : citys){
|
for(def city : citys){
|
||||||
def results = CommonDatautils.findAmapDetailBySql(city)
|
def results = CommonDatautils.findAmapDetailBySql(city)
|
||||||
println results.size()
|
println results.size()
|
||||||
@@ -128,6 +129,7 @@ class GaoDePoiDataProcess extends BaseBatch{
|
|||||||
println fjw_city+" "+map.region+" 无法格式化 "+map.location + " "+gaodeMap
|
println fjw_city+" "+map.region+" 无法格式化 "+map.location + " "+gaodeMap
|
||||||
}
|
}
|
||||||
map.fjw_region = fjw_region
|
map.fjw_region = fjw_region
|
||||||
|
map.spell_name = com.fangjia.core.util.DataUtil.hanyuQuanpin(map.name, " ")
|
||||||
return map
|
return map
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user