过滤查询条件为空的数据
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user