fix: 人工交互模块Beta存储日志文件查找本地文件名称错误问题修改
This commit is contained in:
parent
74bc9be6f1
commit
ae61227d1a
|
@ -4336,12 +4336,13 @@ public class SpectrumAnalysisServiceImpl extends AbstractLogOrReport implements
|
|||
String logFileName = analyses_absolute_LogPath.substring(analyses_absolute_LogPath.lastIndexOf(StringPool.SLASH)+1);
|
||||
//获取日志的文件存放路径
|
||||
String logFilePath = parameterProperties.getLogFilePath() + File.separator + DateUtils.formatDate(new Date(), "yyyy-MM-dd");
|
||||
String localLogName = betaDataFile.getSampleFileName().replace("PHD", "log");
|
||||
//判断文件路径是否存在
|
||||
File logPath = new File(logFilePath);
|
||||
if (!logPath.exists()) {
|
||||
logPath.mkdirs();
|
||||
}
|
||||
File logFile = new File(logFilePath + File.separator +logFileName);
|
||||
File logFile = new File(logFilePath + File.separator +localLogName);
|
||||
try {
|
||||
//判断日志文件是否存在 如果不存在创建一个空的文件 上传到ftp
|
||||
if (!logFile.exists()) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user