默认初始化页面权限修改
This commit is contained in:
@@ -49,6 +49,6 @@ public class ShopPagePathServiceImpl extends ServiceImpl<ShopPagePathMapper, Sho
|
|||||||
}
|
}
|
||||||
|
|
||||||
Set<Long> pageIdList = shopStaffPagePermissions.stream().filter(item -> item.getIsUse() == 1).map(ShopStaffPagePermission::getPagePathId).collect(Collectors.toSet());
|
Set<Long> pageIdList = shopStaffPagePermissions.stream().filter(item -> item.getIsUse() == 1).map(ShopStaffPagePermission::getPagePathId).collect(Collectors.toSet());
|
||||||
return list(new QueryWrapper().in(ShopPagePath::getId, pageIdList));
|
return pageIdList.isEmpty() ? new ArrayList<>() : list(new QueryWrapper().in(ShopPagePath::getId, pageIdList));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user