mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-10-09 03:06:37 +08:00
fix: use mutable map for empty grant count sync
This commit is contained in:
@@ -550,7 +550,7 @@ public class GroupServiceImpl implements GroupService {
|
|||||||
|
|
||||||
private Map<Long, Long> buildGrantCountMap(Set<Long> userTunnelIds) {
|
private Map<Long, Long> buildGrantCountMap(Set<Long> userTunnelIds) {
|
||||||
if (userTunnelIds.isEmpty()) {
|
if (userTunnelIds.isEmpty()) {
|
||||||
return Collections.emptyMap();
|
return new HashMap<>();
|
||||||
}
|
}
|
||||||
|
|
||||||
List<GroupPermissionGrant> grants = groupPermissionGrantMapper.selectList(new QueryWrapper<GroupPermissionGrant>().in("user_tunnel_id", userTunnelIds));
|
List<GroupPermissionGrant> grants = groupPermissionGrantMapper.selectList(new QueryWrapper<GroupPermissionGrant>().in("user_tunnel_id", userTunnelIds));
|
||||||
|
|||||||
Reference in New Issue
Block a user