This commit is contained in:
parent
986fa4201b
commit
e6844640c2
1 changed files with 3 additions and 5 deletions
|
|
@ -296,17 +296,15 @@ public class SignalFacadeV3 {
|
||||||
throw clientExcp(SignalError.ERROR_012, XmlErrorFormat.MonitoringReportListError, packageName);
|
throw clientExcp(SignalError.ERROR_012, XmlErrorFormat.MonitoringReportListError, packageName);
|
||||||
}
|
}
|
||||||
|
|
||||||
String memberCode = username.substring(0, 6);
|
Path folderPath = Path.of(config.getLoadDir(),"tmp", userPackage.getUserId(), userPackage.getPackageName());
|
||||||
String filePrefix = (memberCode + "_" + packageName).toUpperCase();
|
File folder = folderPath.toFile();
|
||||||
String dirPath = config.getLoadDir() + File.separator + memberCode;
|
|
||||||
File folder = new File(dirPath);
|
|
||||||
|
|
||||||
MonitoringReportListResponse.Reports reports = new MonitoringReportListResponse.Reports();
|
MonitoringReportListResponse.Reports reports = new MonitoringReportListResponse.Reports();
|
||||||
if (folder.exists() && folder.isDirectory()) {
|
if (folder.exists() && folder.isDirectory()) {
|
||||||
File[] files = folder.listFiles();
|
File[] files = folder.listFiles();
|
||||||
if (files != null) {
|
if (files != null) {
|
||||||
for (File file : files) {
|
for (File file : files) {
|
||||||
if (file.isFile() && file.getName().startsWith(filePrefix)) {
|
if (file.isFile() && file.getName().endsWith(".zip")) {
|
||||||
reports.getReports().add(file.getName());
|
reports.getReports().add(file.getName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue