+8
-6
@@ -36,7 +36,7 @@ class RelatedTaiWanBatch extends BaseBatch{
|
||||
|
||||
@Override
|
||||
public void process(Object args) {
|
||||
createDatas() //企业库获取涉台园区企业
|
||||
// createDatas() //企业库获取涉台园区企业
|
||||
updateRangeByPoint() //更改企业所在自贸区
|
||||
export() //导出数据
|
||||
}
|
||||
@@ -57,12 +57,14 @@ class RelatedTaiWanBatch extends BaseBatch{
|
||||
println dbcursor.count()
|
||||
for(def r : dbcursor){
|
||||
def resKey = null
|
||||
for(def m : zimaoqu_range_datas){
|
||||
if(r.lon && r.lat){
|
||||
for(def m : zimaoqu_range_datas){
|
||||
// def flag = InsidePolygon.isInArea(r.lon, r.lat, InsidePolygon.createPoint5(m.shape))
|
||||
def flag = InsidePolygon.isPtInPoly(r.lon, r.lat, InsidePolygon.createPoint5(m.shape))
|
||||
if(flag){
|
||||
resKey = m.name
|
||||
break
|
||||
def flag = InsidePolygon.isPtInPoly(r.lon, r.lat, InsidePolygon.createPoint5(m.shape))
|
||||
if(flag){
|
||||
resKey = m.name
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
if(resKey){
|
||||
|
||||
Reference in New Issue
Block a user