默认初始化页面权限修改
This commit is contained in:
@@ -67,7 +67,8 @@ public class ShopPagePermissionController {
|
|||||||
*/
|
*/
|
||||||
@GetMapping("/mine")
|
@GetMapping("/mine")
|
||||||
public CzgResult<List<ShopPagePath>> 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()) {
|
if (pageIdList.isEmpty()) {
|
||||||
return CzgResult.success(new ArrayList<>());
|
return CzgResult.success(new ArrayList<>());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user