Commit 4cd0373a authored by yanzg's avatar yanzg

表结构修改

parent 1c5b2daa
...@@ -522,7 +522,6 @@ public class ExcelConsole<T> implements DbRow<T> { ...@@ -522,7 +522,6 @@ public class ExcelConsole<T> implements DbRow<T> {
// 重命名成正式文件 // 重命名成正式文件
String fileName = this.getFileName(); String fileName = this.getFileName();
File toFile = new File(fileName); File toFile = new File(fileName);
long maxRenameTime = System.currentTimeMillis() + 30 * 1000;
boolean b; boolean b;
do { do {
b = file.renameTo(toFile); b = file.renameTo(toFile);
...@@ -531,7 +530,7 @@ public class ExcelConsole<T> implements DbRow<T> { ...@@ -531,7 +530,7 @@ public class ExcelConsole<T> implements DbRow<T> {
} else { } else {
break; break;
} }
} while (System.currentTimeMillis() <= maxRenameTime); } while (file.exists());
if (!b) { if (!b) {
throw YzgError.getRuntimeException("036", fileName); throw YzgError.getRuntimeException("036", fileName);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment