默认初始化页面权限修改
This commit is contained in:
parent
6362581516
commit
48792f0beb
|
|
@ -42,10 +42,12 @@ public class ShopStaffPagePermissionServiceImpl extends ServiceImpl<ShopStaffPag
|
||||||
throw new ApiNotPrintException("员工不存在");
|
throw new ApiNotPrintException("员工不存在");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!pagePathPermissionAddDTO.getPagePathIdList().isEmpty()) {
|
||||||
long count = shopPagePathService.count(new QueryWrapper().in(ShopPagePath::getId, pagePathPermissionAddDTO.getPagePathIdList()));
|
long count = shopPagePathService.count(new QueryWrapper().in(ShopPagePath::getId, pagePathPermissionAddDTO.getPagePathIdList()));
|
||||||
if (count != pagePathPermissionAddDTO.getPagePathIdList().size()) {
|
if (count != pagePathPermissionAddDTO.getPagePathIdList().size()) {
|
||||||
throw new ApiNotPrintException("存在错误id");
|
throw new ApiNotPrintException("存在错误id");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Map<Long, ShopStaffPagePermission> map = list(new QueryWrapper().eq(ShopStaffPagePermission::getStaffId,
|
Map<Long, ShopStaffPagePermission> map = list(new QueryWrapper().eq(ShopStaffPagePermission::getStaffId,
|
||||||
pagePathPermissionAddDTO.getStaffId())).stream().collect(Collectors.toMap(ShopStaffPagePermission::getPagePathId, item -> item));
|
pagePathPermissionAddDTO.getStaffId())).stream().collect(Collectors.toMap(ShopStaffPagePermission::getPagePathId, item -> item));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue