默认初始化页面权限修改

This commit is contained in:
张松 2025-04-02 17:22:10 +08:00
parent 48792f0beb
commit c196abad93
1 changed files with 1 additions and 1 deletions

View File

@ -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());
return list(new QueryWrapper().in(ShopPagePath::getId, pageIdList));
return pageIdList.isEmpty() ? new ArrayList<>() : list(new QueryWrapper().in(ShopPagePath::getId, pageIdList));
}
}