判空
This commit is contained in:
+7
-3
@@ -2722,10 +2722,14 @@ public class ProjectLibraryBaseServiceImpl extends ServiceImpl<ProjectLibraryBas
|
||||
private List<ProjectCertificationInventoryEO> getProjectCertificationInventoryEOS(List<ProjectCertificationInventoryEO> projectCertificationInventoryEOList) {
|
||||
//认证清单关联平台件(实际是一个认证清单只关联一个平台件)
|
||||
List<String> projectCertificationInventoryIdList = projectCertificationInventoryEOList.stream().map(ProjectCertificationInventoryEO::getId).collect(Collectors.toList());
|
||||
List<LawsInventoryPlatformEO> lawsInventoryPlatformEOList = new ArrayList<>();
|
||||
if(ObjectUtils.isNotEmpty(projectCertificationInventoryIdList)){
|
||||
LambdaQueryWrapper<LawsInventoryPlatformEO> wrapper = new LambdaQueryWrapper<>();
|
||||
wrapper.in(LawsInventoryPlatformEO::getLawsInventoryId,projectCertificationInventoryIdList);
|
||||
lawsInventoryPlatformEOList = lawsInventoryPlatformEOService.list(wrapper);
|
||||
}
|
||||
//认证清单关联的平台件
|
||||
LambdaQueryWrapper<LawsInventoryPlatformEO> wrapper = new LambdaQueryWrapper<>();
|
||||
wrapper.in(LawsInventoryPlatformEO::getLawsInventoryId,projectCertificationInventoryIdList);
|
||||
List<LawsInventoryPlatformEO> lawsInventoryPlatformEOList = lawsInventoryPlatformEOService.list(wrapper);
|
||||
|
||||
List<ProjectCertificationInventoryEO> projectCertificationInventoryEOListTemp = new ArrayList<>();
|
||||
List<ProjectCertificationInventoryEO> yesList = new ArrayList<>();
|
||||
List<ProjectCertificationInventoryEO> noList = new ArrayList<>();
|
||||
|
||||
Reference in New Issue
Block a user