update
This commit is contained in:
@@ -813,7 +813,7 @@ class OpenApiUtils {
|
|||||||
|
|
||||||
static def addrVerifyGuangda(city, address){
|
static def addrVerifyGuangda(city, address){
|
||||||
address = URLEncoder.encode(address, "utf-8");
|
address = URLEncoder.encode(address, "utf-8");
|
||||||
def url = "http://192.168.0.19:32080/FangJiaAddressService/cebEnterpriseVillageIdentify?address=${address}"
|
def url = "http://192.168.0.100:32080/FangJiaAddressService/cebEnterpriseVillageIdentify?address=${address}"
|
||||||
// def url = "http://localhost:8080/fangjia-open/addrSvc/njcbVillageIdentify?address=${address}&type=${type}&token=F54F52381C49BB9EB4A33EB1B65604AE4B71A28AEE53518A94A2F360408B9056D57553931D15CE6DDE765562DAD286BA38E05A4CDAFC51C3D527A4959BF8E75A3B95DB7108FCEA340DDE61925616DB55118E1851E67D83EAD800460D100D6B667A4ED8EE67C8F7FB"
|
// def url = "http://localhost:8080/fangjia-open/addrSvc/njcbVillageIdentify?address=${address}&type=${type}&token=F54F52381C49BB9EB4A33EB1B65604AE4B71A28AEE53518A94A2F360408B9056D57553931D15CE6DDE765562DAD286BA38E05A4CDAFC51C3D527A4959BF8E75A3B95DB7108FCEA340DDE61925616DB55118E1851E67D83EAD800460D100D6B667A4ED8EE67C8F7FB"
|
||||||
if(city){
|
if(city){
|
||||||
url = url + "&city=${city}"
|
url = url + "&city=${city}"
|
||||||
@@ -830,6 +830,24 @@ class OpenApiUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
static def addrVerifyBase(city, address){
|
||||||
|
address = URLEncoder.encode(address, "utf-8");
|
||||||
|
def url = "http://192.168.0.100:32080/FangJiaAddressService/cebEnterpriseVillageIdentify?address=${address}"
|
||||||
|
// def url = "http://localhost:8080/fangjia-open/addrSvc/njcbVillageIdentify?address=${address}&type=${type}&token=F54F52381C49BB9EB4A33EB1B65604AE4B71A28AEE53518A94A2F360408B9056D57553931D15CE6DDE765562DAD286BA38E05A4CDAFC51C3D527A4959BF8E75A3B95DB7108FCEA340DDE61925616DB55118E1851E67D83EAD800460D100D6B667A4ED8EE67C8F7FB"
|
||||||
|
if(city){
|
||||||
|
url = url + "&city=${city}"
|
||||||
|
}
|
||||||
|
String content = new HttpRequest().get(url, "utf-8");
|
||||||
|
if(content){
|
||||||
|
def doc = new JsonSlurper().parseText(content)
|
||||||
|
if(doc && doc.msgCode ==200 && doc.result){
|
||||||
|
def dtos = doc.result
|
||||||
|
return dtos
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
// 省、市、区、街道、社区居委、POI补全
|
// 省、市、区、街道、社区居委、POI补全
|
||||||
static def complete(city, address){
|
static def complete(city, address){
|
||||||
def url = "http://open.fangjia.com/addrSvc/complete?city=${city}&address=${address}&token=F54F52381C49BB9EB4A33EB1B65604AE4B71A28AEE53518A94A2F360408B9056D57553931D15CE6DDE765562DAD286BA38E05A4CDAFC51C3D527A4959BF8E75A3B95DB7108FCEA340DDE61925616DB55118E1851E67D83EAD800460D100D6B667A4ED8EE67C8F7FB"
|
def url = "http://open.fangjia.com/addrSvc/complete?city=${city}&address=${address}&token=F54F52381C49BB9EB4A33EB1B65604AE4B71A28AEE53518A94A2F360408B9056D57553931D15CE6DDE765562DAD286BA38E05A4CDAFC51C3D527A4959BF8E75A3B95DB7108FCEA340DDE61925616DB55118E1851E67D83EAD800460D100D6B667A4ED8EE67C8F7FB"
|
||||||
|
|||||||
+1
-1
@@ -189,7 +189,7 @@ class AddDevShapeData {
|
|||||||
|
|
||||||
|
|
||||||
def run(){
|
def run(){
|
||||||
def directoryPath = 'D:\\数据\\数据建设\\开发区外包\\1016'
|
def directoryPath = 'D:\\数据\\数据建设\\开发区外包\\1020'
|
||||||
def dir = new File(directoryPath)
|
def dir = new File(directoryPath)
|
||||||
if (dir.isDirectory()) {
|
if (dir.isDirectory()) {
|
||||||
dir.eachFileRecurse(FileType.FILES) { file ->
|
dir.eachFileRecurse(FileType.FILES) { file ->
|
||||||
|
|||||||
+2
-2
@@ -33,8 +33,8 @@ class DevUpdateTestBatch {
|
|||||||
static main(args) {
|
static main(args) {
|
||||||
def task = new DevUpdateTestBatch()
|
def task = new DevUpdateTestBatch()
|
||||||
def path = "D:\\数据\\数据建设\\开发区\\开发区-园区.xlsx"//开发区-园区.xlsx
|
def path = "D:\\数据\\数据建设\\开发区\\开发区-园区.xlsx"//开发区-园区.xlsx
|
||||||
// task.addDev(path)
|
task.addDev(path)
|
||||||
task.addDevAddress(path)
|
// task.addDevAddress(path)
|
||||||
//
|
//
|
||||||
// task.updateHasGov("新疆维吾尔自治区","喀什地区","麦盖提县", "麦盖提镇", "是")
|
// task.updateHasGov("新疆维吾尔自治区","喀什地区","麦盖提县", "麦盖提镇", "是")
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -10,9 +10,9 @@ class GuangDaVillage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
def run(){
|
def run(){
|
||||||
ExcelUtils.multiThreadingModify("D:\\数据\\光大\\公开数据信息补充v3.xlsx",{ d->
|
ExcelUtils.multiThreadingModify("D:\\数据\\光大\\公开数据地址情况.xlsx",{ d->
|
||||||
|
|
||||||
if(!d['R']){
|
if(!d['R'] && d['A']){
|
||||||
def dto = OpenApiUtils.addrVerifyGuangda(null, d['A'])
|
def dto = OpenApiUtils.addrVerifyGuangda(null, d['A'])
|
||||||
if(dto){
|
if(dto){
|
||||||
// def dto = jsonObj.result
|
// def dto = jsonObj.result
|
||||||
|
|||||||
Reference in New Issue
Block a user