etreschenkov 2026-03-24 12:01:05 +03:00
parent 02e20da2c7
commit aa9a581527

View file

@ -191,12 +191,14 @@ public class MonitoringService {
if (!Files.exists(rootReportPath)) {
Files.createDirectories(rootReportPath);
}
LocalDateTime newReportDate = CTUtil.parseDateFromReportFileName(reportName);
newReportDate = newReportDate == null ? LocalDateTime.now() : newReportDate;
AtomicReference<Path> responsePath = new AtomicReference<>(
rootReportPath.resolve(
String.format("%s_%s_%s.xml",
commonMembercode,
userPackage.getPackageName(),
LocalDateTime.now().format(CTUtil.responseReportDateTimeFormatter))
newReportDate.format(CTUtil.responseReportDateTimeFormatter))
));
MonitoringSignalResponse response = new MonitoringSignalResponse();