fix(permission-check): stream collect
This commit is contained in:
parent
71a32c4e74
commit
2bbf879f22
@ -575,7 +575,7 @@ public class PermissionPointServiceImpl implements PermissionPointService {
|
|||||||
if (CollectionUtil.isEmpty(idsWithoutButton)) {
|
if (CollectionUtil.isEmpty(idsWithoutButton)) {
|
||||||
return currentFeatrureList;
|
return currentFeatrureList;
|
||||||
}
|
}
|
||||||
String querySql = StrUtil.join(" OR ", idsWithoutButton.stream().map(id -> "FIND_IN_SET('" + id + "', path)"));
|
String querySql = StrUtil.join(" OR ", idsWithoutButton.stream().map(id -> "FIND_IN_SET('" + id + "', path)").collect(Collectors.toList()));
|
||||||
|
|
||||||
List<SaasFeature> children = saasFeatureDao.list(new LambdaQueryWrapper<SaasFeature>()
|
List<SaasFeature> children = saasFeatureDao.list(new LambdaQueryWrapper<SaasFeature>()
|
||||||
.eq(StrUtil.isNotBlank(terminal), SaasFeature::getTerminal, terminal)
|
.eq(StrUtil.isNotBlank(terminal), SaasFeature::getTerminal, terminal)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user