Commit 4cd0373a authored by yanzg's avatar yanzg

表结构修改

parent 1c5b2daa
......@@ -522,7 +522,6 @@ public class ExcelConsole<T> implements DbRow<T> {
// 重命名成正式文件
String fileName = this.getFileName();
File toFile = new File(fileName);
long maxRenameTime = System.currentTimeMillis() + 30 * 1000;
boolean b;
do {
b = file.renameTo(toFile);
......@@ -531,7 +530,7 @@ public class ExcelConsole<T> implements DbRow<T> {
} else {
break;
}
} while (System.currentTimeMillis() <= maxRenameTime);
} while (file.exists());
if (!b) {
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