默认初始化页面权限修改

This commit is contained in:
张松
2025-04-02 17:12:17 +08:00
parent f67a917977
commit 6e815f90ec

View File

@@ -68,7 +68,7 @@ public class ShopStaffPagePermissionServiceImpl extends ServiceImpl<ShopStaffPag
}); });
Set<Long> collect = map.values().stream().map(ShopStaffPagePermission::getId).collect(Collectors.toSet()); Set<Long> collect = map.values().stream().map(ShopStaffPagePermission::getId).collect(Collectors.toSet());
if (!collect.isEmpty()) { if (!collect.isEmpty()) {
updateChain().set(ShopStaffPagePermission::getIsUse, 0).in(ShopStaffPagePermission::getId, collect); updateChain().set(ShopStaffPagePermission::getIsUse, 0).in(ShopStaffPagePermission::getId, collect).update();
} }
return true; return true;
} }