存储谱数据到数据库时,生成的临时日志,报告文件进行删除

This commit is contained in:
qiaoqinzheng 2024-02-02 09:31:01 +08:00
parent b6bad77274
commit 19b0366ace
2 changed files with 6 additions and 0 deletions

View File

@ -5129,6 +5129,8 @@ public class GammaServiceImpl extends AbstractLogOrReport implements IGammaServi
ftpUtil.saveFile(logPathName, logFileName, in);
} catch (FileNotFoundException e) {
throw new RuntimeException(e);
} finally {
logFile.delete();
}
}
{
@ -5141,6 +5143,8 @@ public class GammaServiceImpl extends AbstractLogOrReport implements IGammaServi
ftpUtil.saveFile(rptPathName, rptFileName, in);
} catch (FileNotFoundException e) {
throw new RuntimeException(e);
} finally {
rptFile.delete();
}
}
List<String> paths = new LinkedList<>();

View File

@ -4090,6 +4090,8 @@ public class SpectrumAnalysisServiceImpl extends AbstractLogOrReport implements
ftpUtil.saveFile(rptPathName, rptFileName, in);
} catch (FileNotFoundException e) {
throw new RuntimeException(e);
} finally {
rptFile.delete();
}
}
} catch (FileNotFoundException e) {