添加判空
This commit is contained in:
+3
@@ -2767,6 +2767,9 @@ public class ProjectLibraryBaseServiceImpl extends ServiceImpl<ProjectLibraryBas
|
|||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
public List<ProjectLawsInventoryEO> getProjectLawsInventoryEOS(List<ProjectLawsInventoryEO> projectLawsInventoryEOList) {
|
public List<ProjectLawsInventoryEO> getProjectLawsInventoryEOS(List<ProjectLawsInventoryEO> projectLawsInventoryEOList) {
|
||||||
|
if(ObjectUtils.isEmpty(projectLawsInventoryEOList)){
|
||||||
|
return projectLawsInventoryEOList;
|
||||||
|
}
|
||||||
List<String> projectLawsInventoryIdList = projectLawsInventoryEOList.stream()
|
List<String> projectLawsInventoryIdList = projectLawsInventoryEOList.stream()
|
||||||
.distinct().map(ProjectLawsInventoryEO::getId).collect(Collectors.toList());
|
.distinct().map(ProjectLawsInventoryEO::getId).collect(Collectors.toList());
|
||||||
//法规清单关联的所有平台件
|
//法规清单关联的所有平台件
|
||||||
|
|||||||
Reference in New Issue
Block a user