fix(auth): 修复权限维度合并逻辑,避免键冲突异常

This commit is contained in:
zhouhao
2026-01-27 15:51:29 +08:00
parent 8009845b57
commit f38e88d99d

View File

@@ -169,7 +169,10 @@ public class SimpleAuthentication implements Authentication {
.stream()
.collect(Collectors
.groupingBy(d -> d.getType().getId(),
Collectors.toMap(Dimension::getId, Function.identity())));
Collectors.toMap(
Dimension::getId,
Function.identity(),
(a, b) -> a)));
}
}
return permissionMapping != null;