diff --git a/sop-admin/sop-admin-server/src/main/java/com/gitee/sop/adminserver/service/RoutePermissionService.java b/sop-admin/sop-admin-server/src/main/java/com/gitee/sop/adminserver/service/RoutePermissionService.java index dd5d21ec..8661a9cc 100644 --- a/sop-admin/sop-admin-server/src/main/java/com/gitee/sop/adminserver/service/RoutePermissionService.java +++ b/sop-admin/sop-admin-server/src/main/java/com/gitee/sop/adminserver/service/RoutePermissionService.java @@ -91,6 +91,7 @@ public class RoutePermissionService { List rolePermissionList = permRolePermissionMapper.list(query); return rolePermissionList.stream() .map(PermRolePermission::getRouteId) + .sorted() .collect(Collectors.toList()); } diff --git a/sop-gateway/src/main/java/com/gitee/sop/gateway/manager/DbIsvRoutePermissionManager.java b/sop-gateway/src/main/java/com/gitee/sop/gateway/manager/DbIsvRoutePermissionManager.java index 6aaa858a..edde6086 100644 --- a/sop-gateway/src/main/java/com/gitee/sop/gateway/manager/DbIsvRoutePermissionManager.java +++ b/sop-gateway/src/main/java/com/gitee/sop/gateway/manager/DbIsvRoutePermissionManager.java @@ -118,6 +118,7 @@ public class DbIsvRoutePermissionManager extends DefaultIsvRoutePermissionManage List rolePermissionList = permRolePermissionMapper.list(query); return rolePermissionList.stream() .map(PermRolePermission::getRouteId) + .sorted() .collect(Collectors.toList()); }