Merge remote-tracking branch 'origin/test' into test

This commit is contained in:
liuminghui
2026-10-27 13:36:11 +08:00
19 changed files with 782 additions and 29 deletions
@@ -143,7 +143,13 @@ public class SysRoleController extends BaseController
{
roleService.checkRoleAllowed(role);
roleService.checkRoleDataScope(role.getRoleId());
return toAjax(roleService.authDataScope(role));
int rows = roleService.authDataScope(role);
if (rows > 0)
{
SysRole savedRole = roleService.selectRoleById(role.getRoleId());
tokenService.refreshPermissionByRoleId(role.getRoleId(), permissionService, savedRole.getDataScope());
}
return toAjax(rows);
}
/**