过滤查询条件为空的数据

This commit is contained in:
dxc
2021-03-29 13:40:56 +08:00
parent 1166b8f1c6
commit 68eb28167f

View File

@ -151,7 +151,12 @@ public class ProjectSectionServiceImpl extends BaseServiceImpl<ProjectSectionMap
@Override
public List<ProjectSection> selectBatchIds(List<String> sectionIds) {
return projectSectionMapper.selectBatchIds(sectionIds);
sectionIds = sectionIds.stream().filter(n -> StringUtils.isNotBlank(n)).collect(Collectors.toList());
List<ProjectSection> projectSectionList = null;
if(null != sectionIds && sectionIds.size() > 0 ){
projectSectionList = projectSectionMapper.selectBatchIds(sectionIds);
}
return projectSectionList;
}
@Override