fix(permission-check): stream collect

This commit is contained in:
zhansihu 2023-10-26 15:31:46 +08:00
parent 71a32c4e74
commit 2bbf879f22

View File

@ -575,7 +575,7 @@ public class PermissionPointServiceImpl implements PermissionPointService {
if (CollectionUtil.isEmpty(idsWithoutButton)) {
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>()
.eq(StrUtil.isNotBlank(terminal), SaasFeature::getTerminal, terminal)