fix:gamma自动处理lc等文件保存至ftp目录下之后 删除临时文件
This commit is contained in:
parent
c05c8f4b68
commit
bbd35a11e8
|
@ -19,7 +19,7 @@ public class GammaReportUtil {
|
||||||
// 获取系统的临时目录
|
// 获取系统的临时目录
|
||||||
String tempDir = System.getProperty("java.io.tmpdir");
|
String tempDir = System.getProperty("java.io.tmpdir");
|
||||||
// 创建文件
|
// 创建文件
|
||||||
File file = new File(tempDir += System.currentTimeMillis());
|
File file = new File(tempDir + System.currentTimeMillis());
|
||||||
// 创建PrintWriter对象
|
// 创建PrintWriter对象
|
||||||
PrintWriter out = null;
|
PrintWriter out = null;
|
||||||
try {
|
try {
|
||||||
|
@ -54,6 +54,7 @@ public class GammaReportUtil {
|
||||||
if (null != out) {
|
if (null != out) {
|
||||||
out.close();
|
out.close();
|
||||||
}
|
}
|
||||||
|
file.delete();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public static void writeFile(List<Double> data, String fileType, String path){
|
public static void writeFile(List<Double> data, String fileType, String path){
|
||||||
|
@ -79,6 +80,7 @@ public class GammaReportUtil {
|
||||||
if (null != out) {
|
if (null != out) {
|
||||||
out.close();
|
out.close();
|
||||||
}
|
}
|
||||||
|
file.delete();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user