This commit is contained in:
2024-08-22 12:43:17 +08:00
parent 6d9d4b061a
commit 63e6e0ff9f
@@ -54,6 +54,8 @@ class MinglujiData {
if (CommonDatautils.isWindow()) { if (CommonDatautils.isWindow()) {
fileName = "D:\\数据\\数据建设\\名录集\\${city}_${i}.xlsx" fileName = "D:\\数据\\数据建设\\名录集\\${city}_${i}.xlsx"
} }
File file=new File(fileName);
if(file.exists()){
ExcelUtils.multiThreadingModify(fileName, { d -> ExcelUtils.multiThreadingModify(fileName, { d ->
if (d['D']) { if (d['D']) {
def street = d['D'] def street = d['D']
@@ -110,6 +112,9 @@ class MinglujiData {
} }
}) })
} }
i++
println fileName +" 完成"
}
} }
@@ -147,7 +152,7 @@ class MinglujiData {
} }
def matchCommunity(city){ def matchCommunity(city){
def i = 0; def i = 1;
while(i<20){ while(i<20){
def fileName = "/home/goojia/gj/mlj_${i}.xlsx" def fileName = "/home/goojia/gj/mlj_${i}.xlsx"
if(CommonDatautils.isWindow()){ if(CommonDatautils.isWindow()){
@@ -193,7 +198,7 @@ class MinglujiData {
}, 0) }, 0)
println fileName +" 远行完成" println fileName +" 远行完成"
} }
i++
} }
} }