zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/system/entity/User.java
@@ -328,13 +328,13 @@ } public Long[] getRoleIds() { if (Cools.isEmpty((Object) this.roleIds)) { return this.roleIds; } public Long[] getUserRoleIds() { UserRoleService service = SpringUtils.getBean(UserRoleService.class); List<UserRole> list = service.list(new LambdaQueryWrapper<UserRole>().eq(UserRole::getUserId, this.id)); return list.stream().map(UserRole::getRoleId).toArray(Long[]::new); } else { return this.roleIds; } } @Override