|
@@ -382,10 +382,16 @@ public class InvalidRecordService extends ServiceImpl<InvalidRecordMapper, Inval
|
|
QueryReportAffairDTO queryReportAffairDTO = new QueryReportAffairDTO();
|
|
QueryReportAffairDTO queryReportAffairDTO = new QueryReportAffairDTO();
|
|
queryReportAffairDTO.setProjectId(projectId);
|
|
queryReportAffairDTO.setProjectId(projectId);
|
|
List<ReportAffairVO> reportAffairVOS = reportAffairService.queryReportAffair(queryReportAffairDTO);
|
|
List<ReportAffairVO> reportAffairVOS = reportAffairService.queryReportAffair(queryReportAffairDTO);
|
|
- for (ReportAffairVO reportAffairVO : reportAffairVOS) {
|
|
|
|
- List<SystemFile> systemFiles = reportAffairVO.getSystemFileList();
|
|
|
|
- for (SystemFile systemFile : systemFiles) {
|
|
|
|
- fileGuids.add(systemFile.getGuid());
|
|
|
|
|
|
+ if (!reportAffairVOS.isEmpty()) {
|
|
|
|
+ for (ReportAffairVO reportAffairVO : reportAffairVOS) {
|
|
|
|
+ List<SystemFile> systemFiles = reportAffairVO.getSystemFileList();
|
|
|
|
+ if (!systemFiles.isEmpty()) {
|
|
|
|
+ for (SystemFile systemFile : systemFiles) {
|
|
|
|
+ if (systemFile.getGuid() != null) {
|
|
|
|
+ fileGuids.add(systemFile.getGuid());
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return fileGuids;
|
|
return fileGuids;
|