Commit c459e7c2 authored by yanzg's avatar yanzg

表结构修改

parent 8500b40c
......@@ -521,7 +521,11 @@ public class ExcelConsole<T> implements DbRow<T> {
// 重命名成正式文件
String fileName = this.getFileName();
File toFile = new File(fileName);
boolean b = file.renameTo(toFile);
long maxRenameTime = System.currentTimeMillis() + 30 * 1000;
boolean b;
do {
b = file.renameTo(toFile);
} while (System.currentTimeMillis() <= maxRenameTime || !b);
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