添加判空

This commit is contained in:
zhn
2024-01-03 09:52:09 +08:00
parent f639f6b7f2
commit 54baa43d1a
@@ -2767,6 +2767,9 @@ public class ProjectLibraryBaseServiceImpl extends ServiceImpl<ProjectLibraryBas
@NotNull
public List<ProjectLawsInventoryEO> getProjectLawsInventoryEOS(List<ProjectLawsInventoryEO> projectLawsInventoryEOList) {
if(ObjectUtils.isEmpty(projectLawsInventoryEOList)){
return projectLawsInventoryEOList;
}
List<String> projectLawsInventoryIdList = projectLawsInventoryEOList.stream()
.distinct().map(ProjectLawsInventoryEO::getId).collect(Collectors.toList());
//法规清单关联的所有平台件