This commit is contained in:
parent
02e20da2c7
commit
aa9a581527
1 changed files with 3 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue