|
@@ -96,6 +96,7 @@ public class BackDataAnalysisService {
|
|
|
// 获取回传文件路径
|
|
|
backFilePath = stationService.findThis().getBackFilePath();
|
|
|
}
|
|
|
+ // 获取指定目录下所有文件夹名称
|
|
|
List<String> stationCodeFileNames = SystermUtils.getFileNames(backFilePath);
|
|
|
// 获取文件名
|
|
|
String fileName = CommonStant.RECORD_TYPE_BACK_DATA_FILE + "_" + LocalDateTimeUtil.format(LocalDateTimeUtil.of(time), DatePattern.PURE_DATETIME_PATTERN) + ".CIME";
|
|
@@ -112,6 +113,7 @@ public class BackDataAnalysisService {
|
|
|
break;
|
|
|
}
|
|
|
file = FileUtil.file(backFilePath + File.separatorChar + stationCode + File.separatorChar+ fileName);
|
|
|
+ log.info("解析文件路径"+backFilePath + File.separatorChar + stationCode + File.separatorChar+ fileName);
|
|
|
// 根据文件及场站信息,解析文件
|
|
|
this.analysisAndSave(time,file,stationCode);
|
|
|
}
|
|
@@ -165,6 +167,7 @@ public class BackDataAnalysisService {
|
|
|
recordService.save(record);
|
|
|
}
|
|
|
} else {
|
|
|
+ log.info("文件不存在,路径:" + file.getAbsolutePath() + file.getName());
|
|
|
Record record = new Record(CommonStant.RECORD_TYPE_BACK_DATA_FILE, null, localDateTime, localDateTime, StatusEnum.FILE_NULL.getCode(), StatusEnum.FILE_NULL.getMsg(),stationCode);
|
|
|
recordService.save(record);
|
|
|
}
|