默认初始化页面权限修改

This commit is contained in:
张松 2025-04-02 17:31:20 +08:00
parent c196abad93
commit 1e40f49d99
1 changed files with 2 additions and 1 deletions

View File

@ -67,7 +67,8 @@ public class ShopPagePermissionController {
*/
@GetMapping("/mine")
public CzgResult<List<ShopPagePath>> mine() {
Set<Long> pageIdList = shopStaffPagePermissionService.list(new QueryWrapper().eq(ShopStaffPagePermission::getShopId, StpKit.USER.getShopId()).eq(ShopStaffPagePermission::getStaffId, StpKit.USER.getLoginIdAsLong())).stream().map(ShopStaffPagePermission::getPagePathId).collect(Collectors.toSet());
Set<Long> pageIdList = shopStaffPagePermissionService.list(new QueryWrapper().eq(ShopStaffPagePermission::getShopId, StpKit.USER.getShopId()).eq(ShopStaffPagePermission::getIsUse, 1)
.eq(ShopStaffPagePermission::getStaffId, StpKit.USER.getLoginIdAsLong())).stream().map(ShopStaffPagePermission::getPagePathId).collect(Collectors.toSet());
if (pageIdList.isEmpty()) {
return CzgResult.success(new ArrayList<>());
}