This commit is contained in:
2024-11-05 09:15:36 +08:00
parent 9fcc8b3857
commit 3cb884d042
@@ -34,8 +34,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("新疆维吾尔自治区","喀什地区","麦盖提县", "麦盖提镇", "是")
@@ -122,6 +122,8 @@ class DevUpdateTestBatch {
q.put("address", d['C']) q.put("address", d['C'])
}else if(d['B'] == "园区"){ }else if(d['B'] == "园区"){
q.put("park", d['C']) q.put("park", d['C'])
}else if(d['B'] == "Poi"){
q.put("poi", d['C'])
} }
def mappingObj = DEV_MAPPING_100_CONN.findOne(q) def mappingObj = DEV_MAPPING_100_CONN.findOne(q)
if(!mappingObj){ if(!mappingObj){
@@ -137,6 +139,8 @@ class DevUpdateTestBatch {
o.put("address", d['C']) o.put("address", d['C'])
}else if(d['B'] == "园区"){ }else if(d['B'] == "园区"){
o.put("park", d['C']) o.put("park", d['C'])
}else if(d['B'] == "Poi"){
o.put("poi", d['C'])
} }
def date = new Date() def date = new Date()
o.put("c_date", date) o.put("c_date", date)
@@ -164,7 +168,7 @@ class DevUpdateTestBatch {
println d['A'] +" 不存在" println d['A'] +" 不存在"
} }
} }
},1) },2)
} }