默认初始化页面权限修改

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

View File

@ -42,9 +42,11 @@ public class ShopStaffPagePermissionServiceImpl extends ServiceImpl<ShopStaffPag
throw new ApiNotPrintException("员工不存在");
}
long count = shopPagePathService.count(new QueryWrapper().in(ShopPagePath::getId, pagePathPermissionAddDTO.getPagePathIdList()));
if (count != pagePathPermissionAddDTO.getPagePathIdList().size()) {
throw new ApiNotPrintException("存在错误id");
if (!pagePathPermissionAddDTO.getPagePathIdList().isEmpty()) {
long count = shopPagePathService.count(new QueryWrapper().in(ShopPagePath::getId, pagePathPermissionAddDTO.getPagePathIdList()));
if (count != pagePathPermissionAddDTO.getPagePathIdList().size()) {
throw new ApiNotPrintException("存在错误id");
}
}
Map<Long, ShopStaffPagePermission> map = list(new QueryWrapper().eq(ShopStaffPagePermission::getStaffId,