Commit 88f56fc5 authored by yanzg's avatar yanzg

表结构修改

parent c459e7c2
...@@ -21,6 +21,8 @@ import java.io.File; ...@@ -21,6 +21,8 @@ import java.io.File;
import java.io.FileOutputStream; import java.io.FileOutputStream;
import java.io.IOException; import java.io.IOException;
import java.io.OutputStream; import java.io.OutputStream;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
...@@ -506,7 +508,7 @@ public class ExcelConsole<T> implements DbRow<T> { ...@@ -506,7 +508,7 @@ public class ExcelConsole<T> implements DbRow<T> {
String fileNameTemp = this.getFileNameTemp(); String fileNameTemp = this.getFileNameTemp();
// 保存为临时文件 // 保存为临时文件
try (OutputStream out = new FileOutputStream(fileNameTemp)) { try (OutputStream out = Files.newOutputStream(Paths.get(fileNameTemp))) {
workbook.write(out); workbook.write(out);
out.flush(); out.flush();
} catch (IOException e) { } catch (IOException e) {
......
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