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