Commit 7cd6e693 authored by yanzg's avatar yanzg

修改实体位置

parent c5cb6727
...@@ -382,6 +382,10 @@ public class ExcelConsole<T extends Object> implements DbRow<T> { ...@@ -382,6 +382,10 @@ public class ExcelConsole<T extends Object> implements DbRow<T> {
} finally { } finally {
out.close(); out.close();
} }
File file = new File(this.getFileName());
if (!file.exists()) {
throw new RuntimeException("保存路径" + this.getFileName() + "失败");
}
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();
throw new RuntimeException("保存失败"); throw new RuntimeException("保存失败");
......
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