src/main/java/org/springblade/modules/system/controller/RoleController.java
@@ -149,7 +149,10 @@ CacheUtil.clear(SYS_CACHE); CacheUtil.clear(SYS_CACHE, Boolean.FALSE); boolean temp = roleService.grant(grantVO.getRoleIds(), grantVO.getMenuIds(), grantVO.getDataScopeIds(), grantVO.getApiScopeIds()); return R.status(temp); Role role = roleService.getById(grantVO.getRoleIds().get(0)); role.setSystemId(grantVO.getSystemIds()); boolean status = roleService.updateById(role); return R.status(temp&&status); } /**