ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysUser.java
@@ -386,7 +386,9 @@ private static List<String> splitCodes(String codes) { if (codes == null || codes.trim().isEmpty()) { return Collections.emptyList(); // 不要返回 Collections.emptyList():JDK 17+ 强封装下,MyBatis OGNL // 反射调用 Collections$EmptyList.size() 会抛 InaccessibleObjectException。 return new ArrayList<>(); } List<String> codeList = new ArrayList<>(); for (String code : codes.split(",")) {