fix: use mutable map for empty grant count sync

This commit is contained in:
sagit
2026-02-06 08:03:43 +00:00
parent 9f79efd44b
commit 053aef42c0
@@ -550,7 +550,7 @@ public class GroupServiceImpl implements GroupService {
private Map<Long, Long> buildGrantCountMap(Set<Long> userTunnelIds) {
if (userTunnelIds.isEmpty()) {
return Collections.emptyMap();
return new HashMap<>();
}
List<GroupPermissionGrant> grants = groupPermissionGrantMapper.selectList(new QueryWrapper<GroupPermissionGrant>().in("user_tunnel_id", userTunnelIds));