Parcourir la source

更新

tags/v1.2.0^2
xiaoying il y a 1 an
Parent
révision
df6a2812d5
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  1. +5
    -1
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/oidc/OidcServiceImpl.java

+ 5
- 1
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/oidc/OidcServiceImpl.java Voir le fichier

@@ -7,7 +7,9 @@ import com.tuoheng.admin.query.RoleClientQuery;
import com.tuoheng.admin.request.third.oidc.CreateOidcTenantRequest;
import com.tuoheng.admin.request.third.oidc.DeletedOidcTenantRequest;
import com.tuoheng.admin.request.third.oidc.EditOidcTenantRequest;
import com.tuoheng.admin.service.permissions.OpPermissionsService;
import com.tuoheng.admin.service.role.IRoleService;
import com.tuoheng.admin.service.role.OpRolePermissionService;
import com.tuoheng.common.core.utils.JsonResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
@@ -37,6 +39,8 @@ public class OidcServiceImpl implements OidcService {

@Autowired
private IRoleService roleService;
@Autowired
private OpPermissionsService opPermissionsService;


public JsonResult addUser(User user, String password, Tenant tenant) {
@@ -89,6 +93,6 @@ public class OidcServiceImpl implements OidcService {

RoleClientQuery query = new RoleClientQuery();
query.setRoleId(roleId);
return roleService.getMenuList(query);
return opPermissionsService.getRolePermissionByRoleId(query);
}
}

Chargement…
Annuler
Enregistrer