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);
|
||||
}
|
||||
|
||||
String memberCode = username.substring(0, 6);
|
||||
String filePrefix = (memberCode + "_" + packageName).toUpperCase();
|
||||
String dirPath = config.getLoadDir() + File.separator + memberCode;
|
||||
File folder = new File(dirPath);
|
||||
Path folderPath = Path.of(config.getLoadDir(),"tmp", userPackage.getUserId(), userPackage.getPackageName());
|
||||
File folder = folderPath.toFile();
|
||||
|
||||
MonitoringReportListResponse.Reports reports = new MonitoringReportListResponse.Reports();
|
||||
if (folder.exists() && folder.isDirectory()) {
|
||||
File[] files = folder.listFiles();
|
||||
if (files != null) {
|
||||
for (File file : files) {
|
||||
if (file.isFile() && file.getName().startsWith(filePrefix)) {
|
||||
if (file.isFile() && file.getName().endsWith(".zip")) {
|
||||
reports.getReports().add(file.getName());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue