人工交互模块增加beta部分日志文件的存在情况判断,上传后的日志文件不进行删除

This commit is contained in:
qiaoqinzheng 2024-01-18 10:35:56 +08:00
parent 82713a8795
commit e159740d76

View File

@ -4057,10 +4057,8 @@ public class SpectrumAnalysisServiceImpl extends AbstractLogOrReport implements
String logFilePath = parameterProperties.getLogFilePath() + File.separator + DateUtils.formatDate(new Date(), "yyyy-MM-dd") + File.separator + betaDataFile.getSampleFileName().replace("PHD", "log"); String logFilePath = parameterProperties.getLogFilePath() + File.separator + DateUtils.formatDate(new Date(), "yyyy-MM-dd") + File.separator + betaDataFile.getSampleFileName().replace("PHD", "log");
File logFile = new File(logFilePath); File logFile = new File(logFilePath);
try { try {
if (logFile.exists()) { FileInputStream in = new FileInputStream(logFile);
FileInputStream in = new FileInputStream(logFile); ftpUtil.saveFile(logPathName, logFileName, in);
ftpUtil.saveFile(logPathName, logFileName, in);
}
} catch (FileNotFoundException e) { } catch (FileNotFoundException e) {
throw new RuntimeException(e); throw new RuntimeException(e);
} }